@font-face {
  font-family: "Capsule Black";
  src: url("../fonts/Capsule-Black.4a3e4b5c9751.ttf") format("truetype");
  font-display: swap;
  font-weight: 700 900;
}

@font-face {
  font-family: "Digi Tiam Brush";
  src: url("../fonts/Digi-Tiam-Brush.6ae5ce3fa991.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f8f6ff;
  --panel: #ffffff;
  --panel-2: #fbfaff;
  --panel-3: #f3efff;
  --line: #e9e4f7;
  --line-strong: #dcd3f3;
  --fg: #31265e;
  --fg-2: #77708e;
  --fg-3: #aaa4bc;
  --accent: #8d5cf6;
  --accent-soft: #eee6ff;
  --me: #8d5cf6;
  --partner: #59c9b4;
  --purple: #9a69f6;
  --green: #55c8a1;
  --yellow: #ffb75d;
  --red: #ff6f9f;
  --blue: #70b7f4;
  --cream: #fff4e5;
  --mint: #e9faf5;
  --pink: #fff0f5;
  --lavender: #f1ecff;
  --shadow: 0 22px 60px rgba(102, 76, 171, .13);
  --shadow-soft: 0 10px 30px rgba(110, 87, 170, .09);
  --radius: 28px;
  --radius-sm: 18px;
  --font-ui: Tahoma, "Segoe UI", sans-serif;
  --font-display: Tahoma, "Segoe UI", sans-serif;
  --font-accent: "Digi Tiam Brush", Tahoma, sans-serif;
}

[data-theme="dark"] {
  --bg: #171329;
  --panel: #211b38;
  --panel-2: #282044;
  --panel-3: #312652;
  --line: #403563;
  --line-strong: #554878;
  --fg: #faf8ff;
  --fg-2: #c6bcdf;
  --fg-3: #9187aa;
  --accent: #a77bff;
  --accent-soft: #382a5b;
  --shadow: 0 22px 60px rgba(0, 0, 0, .3);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .23);
}

html,
body {
  background:
    radial-gradient(circle at 44% -12%, rgba(197, 181, 255, .34), transparent 35%),
    radial-gradient(circle at 3% 100%, rgba(255, 207, 225, .34), transparent 34%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
}

body {
  font-size: 15px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
strong,
.brand-mini {
  font-family: var(--font-display);
}

.page-flower {
  position: fixed;
  z-index: 30;
  width: 150px;
  height: 150px;
  object-fit: contain;
  pointer-events: none;
  opacity: .78;
}

.page-flower-top {
  top: -44px;
  right: -30px;
}

.page-flower-bottom {
  bottom: -50px;
  left: -38px;
}

.app-shell {
  direction: rtl;
  height: 100dvh;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 18px;
  overflow: hidden;
  max-width: 1900px;
  margin: 0 auto;
}

.sidebar,
.cute-content,
.partner-rail {
  min-height: 0;
  border: 1px solid rgba(222, 214, 245, .9);
  border-radius: 30px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.sidebar {
  grid-column: 1;
  border-left: 1px solid rgba(222, 214, 245, .9);
  padding: 24px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
}

.brand-mini {
  display: grid;
  place-items: center;
  gap: 0;
  min-height: 94px;
  color: #7851e7;
  font-size: 29px;
  position: relative;
}

.brand-mini strong {
  font-family: "Capsule Black", Tahoma, sans-serif;
  font-size: 30px;
  transform: rotate(-3deg);
}

.brand-spark {
  position: absolute;
  color: #ffd36c;
  top: 8px;
  right: 12px;
  font-size: 18px;
}

.main-nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 9px 14px;
  background: transparent;
  color: #8a83a3;
  font-size: 15px;
  font-weight: 700;
  transition: .2s ease;
}

.nav-item:hover {
  background: #f8f5ff;
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-item.active {
  color: #7b4df0;
  border-color: #ded3ff;
  background: linear-gradient(135deg, #f5efff, #ebe2ff);
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(139, 88, 245, .1);
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.nav-icon svg,
.mobile-tabs svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active .nav-icon svg {
  fill: currentColor;
  stroke: currentColor;
}

.nav-item b {
  position: absolute;
  top: 7px;
  left: 8px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent);
  font-size: 10px;
  box-shadow: 0 3px 9px rgba(101, 72, 164, .12);
}

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  padding-top: 118px;
}

.sidebar-bottom::before {
  content: "";
  position: absolute;
  inset: 0 4px auto;
  height: 120px;
  background: url("../img/bunny-corner-bottom-right.2368fdab46b0.png") center bottom / contain no-repeat;
  opacity: .93;
  pointer-events: none;
}

.sidebar-new-task {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #a36cff, #6f38ed);
  box-shadow: 0 13px 26px rgba(124, 71, 238, .28);
  font-size: 15px;
  font-weight: 800;
}

.sidebar-new-task b {
  font-size: 22px;
  line-height: 1;
}

.sidebar-bottom > .icon-btn,
.sidebar-logout {
  width: 100%;
  height: 38px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #faf8ff;
  color: #8d82aa;
}

.sidebar-bottom form {
  grid-column: 1 / -1;
}

.progress-mini,
.sync-mini {
  display: none !important;
}

.cute-content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(253, 252, 255, .72);
}

.cute-topbar {
  position: relative;
  min-height: 134px;
  padding: 22px 120px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(242, 238, 255, .82), rgba(255, 255, 255, .18));
  border: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: none;
  overflow: hidden;
}

.cute-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: url("../img/sparkles.ea2159a2717a.png"), radial-gradient(#fff 1.4px, transparent 1.4px);
  background-position: center, 0 0;
  background-repeat: no-repeat, repeat;
  background-size: 310px, 24px 24px;
  pointer-events: none;
}

.title-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}

.title-wrap small {
  color: #7663a8;
  font-size: 13px;
}

.title-wrap h1 {
  margin: 7px 0 4px;
  color: #30235f;
  font-size: clamp(27px, 2.5vw, 40px);
  line-height: 1.35;
  letter-spacing: -.4px;
}

.topbar-subtitle {
  color: #89809f;
  font-size: 13px;
}

.topbar-mascot {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: auto;
  bottom: -49px;
  width: 165px;
  height: 165px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.topbar-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(99, 74, 160, .12));
}

.topbar-actions {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
}

.people-pill {
  height: 42px;
  padding: 4px 7px;
  border: 1px solid rgba(225, 218, 245, .9);
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-soft);
}

.people-pill > span:not(.person-photo):not(.heart-divider) {
  display: none;
}

.person-photo {
  border: 2px solid #fff;
}

.view {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 28px 36px;
  scrollbar-width: thin;
  scrollbar-color: #d7cff0 transparent;
}

.view.active {
  display: block;
}

.cute-day-toolbar {
  width: min(390px, 100%);
  min-height: 54px;
  margin: 0 auto 14px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
}

.day-nav {
  width: 100%;
}

.day-toolbar > .ghost-btn {
  position: absolute;
  margin-right: 410px;
}

.date-focus strong {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 14px;
}

.date-focus small {
  color: var(--fg-3);
  font-size: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  position: relative;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 25px;
  padding: 20px 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 26px rgba(101, 78, 153, .06);
  background: linear-gradient(135deg, var(--stat-soft), rgba(255, 255, 255, .76));
  transition: .18s ease;
}

.stat-card.clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(111, 81, 176, .11);
}

.stat-card small {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--stat-accent);
  font-size: 12px;
  font-weight: 800;
}

.stat-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 10px;
  color: #3d2b54;
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.2;
}

.stat-card em {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 7px;
  color: #978ea8;
  font-size: 10px;
  font-style: normal;
}

.stat-ring {
  position: absolute;
  left: 17px;
  top: 48px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 5px 14px rgba(102, 77, 145, .08);
}

.stat-icon {
  position: absolute;
  z-index: 2;
  left: 31px;
  top: 63px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--stat-accent);
  font-size: 23px;
}

.stat-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(96, 65, 150, .12));
}

.stat-card[data-stat-detail="shared"] .stat-icon svg {
  fill: currentColor;
  stroke-width: 1.2;
}

.stat-petal {
  position: absolute;
  inset: auto -30px -52px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--stat-accent) 8%, transparent);
}

.cute-timeline-card {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.timeline-head {
  height: 64px;
  padding: 15px 26px;
  border-bottom: 1px solid var(--line);
}

.timeline-title span {
  font-family: var(--font-display);
  color: #3a2b68;
  font-size: 18px;
}

.timeline-title small {
  color: var(--fg-3);
}

.timeline-head > div:last-child {
  display: none;
}

.anytime-strip {
  padding: 15px 26px 17px;
  border-bottom: 1px solid #ece7f5;
  background: linear-gradient(135deg, rgba(250, 246, 255, .96), rgba(255, 247, 250, .88));
}

.anytime-strip[hidden] {
  display: none;
}

.anytime-head,
.anytime-task {
  display: flex;
  align-items: center;
}

.anytime-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}

.anytime-head div {
  display: grid;
  gap: 2px;
}

.anytime-head span {
  color: #403064;
  font-family: var(--font-display);
  font-size: 15px;
}

.anytime-head small {
  color: #9288a5;
  font-size: 10px;
}

.anytime-head > b {
  border: 1px solid #e5dafa;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #8152e5;
  font-size: 10px;
}

.anytime-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.anytime-task {
  position: relative;
  min-width: 0;
  min-height: 64px;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--anytime-accent) 17%, #e9e2f2);
  border-radius: 16px;
  padding: 10px 12px;
  background: linear-gradient(105deg, #fff, color-mix(in srgb, var(--anytime-soft) 76%, #fff));
  box-shadow: 0 7px 18px rgba(77, 57, 120, .06);
  cursor: pointer;
}

.anytime-task:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--anytime-accent) 38%, #e9e2f2);
}

.anytime-check {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 2px solid color-mix(in srgb, var(--anytime-accent) 55%, #d8cfe5);
  border-radius: 11px;
  background: #fff;
  color: #fff;
  font-weight: 900;
}

.anytime-task > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.anytime-task strong {
  overflow: hidden;
  color: #40345d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anytime-task small {
  overflow: hidden;
  color: #8c829d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anytime-task > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 7px;
  background: #fff;
  color: var(--anytime-accent);
  font-size: 8px;
}

.anytime-task.done {
  opacity: .67;
}

.anytime-task.done .anytime-check {
  border-color: var(--anytime-accent);
  background: var(--anytime-accent);
}

.anytime-task.done strong {
  text-decoration: line-through;
}

.anytime-task.pending .anytime-check {
  opacity: .45;
  cursor: not-allowed;
}

.timeline-scroll {
  min-height: 510px;
  max-height: 590px;
  overflow-y: auto;
}

.timeline {
  min-height: 590px !important;
  padding-right: 70px;
}

.lane-separator {
  display: none;
}

.hour-line {
  right: 70px;
  left: 24px;
  border-color: #f0edf7;
}

.hour-label {
  right: 17px;
  color: #948ca9;
  font-size: 11px;
}

.task-block {
  right: 74px !important;
  left: 26px !important;
  width: auto !important;
  min-height: 46px;
  border: 0;
  border-right: 0;
  border-radius: 14px;
  padding: 9px 16px 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: linear-gradient(90deg, color-mix(in srgb, var(--task-soft) 88%, #fff), var(--task-soft));
  box-shadow: inset -4px 0 var(--task-accent), inset 0 0 0 1px color-mix(in srgb, var(--task-accent) 11%, transparent);
}

.task-block:hover {
  transform: translateX(-2px);
  filter: saturate(1.05);
}

.task-title {
  grid-column: 1;
  grid-row: 1;
  color: #3d315d;
  font-family: var(--font-display);
  font-size: 14px;
}

.task-time {
  grid-column: 2;
  grid-row: 1;
  color: color-mix(in srgb, var(--task-accent) 78%, #6e6681);
  font-size: 10px;
}

.task-tag {
  position: absolute;
  right: 17px;
  bottom: 6px;
  color: var(--task-accent);
  font-size: 9px;
}

.task-owner-dot {
  display: none;
}

.now-line {
  right: 74px;
  left: 26px;
  border-color: #ff7fae;
}

.now-line span {
  color: #ff578f;
  background: #fff;
}

.timeline-add {
  position: sticky;
  bottom: 14px;
  margin: 12px auto 16px;
  min-width: 170px;
  height: 50px;
  border: 1px solid #e5dcfa;
  border-radius: 17px;
  background: linear-gradient(180deg, #fff, #f4efff);
  color: var(--accent);
  box-shadow: 0 10px 25px rgba(102, 75, 165, .1);
  font-weight: 800;
}

.mobile-growth-card {
  display: none;
}

.mobile-night-card {
  display: none;
}

.partner-rail {
  grid-column: 3;
  padding: 0;
  overflow-y: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  scrollbar-width: none;
}

.partner-rail::-webkit-scrollbar {
  display: none;
}

.partner-rail > section {
  margin-bottom: 11px;
  border: 1px solid rgba(226, 219, 244, .92);
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
}

.hello-card {
  position: relative;
  min-height: 127px;
  padding: 18px 18px 13px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
}

.hello-avatar .person-photo.large {
  width: 62px;
  height: 62px;
  box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(89, 68, 135, .12);
}

.hello-copy strong {
  color: #352760;
  font-size: 17px;
}

.hello-copy small {
  color: #56bf9f;
  font-size: 10px;
}

.hello-copy p {
  margin: 5px 0 0;
  color: #8d849e;
  font-size: 10px;
  line-height: 1.7;
}

.nudge-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.nudge-row button {
  min-height: 30px;
  border: 1px solid #eee9f7;
  border-radius: 11px;
  background: #fcfbff;
  color: #756b8e;
  font-size: 9px;
}

.game-card {
  padding: 17px;
}

.game-top {
  align-items: center;
}

.game-top strong {
  display: block;
  margin-top: 5px;
  color: #382961;
  font-size: 17px;
}

.game-level {
  min-width: 54px;
  border-radius: 999px;
  background: #fff1df;
  color: #eb873c;
}

.companion-badge {
  width: 62px;
  height: 52px;
  border: 0;
  background: var(--lavender);
  overflow: hidden;
}

.companion-badge span,
.companion-badge small {
  display: none;
}

.companion-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(92, 65, 145, .14));
}

.xp-track {
  height: 9px;
  border-radius: 999px;
  background: #f0edf7;
}

.xp-track i {
  background: linear-gradient(90deg, #ff5e97, #ff90b8);
  border-radius: inherit;
}

.mission-title {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed #ddd5ef;
}

.mission {
  border-color: #eee9f7;
  border-radius: 13px;
  background: #fcfbff;
}

.mission.done {
  background: #edfbf5;
  border-color: #d2f2e4;
}

.cute-growth-card {
  min-height: 112px;
  padding: 16px;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff, #f4fff9) !important;
}

.growth-tree-image {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 8px 11px rgba(87, 145, 102, .14));
}

.cute-growth-card > div strong {
  display: block;
  color: #304e45;
  font-size: 15px;
}

.cute-growth-card > div small {
  display: block;
  margin: 4px 0 10px;
  color: #7d9089;
  font-size: 9px;
}

.cute-growth-card > b {
  position: absolute;
  bottom: 11px;
  left: 14px;
  color: var(--green);
  font-size: 11px;
}

.rail-section {
  padding: 15px 17px;
}

.habit-cute {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  padding-left: 92px;
}

.habit-cute::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -15px;
  width: 92px;
  height: 92px;
  background: url("../img/flower-cup.18de458f0fdf.png") center / contain no-repeat;
  pointer-events: none;
}

.panel-title h3 {
  color: #3e3064;
  font-size: 14px;
}

.mini-item {
  min-height: 34px;
  border-bottom-color: #f0edf7;
}

.mini-item span {
  color: #645b77;
  font-size: 11px;
}

.night-card {
  min-height: 154px;
  padding: 20px;
  text-align: center;
  background:
    linear-gradient(rgba(39, 27, 85, .38), rgba(39, 27, 85, .38)),
    url("../img/cloud-moon.d75eb23de519.png") center 30% / 130px no-repeat,
    linear-gradient(145deg, #7760b5, #352361) !important;
  color: #fff;
}

.night-card p,
.night-card small {
  color: rgba(255, 255, 255, .78);
}

.night-btn {
  background: rgba(255, 255, 255, .94);
  color: #6241b8;
}

.section-actions {
  margin: 4px 0 18px;
  padding: 0 4px;
}

.section-actions h2 {
  margin: 3px 0;
  color: #352862;
  font-size: 27px;
}

.section-kicker {
  color: var(--accent);
  font-weight: 800;
}

.week-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  gap: 10px;
  min-width: 780px;
}

.week-card {
  min-height: 565px;
  border: 1px solid #ece7f7;
  border-radius: 22px;
  padding: 14px 11px;
  background: linear-gradient(180deg, #fff9f1, #fff);
  box-shadow: 0 9px 22px rgba(104, 81, 148, .06);
}

.week-card:nth-child(2n) {
  background: linear-gradient(180deg, #f3f9ff, #fff);
}

.week-card:nth-child(3n) {
  background: linear-gradient(180deg, #f4fff9, #fff);
}

.week-card.today {
  border-color: #ff9dbb;
  box-shadow: 0 0 0 3px rgba(255, 123, 164, .08);
}

.week-card-head strong {
  color: #4c386c;
  font-size: 27px;
}

.week-summary {
  display: grid;
  gap: 5px;
  margin: 12px 0;
}

.week-summary span {
  border-radius: 8px;
  padding: 6px 7px;
  background: rgba(255, 255, 255, .7);
  color: #746b86;
  font-size: 9px;
}

.week-task {
  min-height: 49px;
  margin-bottom: 7px;
  border: 0;
  border-right: 3px solid var(--task-accent);
  border-radius: 11px;
  background: var(--task-soft);
  color: #514768;
  font-size: 10px;
}

.week-task.anytime {
  border-right-style: dashed;
  background: linear-gradient(90deg, #fff, var(--task-soft));
}

.week-bars {
  margin-top: auto;
}

.habits-list {
  display: grid;
  gap: 12px;
}

.habit-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.habit-summary-card {
  min-height: 92px;
  padding: 17px 19px;
  border: 1px solid #ebe5f5;
  border-radius: 21px;
  background: linear-gradient(135deg, #fff, var(--summary-soft, #f4efff));
  box-shadow: var(--shadow-soft);
}

.habit-summary-card small {
  display: block;
  color: #817795;
}

.habit-summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--summary-color, var(--accent));
  font-size: 25px;
}

.habit-card {
  min-height: 105px;
  border: 1px solid #eee8f7;
  border-radius: 23px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(340px, 2fr) 105px;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .96), var(--habit-soft));
  box-shadow: var(--shadow-soft);
}

.habit-head h3 {
  color: #3d2d6b;
  font-size: 18px;
}

.streak {
  color: #ff6b8f;
  background: #fff2f6;
}

.habit-grid {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  gap: 7px;
}

.habit-day {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd6ed;
  border-radius: 50%;
  background: #fff;
}

.habit-day.logged {
  border-color: var(--habit-color);
  background: var(--habit-color);
  color: #fff;
  box-shadow: 0 5px 11px color-mix(in srgb, var(--habit-color) 30%, transparent);
}

.habit-log {
  min-height: 42px;
  border-radius: 15px;
  border: 1px solid var(--habit-color);
  background: #fff;
  color: var(--habit-color);
}

.habit-log.active {
  color: #fff;
  background: var(--habit-color);
}

.stats-dashboard {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 14px;
}

.stats-dashboard .kpi-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats-dashboard .kpi-grid .stat-card {
  min-height: 116px;
}

.chart-card {
  min-height: 300px;
  border: 1px solid #ebe6f5;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.chart-card h3 {
  color: #392a65;
  font-size: 18px;
}

.bar-chart {
  height: 210px;
}

.bar.me {
  background: linear-gradient(#ac7aff, #8454ef);
}

.bar.pa {
  background: linear-gradient(#7be0c1, #50bea0);
}

.estimate-bars {
  height: 9px;
  background: #f1edf8;
}

.estimate-bars .estimate {
  background: #ffbc69;
}

.estimate-bars .actual {
  background: #80bff0;
}

.stats-mini-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stats-mini-card,
.weekly-insight {
  min-height: 150px;
  padding: 19px;
  border: 1px solid #ebe5f5;
  border-radius: 23px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.stats-mini-card small {
  color: #8e85a1;
}

.stats-mini-card strong {
  display: block;
  margin: 7px 0 12px;
  color: #3d2c68;
  font-size: 24px;
}

.stats-mini-card .mini-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #efebf7;
}

.stats-mini-card .mini-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mini-a, #9d6ff7), var(--mini-b, #ff8eb4));
}

.weekly-insight {
  grid-column: 1 / -1;
  min-height: 96px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  background: linear-gradient(120deg, #fff9eb, #fff, #f2edff);
}

.weekly-insight b {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #8c5df2;
  background: #f0e8ff;
  font-size: 24px;
}

.weekly-insight strong {
  display: block;
  color: #3d2c68;
  font-size: 18px;
}

.weekly-insight p {
  margin: 5px 0 0;
  color: #81788f;
}

.asset-empty {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 22px;
  border: 1px dashed #ded4f2;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 245, 250, .9), rgba(244, 240, 255, .9));
  text-align: right;
}

.asset-empty img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.asset-empty strong {
  display: block;
  color: #43336c;
  font-size: 17px;
}

.asset-empty p {
  max-width: 320px;
  margin: 7px 0 0;
  color: #8a809c;
  line-height: 1.8;
}

.insight-drawer .asset-empty {
  min-height: 250px;
  flex-direction: column;
  gap: 6px;
  padding: 18px 12px;
  overflow: hidden;
  text-align: center;
}

.insight-drawer .asset-empty img {
  width: 125px;
  height: 125px;
}

.insight-drawer .asset-empty strong,
.insight-drawer .asset-empty p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.partner-empty-illustration {
  display: block;
  width: min(210px, 70%);
  height: 170px;
  margin: 2px auto 12px;
  object-fit: contain;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 14px;
  align-items: start;
}

.settings-grid .panel {
  border: 1px solid #ebe6f5;
  border-radius: 23px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.profile-settings {
  grid-row: span 2;
}

.settings-grid h2 {
  color: #3d2c69;
  font-size: 20px;
}

.telegram-settings {
  grid-column: 2;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(240, 248, 255, .92)) !important;
}

.telegram-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.telegram-head h2,
.telegram-head p {
  margin: 0;
}

.telegram-head p {
  margin-top: 3px;
  color: #8b829d;
  font-size: 11px;
}

.telegram-logo {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: linear-gradient(145deg, #51baf2, #298fd8);
  color: #fff;
  box-shadow: 0 10px 22px rgba(41, 143, 216, .2);
  font-size: 24px;
  transform: rotate(-12deg);
}

.telegram-logo.connected {
  background: linear-gradient(145deg, #64d6ae, #33ae86);
  transform: none;
}

.telegram-offline,
.telegram-steps {
  border: 1px solid #e8e3f2;
  border-radius: 17px;
  padding: 13px;
  background: rgba(255, 255, 255, .78);
}

.telegram-offline strong {
  color: #55466e;
}

.telegram-offline p,
.telegram-privacy {
  margin: 5px 0 0;
  color: #9289a2;
  font-size: 10px;
  line-height: 1.8;
}

.telegram-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 0 13px;
  list-style: none;
}

.telegram-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #675a7b;
  font-size: 10px;
}

.telegram-steps b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  background: #e8f6ff;
  color: #278fd5;
}

.telegram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.telegram-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
}

.telegram-disconnect {
  color: #d95077;
}

.telegram-preferences .permission-row:last-child {
  border-bottom: 0;
}

.profile-preview {
  min-height: 100px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff1f6, #eee8ff);
}

.profile-avatar-preview {
  width: 78px;
  height: 78px;
  box-shadow: 0 0 0 5px #fff, 0 8px 20px rgba(117, 80, 173, .15);
}

input,
select,
textarea {
  min-height: 43px;
  border: 1px solid #e7e1f1;
  border-radius: 14px;
  background: #fff;
  color: var(--fg);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #d7cdf0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(141, 92, 246, .1);
}

input[type="file"] {
  padding: 8px;
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 10px;
  padding: 7px 12px;
  margin-left: 10px;
  background: var(--lavender);
  color: var(--accent);
  font-family: inherit;
}

.primary-btn {
  min-height: 46px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #a66eff, #713beb);
  color: #fff;
  box-shadow: 0 10px 22px rgba(119, 66, 232, .2);
}

.ghost-btn,
.icon-btn {
  border-color: #e6dff3;
  background: rgba(255, 255, 255, .86);
  color: #716689;
}

.permission-row {
  min-height: 61px;
  border-bottom-color: #eeeaf6;
}

.switch span {
  background: #d8d1e7;
}

.switch input:checked + span {
  background: linear-gradient(90deg, #9f6bfa, #7d47ed);
}

.modal-backdrop.open,
.drawer-backdrop.open {
  background: rgba(43, 32, 73, .35);
  backdrop-filter: blur(8px);
}

.task-composer {
  width: min(1180px, calc(100vw - 56px));
  max-height: calc(100dvh - 40px);
  border: 1px solid rgba(224, 216, 243, .94);
  border-radius: 32px;
  padding: 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 32px 90px rgba(48, 34, 82, .24);
  overflow: hidden auto;
}

.composer-head {
  position: relative;
  min-height: 116px;
  padding: 27px 38px 20px;
  border-bottom: 1px solid #ece7f4;
  background: linear-gradient(90deg, #fff, #fcf9ff);
}

.composer-head h2 {
  margin: 2px 0 3px;
  color: #34255f;
  font-size: 35px;
}

.composer-head small {
  color: #8e5cf2;
}

.composer-head p {
  color: #9188a3;
}

.composer-flower {
  position: absolute;
  z-index: 2;
  top: -80px;
  right: -65px;
  width: 235px;
  height: 235px;
  object-fit: contain;
  pointer-events: none;
}

.composer-bunny {
  position: absolute;
  z-index: 2;
  bottom: -68px;
  left: -68px;
  width: 240px;
  height: 240px;
  object-fit: contain;
  pointer-events: none;
}

.composer-form {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px 18px;
  padding: 20px 38px 28px;
}

.composer-form > .field-title:first-child,
.composer-form > .field-title:nth-child(2),
.composer-form > .composer-section,
.composer-form > .composer-columns,
.composer-form > .composer-summary,
.composer-form > .form-actions {
  grid-column: 1 / -1;
}

.field-title,
.composer-section,
.select-field {
  color: #4f426a;
  font-weight: 700;
}

.field-title input {
  min-height: 54px;
}

.field-title textarea {
  min-height: 80px;
}

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

.composer-section {
  border: 1px solid #eee8f5;
  border-radius: 19px;
  padding: 14px;
  background: #fdfcff;
}

.timing-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.timing-segment button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}

.timing-segment button b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  background: #f5f0ff;
  color: #8152e5;
}

.composer-form.anytime-mode .time-section,
.composer-form.anytime-mode .duration-section {
  display: none;
}

.composer-form.anytime-mode .composer-columns:not(.compact-columns) {
  grid-template-columns: 1fr;
}

.segmented,
.quick-chips,
.duration-chips {
  gap: 8px;
}

.segmented button,
.quick-chips button,
.duration-chips button {
  min-height: 38px;
  border: 1px solid #e5def0;
  border-radius: 13px;
  background: #fff;
  color: #766b8d;
}

.segmented button.active,
.quick-chips button.active,
.duration-chips button.active {
  border-color: #a477f7;
  background: #f1eaff;
  color: #7442e5;
  box-shadow: inset 0 0 0 1px rgba(139, 90, 242, .12);
}

.date-picker-trigger,
.time-stepper {
  min-height: 58px;
  border: 1px solid #e7e0f2;
  border-radius: 16px;
  background: #fff;
}

.composer-summary {
  min-height: 50px;
  border: 1px solid #ebdff4;
  border-radius: 15px;
  background: linear-gradient(90deg, #fff2f7, #f3edff);
  color: #756887;
}

.sticky-actions {
  position: sticky;
  bottom: -28px;
  z-index: 5;
  margin: 0 -38px -28px;
  padding: 16px 38px 20px;
  border-top: 1px solid #eee9f6;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(15px);
}

.sticky-actions .primary-btn {
  min-width: 220px;
}

.review-modal {
  width: min(1220px, calc(100vw - 50px));
  min-height: 720px;
  max-height: calc(100dvh - 40px);
  border: 1px solid #dcd2f5;
  border-radius: 30px;
  padding: 0;
  overflow: hidden auto;
  background:
    radial-gradient(circle at 0 0, rgba(108, 81, 183, .2), transparent 32%),
    linear-gradient(145deg, #f5f1ff, #fff);
}

.review-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../img/night-cloud-strip.40cf2894ecde.png") center bottom 18px / 92% auto no-repeat;
  opacity: .14;
}

.review-lantern {
  position: absolute;
  z-index: 1;
  left: 25px;
  bottom: 45px;
  width: 150px;
  height: 150px;
  object-fit: contain;
  opacity: .72;
}

.review-head,
.review-progress,
.review-step-label,
.review-body,
.review-actions {
  position: relative;
  z-index: 2;
}

.review-head {
  min-height: 105px;
  padding: 26px 34px 18px;
  border-bottom: 0;
}

.review-head h2 {
  color: #382a68;
  font-size: 29px;
}

.review-progress {
  height: 8px;
  margin: 0 34px;
  border-radius: 999px;
  background: #e9e2f8;
}

.review-progress i {
  border-radius: inherit;
  background: linear-gradient(90deg, #a878ff, #7643ed);
}

.review-step-label {
  margin: 14px 34px 0;
  color: #8c78ba;
}

.review-body {
  min-height: 390px;
  padding: 20px 34px 28px 180px;
}

.review-summary-grid {
  gap: 12px;
}

.review-kpi {
  min-height: 125px;
  border: 1px solid #e8e0f6;
  border-radius: 20px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow-soft);
}

.review-actions {
  padding: 16px 34px 22px;
  border-top: 1px solid #e9e3f5;
  background: rgba(255, 255, 255, .72);
}

.review-task,
.review-fields label {
  border-color: #e8e1f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
}

.review-choice button {
  min-height: 42px;
  line-height: 1.55;
}

.review-choice button.danger {
  color: #b44e68;
}

.review-choice button.danger.active {
  border-color: #df7893;
  background: #fff0f4;
  color: #a83f5b;
}

.review-choice-note {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  color: #817591;
  font-size: 8px;
  line-height: 1.7;
}

.calendar-modal.open {
  z-index: 50;
}

.task-drawer,
.insight-drawer {
  border-radius: 28px 0 0 28px;
  border-color: #e5ddf2;
  background: rgba(255, 255, 255, .97);
  box-shadow: -20px 0 60px rgba(48, 34, 82, .16);
}

.mobile-tabs,
.mobile-fab {
  display: none;
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 132px minmax(0, 1fr) 292px;
    gap: 12px;
    padding: 12px;
  }

  .nav-item {
    padding-inline: 9px;
    gap: 7px;
    font-size: 13px;
  }

  .view {
    padding-inline: 18px;
  }

  .stat-card {
    padding: 18px 13px;
  }

  .stat-ring {
    left: 10px;
  }

  .stat-icon {
    left: 24px;
  }

  .habit-card {
    grid-template-columns: 1fr 1.7fr 90px;
  }

  .habit-summary-strip {
    grid-template-columns: 1fr;
  }

  .stats-mini-grid {
    grid-template-columns: 1fr;
  }

  .habit-grid {
    grid-template-columns: repeat(7, 26px);
    gap: 4px;
  }

  .habit-day {
    width: 26px;
    height: 26px;
  }
}

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

  .partner-rail {
    display: none;
  }

  .brand-mini strong {
    font-size: 23px;
  }

  .nav-item {
    justify-content: center;
    flex-direction: column;
    min-height: 66px;
    font-size: 10px;
  }

  .sidebar-new-task span {
    display: none;
  }

  .settings-grid,
  .stats-dashboard {
    grid-template-columns: 1fr;
  }

  .settings-grid .profile-settings,
  .stats-dashboard .kpi-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .telegram-settings {
    grid-column: auto;
  }

  .stats-dashboard .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  html,
  body {
    min-height: 100%;
    overflow: auto;
    background: linear-gradient(180deg, #f0edff 0, #fff 54%, #faf8ff 100%);
  }

  body {
    padding-bottom: 94px;
  }

  .page-flower {
    width: 115px;
    height: 115px;
    z-index: 4;
  }

  .page-flower-top {
    top: -34px;
    right: -38px;
  }

  .page-flower-bottom {
    display: none;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: 0;
    overflow: visible;
  }

  .sidebar,
  .partner-rail {
    display: none !important;
  }

  .cute-content {
    display: block;
    min-height: 100dvh;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cute-topbar {
    min-height: 305px;
    padding: 42px 22px 24px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
    background:
      radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .65), transparent 42%),
      linear-gradient(180deg, #eeebff 0, #f7f4ff 84%, transparent 100%);
  }

  .title-wrap {
    width: 100%;
    padding-top: 78px;
    text-align: right;
  }

  .title-wrap small {
    display: none;
  }

  .title-wrap h1 {
    max-width: 280px;
    margin-right: auto;
    font-size: 28px;
    line-height: 1.45;
    text-align: center;
  }

  .topbar-subtitle {
    max-width: 260px;
    margin: 6px auto 0 0;
    text-align: center;
    font-size: 13px;
  }

  .topbar-mascot {
    left: 13px;
    bottom: -2px;
    width: 185px;
    height: 185px;
  }

  .topbar-actions {
    display: block;
    right: 22px;
    top: 26px;
  }

  .people-pill {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    padding: 0;
    overflow: visible;
  }

  .people-pill .person-photo:first-child {
    width: 60px;
    height: 60px;
  }

  .people-pill .partner-photo,
  .people-pill .heart-divider,
  .people-pill > span:not(.person-photo) {
    display: none;
  }

  .view {
    min-height: auto;
    overflow: visible;
    padding: 0 14px 35px;
  }

  .cute-day-toolbar {
    width: calc(100% - 26px);
    margin: -2px auto 16px;
    min-height: 58px;
    border-radius: 21px;
  }

  .day-toolbar > .ghost-btn {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    min-height: 152px;
    border-radius: 25px;
    padding: 19px 16px;
  }

  .stat-card strong {
    max-width: 125px;
    font-size: 27px;
  }

  .stat-ring {
    left: 18px;
    top: 68px;
    width: 58px;
    height: 58px;
  }

  .stat-icon {
    left: 33px;
    top: 84px;
  }

  .cute-timeline-card {
    min-height: 660px;
    border-radius: 28px;
  }

  .timeline-head {
    height: 62px;
    padding: 15px 18px;
  }

  .anytime-strip {
    padding: 14px 13px 15px;
  }

  .anytime-head {
    align-items: flex-start;
  }

  .anytime-list {
    grid-template-columns: 1fr;
  }

  .anytime-task {
    min-height: 66px;
  }

  .timeline-scroll {
    min-height: 555px;
    max-height: none;
    overflow: hidden;
  }

  .timeline {
    min-height: 555px !important;
    transform: none;
  }

  .task-block {
    right: 62px !important;
    left: 13px !important;
    min-height: 48px;
    padding-inline: 12px;
  }

  .hour-line {
    right: 60px;
    left: 12px;
  }

  .hour-label {
    right: 10px;
  }

  .now-line {
    right: 62px;
    left: 13px;
  }

  .timeline-add {
    display: none;
  }

  .mobile-growth-card {
    position: relative;
    min-height: 180px;
    margin: 15px 0 4px;
    padding: 28px 22px 24px 150px;
    display: block;
    border: 1px solid #ece5f6;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, #f4fff9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  .mobile-growth-card strong {
    display: block;
    margin: 5px 0;
    color: #3d3066;
    font-size: 21px;
  }

  .mobile-growth-card small {
    color: var(--accent);
  }

  .mobile-growth-card p {
    color: #8b829d;
    font-size: 11px;
  }

  .mobile-growth-card img {
    position: absolute;
    left: 5px;
    bottom: -14px;
    width: 170px;
    height: 170px;
    object-fit: contain;
  }

  .mobile-growth-card .xp-track {
    width: 100%;
  }

  .mobile-growth-card b {
    display: block;
    margin-top: 5px;
    color: var(--green);
    font-size: 11px;
  }

  .mobile-night-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 142px;
    margin: 12px 0 4px;
    padding: 23px 20px;
    overflow: hidden;
    border: 1px solid rgba(146, 117, 215, .28);
    border-radius: 28px;
    background:
      url("../img/night-cloud-strip.40cf2894ecde.png") left -20px bottom -15px / 240px auto no-repeat,
      linear-gradient(145deg, #7760b5, #352361);
    color: #fff;
    box-shadow: 0 18px 38px rgba(61, 42, 108, .18);
  }

  .mobile-night-copy {
    position: relative;
    z-index: 1;
    flex: 1;
  }

  .mobile-night-copy small,
  .mobile-night-copy strong {
    display: block;
  }

  .mobile-night-copy small {
    color: #e9dcff;
    font-size: 10px;
  }

  .mobile-night-copy strong {
    margin: 5px 0;
    font-size: 17px;
  }

  .mobile-night-copy p {
    max-width: 220px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 9px;
    line-height: 1.8;
  }

  .mobile-night-card .night-btn {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }

  .mobile-tabs {
    position: fixed;
    z-index: 35;
    right: 10px;
    bottom: 8px;
    left: 10px;
    height: 78px;
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid rgba(225, 218, 242, .96);
    border-radius: 25px;
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 14px 38px rgba(67, 49, 101, .18);
    backdrop-filter: blur(20px);
  }

  .mobile-tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: #9188a5;
    font-size: 10px;
  }

  .mobile-tabs button.active {
    background: linear-gradient(180deg, #f1ebff, #f8f5ff);
    color: #7544e7;
  }

  .mobile-tabs button.active svg {
    fill: currentColor;
  }

  .mobile-tabs svg {
    width: 24px;
    height: 24px;
  }

  .mobile-fab {
    position: fixed;
    z-index: 36;
    right: calc(50% - 30px);
    bottom: 56px;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 7px solid rgba(247, 244, 255, .96);
    border-radius: 50%;
    background: linear-gradient(145deg, #a96cff, #6b36ec);
    color: #fff;
    box-shadow: 0 12px 26px rgba(110, 58, 223, .3);
    font-size: 32px;
  }

  .mobile-tabs button:nth-child(3) {
    padding-top: 20px;
  }

  .week-actions,
  .section-actions {
    align-items: flex-start;
    gap: 12px;
  }

  .week-grid {
    min-width: 780px;
  }

  .week-card {
    min-height: 490px;
  }

  .habit-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .habit-day {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    max-width: 38px;
  }

  .stats-dashboard .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-grid,
  .stats-dashboard {
    grid-template-columns: 1fr;
  }

  .chart-card {
    min-height: 270px;
  }

  .task-composer {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 94dvh;
    border-radius: 30px 30px 0 0;
    transform: translateY(102%);
  }

  .task-composer.open {
    transform: translateY(0);
  }

  .composer-head {
    min-height: 100px;
    padding: 22px 23px 16px;
  }

  .composer-head h2 {
    font-size: 27px;
  }

  .composer-flower {
    width: 155px;
    height: 155px;
    top: -60px;
    right: -50px;
  }

  .composer-bunny {
    display: none;
  }

  .composer-form {
    display: block;
    padding: 16px 18px 110px;
  }

  .composer-form > * {
    margin-bottom: 12px;
  }

  .composer-columns {
    grid-template-columns: 1fr;
  }

  .compact-columns {
    grid-template-columns: 1fr 1fr;
  }

  .duration-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .sticky-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 13px 17px calc(13px + env(safe-area-inset-bottom));
  }

  .sticky-actions .save-again {
    display: none;
  }

  .sticky-actions .primary-btn {
    flex: 1;
    min-width: 0;
  }

  .review-modal {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 88dvh;
    max-height: 94dvh;
    border-radius: 30px 30px 0 0;
    transform: translateY(102%);
  }

  .review-modal.open {
    transform: translateY(0);
  }

  .review-modal::before {
    opacity: .17;
  }

  .review-lantern {
    display: none;
  }

  .review-body {
    min-height: 440px;
    padding: 16px 18px 90px;
  }

  .review-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-kpi {
    min-height: 105px;
  }

  .review-actions {
    position: sticky;
    bottom: 0;
  }

  .asset-empty {
    min-height: 170px;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    text-align: center;
  }

  .asset-empty img {
    width: 115px;
    height: 115px;
  }

  .task-drawer,
  .insight-drawer {
    width: 100%;
    border-radius: 28px 28px 0 0;
  }
}

@media (max-width: 430px) {
  .title-wrap h1 {
    font-size: 25px;
  }

  .topbar-mascot {
    width: 205px;
    height: 205px;
    left: -4px;
    bottom: -8px;
  }

  .stat-card {
    min-height: 144px;
    padding-inline: 13px;
  }

  .stat-card strong {
    font-size: 23px;
  }

  .mobile-growth-card {
    padding-left: 125px;
  }

  .mobile-growth-card img {
    width: 145px;
    height: 145px;
  }

  .stats-dashboard .kpi-grid {
    grid-template-columns: 1fr;
  }

  .compact-columns {
    grid-template-columns: 1fr;
  }
}

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

.auth-body {
  min-height: 100dvh;
  padding: 32px;
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    url("../img/flowers-corner-top-right.6ad1eb9e48fb.png") right -60px top -70px / 260px no-repeat,
    url("../img/flowers-corner-bottom-left.1ebcff923061.png") left -80px bottom -100px / 300px no-repeat,
    radial-gradient(circle at 18% 25%, rgba(255, 220, 233, .6), transparent 30%),
    linear-gradient(145deg, #f1edff, #fff);
}

.auth-body::before {
  content: "";
  position: fixed;
  left: max(5vw, 35px);
  bottom: 2vh;
  width: min(36vw, 480px);
  aspect-ratio: 1;
  background: url("../img/bunny-main.4cc64191b46c.png") center / contain no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 22px 35px rgba(108, 75, 171, .13));
}

.auth-card {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100vw - 34px));
  margin-right: min(34vw, 440px);
  border: 1px solid rgba(224, 216, 242, .94);
  border-radius: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, .91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card.wide {
  width: min(570px, calc(100vw - 34px));
}

.auth-brand .brand-mark {
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #a86dff, #713bec);
  color: #fff;
}

.auth-brand strong {
  color: #382860;
  font-family: "Capsule Black", Tahoma, sans-serif;
  font-size: 26px;
}

.auth-card h1 {
  margin: 26px 0 18px;
  color: #392965;
  font-size: 28px;
}

.auth-card .stack {
  gap: 15px;
}

.auth-card label {
  color: #544b69;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 800px) {
  .auth-body {
    padding: 18px;
  }

  .auth-body::before {
    top: 2vh;
    bottom: auto;
    left: 50%;
    width: 210px;
    transform: translateX(-50%);
    opacity: .35;
  }

  .auth-card,
  .auth-card.wide {
    width: 100%;
    margin: 180px 0 0;
    padding: 24px;
  }
}

/* Shared boards — a user-built scrapbook, not a fixed set of categories. */
body[data-app-view="boards"] .app-shell {
  grid-template-columns: 160px minmax(0, 1fr);
}

body[data-app-view="boards"] .partner-rail,
body[data-app-view="boards"] .cute-topbar {
  display: none;
}

body[data-app-view="boards"] .cute-content {
  grid-column: 2;
}

.boards-view {
  padding: 0 !important;
  background-color: #eee9fa;
  background-image:
    linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 7px 7px;
}

.boards-root {
  min-height: 100%;
}

.boards-page,
.board-detail {
  min-height: 100%;
  padding: 38px clamp(24px, 4vw, 64px) 70px;
}

.boards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.boards-header h2 {
  margin: 0;
  color: #3d2f68;
  font-family: "Capsule Black", Tahoma, sans-serif;
  font-size: clamp(31px, 3.2vw, 48px);
}

.boards-header h2 span {
  color: #e86b9c;
}

.boards-header p {
  margin-top: 8px;
  color: #756b8c;
}

.boards-new {
  min-height: 52px;
  padding-inline: 22px;
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(111, 75, 191, .2);
}

.boards-new b {
  margin-right: 8px;
  font-size: 20px;
}

.boards-filters {
  display: flex;
  gap: 8px;
  margin: 25px 0 27px;
}

.boards-filters button {
  min-width: 74px;
  height: 38px;
  border: 1px solid rgba(118, 94, 171, .15);
  border-radius: 13px;
  background: rgba(255,255,255,.58);
  color: #796e91;
  font-weight: 800;
}

.boards-filters button.active {
  border-color: #8d62e8;
  background: #7650cc;
  color: #fff;
}

.boards-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 40px;
}

.boards-pinboard {
  min-width: 0;
}

.boards-featured-wrap {
  position: relative;
  max-width: 760px;
}

.board-cover-card {
  position: relative;
  border: 0;
  color: #41355f;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(69, 46, 106, .16), 0 2px 0 rgba(255,255,255,.8) inset;
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease;
}

.board-cover-card:hover {
  transform: translateY(-4px) rotate(.25deg);
  box-shadow: 0 23px 48px rgba(69, 46, 106, .2);
}

.board-cover-card.featured {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(190px, .8fr);
  min-height: 350px;
  padding: 18px;
  border-radius: 8px 17px 10px 5px;
  transform: rotate(-.45deg);
}

.board-cover-card.featured:hover {
  transform: translateY(-4px) rotate(0);
}

.board-cover-media {
  min-width: 0;
  overflow: hidden;
  background: #e7dfef;
}

.featured .board-cover-media {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: 5px;
}

.board-cover-media > img,
.continue-board > img,
.board-hero-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.board-cover-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.board-cover-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
}

.board-cover-fallback span {
  position: absolute;
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 4px;
  background: rgba(255,253,248,.9);
  color: #473663;
  font-weight: 900;
}

.board-cover-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 28px 24px 12px;
  text-align: right;
}

.board-cover-copy strong,
.board-cover-copy small {
  display: block;
}

.board-cover-copy strong {
  margin-bottom: 9px;
  color: #3c2d5f;
  font-size: 27px;
}

.board-cover-copy small {
  color: #8b8197;
}

.board-cover-copy button {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #efe8ff;
  color: #7650cb;
}

.board-cover-copy svg,
.board-back svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.board-cover-progress {
  height: 7px;
  margin: 7px 24px 24px;
  border-radius: 8px;
  background: #eee8f2;
  overflow: hidden;
}

.board-cover-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8c5bd8;
}

.board-pin,
.paper-pin {
  position: absolute;
  z-index: 4;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  top: 10px;
  right: 50%;
  background: #e46691;
  box-shadow: 0 4px 6px rgba(77, 45, 69, .3), inset 0 2px 2px rgba(255,255,255,.7);
}

.board-tape {
  position: absolute;
  z-index: 3;
  width: 74px;
  height: 22px;
  top: -9px;
  left: 15%;
  transform: rotate(-4deg);
  background: rgba(231, 214, 161, .67);
}

.boards-cat-yarn {
  position: absolute;
  z-index: 5;
  width: 150px;
  left: -63px;
  bottom: -44px;
  filter: drop-shadow(0 12px 14px rgba(42,28,50,.22));
  pointer-events: none;
}

.boards-card-rail {
  margin-top: 54px;
}

.boards-card-rail h3,
.boards-context h3 {
  margin-bottom: 16px;
  color: #4b3d6e;
  font-size: 18px;
}

.boards-card-rail > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(155px, 1fr));
  gap: 22px;
}

.board-cover-card.small {
  min-height: 235px;
  padding: 10px;
  border-radius: 6px;
  transform: rotate(.7deg);
}

.board-cover-card.small:nth-child(even) {
  transform: rotate(-.8deg);
}

.small .board-cover-media {
  height: 145px;
}

.small .board-cover-copy {
  padding: 13px 7px 4px;
}

.small .board-cover-copy strong {
  margin: 0 0 4px;
  font-size: 17px;
}

.small .board-cover-copy button {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.small .board-cover-progress {
  margin: 7px 7px 7px;
  height: 5px;
}

.boards-context {
  padding-top: 5px;
}

.continue-board {
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 15px 32px rgba(70,49,111,.14);
  text-align: right;
  transform: rotate(1deg);
}

.continue-board > img,
.continue-board > .board-cover-fallback {
  width: 100%;
  height: 125px;
  object-fit: cover;
}

.continue-board span {
  display: block;
  padding: 12px 7px 8px;
}

.continue-board strong,
.continue-board small {
  display: block;
}

.continue-board small {
  margin-top: 4px;
  color: #8f849e;
}

.continue-board b {
  display: inline-block;
  margin: 0 7px 8px;
  color: #8154d4;
  font-size: 12px;
}

.boards-context > img {
  width: 100%;
  max-height: 250px;
  margin-top: 38px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(68,43,96,.15));
}

.boards-context > p {
  color: #827793;
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}

.boards-first-note,
.boards-empty-state {
  max-width: 560px;
  margin: 65px auto;
  padding: 28px;
  border: 1px solid rgba(108,78,159,.13);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.boards-first-note p,
.boards-empty-state p {
  color: #7e748d;
  line-height: 1.9;
}

.boards-empty-state img {
  width: min(220px, 70%);
}

/* Board detail */
.board-detail {
  max-width: 1180px;
  margin: 0 auto;
}

.board-detail-hero {
  position: relative;
  min-height: 390px;
}

.board-hero-media {
  height: 360px;
  margin-left: 23%;
  border: 10px solid #fffdf8;
  background: #dcd4e8;
  box-shadow: 0 20px 45px rgba(55,40,86,.2);
  overflow: hidden;
  transform: rotate(-.35deg);
}

.board-back {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  color: #4e406d;
  font-weight: 800;
}

.board-title-paper {
  position: absolute;
  z-index: 4;
  width: min(420px, 42%);
  right: 5%;
  bottom: -8px;
  padding: 32px 31px 25px;
  border-radius: 5px;
  background: #fffdf8;
  box-shadow: 0 18px 40px rgba(70,48,109,.19);
  transform: rotate(.7deg);
}

.board-title-paper h2 {
  margin: 0 0 7px;
  color: #392b5c;
  font-family: "Capsule Black", Tahoma, sans-serif;
  font-size: 37px;
}

.board-title-paper p {
  margin: 0 0 8px;
  color: #746a82;
  line-height: 1.8;
}

.board-title-paper > small {
  color: #9a8fa5;
}

.board-favorite {
  position: absolute;
  top: 14px;
  left: 16px;
  border: 0;
  background: transparent;
  color: #a69aad;
  font-size: 27px;
}

.board-favorite.active {
  color: #e65e92;
}

.board-title-progress {
  margin-top: 17px;
}

.board-title-progress span {
  display: block;
  margin-bottom: 7px;
  color: #6c5c7c;
  font-size: 12px;
}

.board-title-progress i {
  height: 6px;
  display: block;
  border-radius: 8px;
  background: #eee8f1;
  overflow: hidden;
}

.board-title-progress b {
  height: 100%;
  display: block;
  background: #9561dd;
}

.board-title-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.board-title-actions .primary-btn,
.board-title-actions .ghost-btn {
  min-height: 40px;
  padding: 8px 14px;
}

.board-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 24px;
}

.board-tabs button {
  padding: 11px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #756b83;
  font-weight: 800;
}

.board-tabs button.active {
  border-color: #8c59d7;
  color: #7043bd;
}

.board-overview-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  gap: 28px;
}

.board-overview-main,
.board-overview-side,
.board-single-column {
  display: grid;
  align-content: start;
  gap: 28px;
}

.board-overview-wide {
  grid-column: 1 / -1;
  display: grid;
  gap: 28px;
}

.board-paper,
.board-note,
.board-budget {
  position: relative;
  padding: 25px;
  border-radius: 6px;
  background-color: #fffdf8;
  background-image: linear-gradient(rgba(124,99,151,.045) 1px, transparent 1px);
  background-size: 100% 27px;
  box-shadow: 0 15px 32px rgba(66,44,99,.13);
}

.board-paper:nth-child(even) {
  transform: rotate(-.25deg);
}

.paper-pin {
  top: 10px;
  right: 20px;
}

.paper-pin.purple { background: #8056c9; }
.paper-pin.pink { background: #e56b99; }

.board-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}

.board-section-head h3 {
  margin: 0;
  color: #44335f;
  font-size: 20px;
}

.board-section-head button,
.board-budget button {
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: #eee7fb;
  color: #7448c1;
  font-weight: 800;
}

.itinerary-list article,
.board-checklist article,
.purchase-ledger article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 3px;
  border-bottom: 1px dashed #ddd2e5;
}

.itinerary-list article > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #efe6fd;
  color: #7144b5;
  font-weight: 900;
}

.itinerary-list article > div,
.board-checklist article > div,
.purchase-ledger article > div {
  flex: 1;
  min-width: 0;
}

.itinerary-list strong,
.itinerary-list small,
.board-checklist strong,
.board-checklist small,
.purchase-ledger strong,
.purchase-ledger small {
  display: block;
}

.itinerary-list small,
.board-checklist small,
.purchase-ledger small {
  margin-top: 4px;
  color: #958a9e;
  font-size: 11px;
}

.itinerary-list article > button,
.board-row-delete,
.purchase-ledger article > button {
  border: 0;
  background: transparent;
  color: #b6aabd;
  font-size: 18px;
}

.board-check {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 2px solid #c9bbdb;
  border-radius: 7px;
  background: #fff;
  color: #fff;
}

.board-checklist article.done .board-check {
  border-color: #70bba4;
  background: #70bba4;
}

.board-checklist article.done strong {
  color: #a49ca8;
  text-decoration: line-through;
}

.board-note {
  min-height: 180px;
  background-color: #fff6bc;
  background-image: none;
  transform: rotate(1.2deg);
}

.board-note p {
  color: #6f604e;
  line-height: 2;
}

.board-note-delete {
  border: 0;
  background: transparent;
  color: #ad795f;
  font-size: 11px;
}

.boards-cat-map {
  width: 180px;
  margin: -16px auto -12px;
  filter: drop-shadow(0 13px 14px rgba(35,24,45,.2));
}

.board-budget {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(180px, 1.2fr) auto;
  align-items: center;
  gap: 20px;
  background: #e4d3f8;
}

.board-budget strong,
.board-budget small {
  display: block;
}

.board-budget small {
  margin-top: 4px;
  color: #756783;
}

.board-budget > i {
  height: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  overflow: hidden;
}

.board-budget > i b {
  height: 100%;
  display: block;
  background: #7b4fc0;
}

.board-section-empty {
  padding: 22px;
  color: #9b91a4;
  text-align: center;
}

.purchase-ledger article > b {
  color: #624692;
}

.board-photo-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.board-photo-rail figure {
  position: relative;
  margin: 0;
  padding: 7px 7px 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(63,42,91,.13);
  transform: rotate(.8deg);
}

.board-photo-rail figure:nth-child(even) {
  transform: rotate(-1deg);
}

.board-photo-rail img {
  width: 100%;
  aspect-ratio: 1.2;
  display: block;
  object-fit: cover;
}

.board-photo-rail figcaption {
  padding: 9px 4px 0;
  color: #746a7e;
  font-size: 11px;
}

.board-photo-rail figure button {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: rgba(43,29,54,.68);
  color: #fff;
}

.board-gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 10px;
}

.board-gallery-empty img {
  width: 170px;
  max-height: 160px;
  object-fit: contain;
}

.board-gallery-empty p {
  color: #8f8599;
}

.boards-bunny-peek {
  position: absolute;
  z-index: 4;
  width: 92px;
  right: -23px;
  bottom: -54px;
  filter: drop-shadow(0 9px 10px rgba(68,43,96,.15));
  pointer-events: none;
}

.board-editor {
  width: min(680px, calc(100vw - 28px));
  max-height: min(90vh, 780px);
}

.board-editor-head small {
  color: #8d5ad3;
}

.board-form {
  display: grid;
  gap: 15px;
}

.board-cover-picker {
  cursor: pointer;
}

.board-cover-picker > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.board-cover-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 2px dashed #cdbde9;
  border-radius: 18px;
  background: #f7f3ff center / cover no-repeat;
  color: #7e5ab8;
  overflow: hidden;
}

.board-cover-preview.has-image {
  align-content: end;
  padding: 14px;
  border-style: solid;
}

.board-cover-preview.has-image span {
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(255,255,255,.88);
  color: #544068;
  font-weight: 800;
}

.board-cover-preview b {
  font-size: 28px;
}

.board-cover-preview small {
  color: #a296af;
}

.board-form-grid {
  gap: 12px;
}

@media (max-width: 1280px) and (min-width: 801px) {
  body[data-app-view="boards"] .app-shell {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .boards-overview-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 25px;
  }

  .boards-cat-yarn {
    left: -35px;
    width: 125px;
  }
}

@media (max-width: 800px) {
  body[data-app-view="boards"] {
    padding-bottom: 82px;
    background: #eee9fa;
  }

  body[data-app-view="boards"] .app-shell {
    display: block;
  }

  body[data-app-view="boards"] .mobile-fab {
    display: none;
  }

  .boards-page,
  .board-detail {
    padding: 28px 16px 55px;
  }

  .boards-header {
    align-items: flex-start;
  }

  .boards-header h2 {
    font-size: 29px;
  }

  .boards-header p {
    max-width: 220px;
    font-size: 12px;
    line-height: 1.8;
  }

  .boards-new {
    min-height: 43px;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 11px;
  }

  .boards-filters {
    margin: 18px 0 23px;
  }

  .boards-filters button {
    min-width: 0;
    height: 35px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .boards-overview-layout {
    display: block;
  }

  .board-cover-card.featured {
    display: block;
    min-height: 0;
    padding: 10px;
  }

  .featured .board-cover-media {
    height: 240px;
  }

  .board-cover-copy {
    padding: 16px 10px 7px;
  }

  .board-cover-copy strong {
    font-size: 22px;
  }

  .board-cover-progress {
    margin: 8px 10px 12px;
  }

  .boards-cat-yarn {
    width: 102px;
    left: -6px;
    bottom: -45px;
  }

  .boards-card-rail {
    margin-top: 70px;
  }

  .boards-card-rail > div {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 8px 3px 24px;
    scroll-snap-type: x mandatory;
  }

  .board-cover-card.small {
    min-width: 210px;
    scroll-snap-align: start;
  }

  .boards-context {
    display: none;
  }

  .boards-first-note,
  .boards-empty-state {
    margin: 55px auto 20px;
    padding: 22px 16px;
  }

  .board-detail {
    padding-top: 14px;
  }

  .board-detail-hero {
    min-height: 440px;
  }

  .board-hero-media {
    height: 260px;
    margin: 0;
    border-width: 7px;
  }

  .board-title-paper {
    width: calc(100% - 28px);
    right: 14px;
    bottom: 0;
    padding: 26px 20px 20px;
  }

  .board-title-paper h2 {
    font-size: 29px;
  }

  .board-title-actions {
    flex-wrap: wrap;
  }

  .board-tabs {
    justify-content: flex-start;
    margin: 17px -16px 22px;
    padding-inline: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .board-tabs button {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 11px;
  }

  .board-overview-content,
  .board-overview-main,
  .board-overview-side,
  .board-overview-wide,
  .board-single-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .board-overview-wide {
    grid-column: auto;
  }

  .board-paper,
  .board-note,
  .board-budget {
    padding: 21px 17px;
  }

  .board-budget {
    grid-template-columns: 1fr 1fr;
  }

  .board-budget > i {
    grid-column: 1 / -1;
  }

  .board-photo-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }

  .board-gallery-empty {
    flex-direction: column;
    text-align: center;
  }

  .boards-cat-map {
    width: 145px;
  }

  .boards-bunny-peek {
    width: 76px;
    top: 58px;
    right: auto;
    bottom: auto;
    left: -8px;
  }

  .board-editor,
  .board-item-editor {
    width: calc(100vw - 20px);
    max-height: 88dvh;
    padding: 22px 16px;
    border-radius: 24px 24px 18px 18px;
  }

  .board-form-grid {
    grid-template-columns: 1fr;
  }

  .board-form-grid .span-2 {
    grid-column: auto;
  }

  .mobile-tabs {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding-inline: 5px;
  }

  .mobile-tabs button {
    min-width: 0;
    padding-inline: 2px;
    font-size: 9px;
  }

  .mobile-tabs svg {
    width: 21px;
    height: 21px;
  }
}

/* Cycle care — consent-first, calm, tactile and faithful to the approved concept. */
body[data-app-view="cycle"] .app-shell {
  grid-template-columns: 160px minmax(0, 1fr);
}

body[data-app-view="cycle"] .partner-rail,
body[data-app-view="cycle"] .cute-topbar {
  display: none;
}

body[data-app-view="cycle"] .cute-content {
  grid-column: 2;
}

.cycle-view {
  padding: 0 !important;
  background-color: #f2eef8;
  background-image:
    linear-gradient(rgba(119, 91, 155, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 91, 155, .025) 1px, transparent 1px);
  background-size: 6px 6px;
}

.cycle-root,
.cycle-page {
  min-height: 100%;
}

.cycle-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px clamp(22px, 3.4vw, 52px) 30px;
  color: #38295e;
}

.cycle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.cycle-header h2 {
  margin: 0;
  color: #3a2866;
  font-family: "Capsule Black", Tahoma, sans-serif;
  font-size: clamp(34px, 3vw, 48px);
}

.cycle-header p {
  margin: 7px 0 0;
  color: #716883;
  font-size: 14px;
}

.cycle-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cycle-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 255px;
  padding: 3px;
  border: 1px solid #cfc4de;
  border-radius: 12px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 8px 19px rgba(66,43,96,.08);
}

.cycle-mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5e5077;
  font-size: 13px;
  font-weight: 800;
}

.cycle-mode-switch button.active {
  background: #7952c7;
  color: #fff;
  box-shadow: 0 7px 16px rgba(99,64,173,.22);
}

.cycle-role-badge {
  min-width: 230px;
  padding: 10px 14px;
  border: 1px solid #d4c8e2;
  border-radius: 13px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 19px rgba(66,43,96,.08);
}

.cycle-role-badge span,
.cycle-role-badge small {
  display: block;
}

.cycle-role-badge span {
  color: #593e87;
  font-size: 12px;
  font-weight: 900;
}

.cycle-role-badge small {
  margin-top: 3px;
  color: #8a7e96;
  font-size: 9px;
}

.cycle-role-badge.viewer {
  border-color: #efc9d5;
  background: #fff7f9;
}

.cycle-role-badge.viewer span { color: #bd5875; }

.cycle-privacy-quick {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid #d4cae2;
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  color: #554076;
}

.cycle-privacy-quick svg,
.cycle-disclaimer svg,
.cycle-privacy-paper svg,
.cycle-love-btn svg,
.cycle-main-actions svg,
.partner-shared-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cycle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 25px;
}

.cycle-main {
  min-width: 0;
}

.cycle-focus-grid {
  display: grid;
  grid-template-columns: minmax(390px, 1.05fr) minmax(350px, .95fr);
  gap: 22px;
  align-items: stretch;
}

.paper-surface {
  position: relative;
  background-color: #fffdf9;
  background-image:
    linear-gradient(rgba(91,65,112,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,65,112,.018) 1px, transparent 1px);
  background-size: 100% 6px, 7px 100%;
  box-shadow: 0 14px 34px rgba(63,41,91,.14);
}

.cycle-paper-pin {
  position: absolute;
  z-index: 5;
  top: -8px;
  right: 48%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8b61d1;
  box-shadow: 0 5px 7px rgba(60,39,76,.25), inset 0 2px 2px rgba(255,255,255,.65);
}

.cycle-paper-pin.rose { background: #dc758f; }
.cycle-paper-pin.mint { background: #68ad96; }

.cycle-tape {
  position: absolute;
  z-index: 4;
  width: 84px;
  height: 24px;
  top: -11px;
  left: calc(50% - 42px);
  transform: rotate(-1deg);
  background: rgba(183,166,199,.48);
}

.cycle-dial-paper {
  min-height: 438px;
  padding: 24px 24px 76px;
  border-radius: 5px 9px 4px 7px;
  overflow: visible;
}

.cycle-dial-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 8px auto 0;
}

.cycle-dial-wrap::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from -12deg, #ef6885 0 64deg, #f5d4dc 64deg 77deg, #acd8ca 77deg 157deg, #d7c0f0 157deg 224deg, #f3d39a 224deg 294deg, #eee8f1 294deg 360deg);
  box-shadow: 0 13px 29px rgba(80,55,105,.15), inset 0 0 0 8px rgba(255,255,255,.7);
}

.cycle-dial-wrap::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 28px;
  border-radius: 50%;
  border: 1px solid #ded5e6;
  background: #fffdf9;
  box-shadow: inset 0 6px 18px rgba(87,61,110,.07);
}

.cycle-dial {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 50%;
}

.cycle-dial::before {
  content: "";
  position: absolute;
  z-index: 3;
  width: 15px;
  height: 15px;
  top: -9px;
  left: calc(50% - 7px);
  border: 4px solid #fff;
  border-radius: 50%;
  background: #6742b0;
  box-shadow: 0 4px 9px rgba(68,45,105,.26);
  transform-origin: 7px 159px;
  transform: rotate(var(--cycle-progress));
}

.cycle-dial-center {
  position: absolute;
  z-index: 4;
  inset: 62px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  text-align: center;
}

.cycle-dial-center strong,
.cycle-dial-center b,
.cycle-dial-center small {
  display: block;
}

.cycle-dial-center strong {
  color: #36235e;
  font-size: 35px;
}

.cycle-dial-center b {
  margin-top: 2px;
  font-size: 24px;
}

.cycle-dial-center small {
  max-width: 130px;
  margin-top: 14px;
  color: #897b99;
  font-size: 10px;
}

.cycle-arc {
  position: absolute;
  z-index: 4;
  color: #4f4161;
  font-size: 9px;
  font-weight: 800;
}

.cycle-arc-period { top: 13px; right: 68px; color: #fff; transform: rotate(20deg); }
.cycle-arc-follicular { top: 104px; left: -4px; transform: rotate(-78deg); }
.cycle-arc-fertile { bottom: 54px; left: 0; transform: rotate(-45deg); }
.cycle-arc-ovulation { bottom: 11px; left: 93px; transform: rotate(4deg); }
.cycle-arc-luteal { bottom: 39px; right: 3px; transform: rotate(42deg); }
.cycle-arc-pms { top: 100px; right: -2px; color: #fff; transform: rotate(78deg); }

.cycle-botanical {
  position: absolute;
  z-index: 5;
  top: -19px;
  right: -18px;
  width: 72px;
  height: 146px;
  color: #c8899d;
  font-size: 31px;
  opacity: .62;
  transform: rotate(22deg);
}

.cycle-floral-wreath {
  position: absolute;
  z-index: 1;
  inset: -36px;
  width: calc(100% + 72px);
  height: calc(100% + 72px);
  object-fit: contain;
  pointer-events: none;
}

.cycle-next-copy {
  position: absolute;
  top: 113px;
  left: 17px;
  width: 112px;
  text-align: center;
}

.cycle-next-copy small,
.cycle-next-copy strong {
  display: block;
}

.cycle-next-copy small { color: #625572; }
.cycle-next-copy strong { margin-top: 8px; color: #4a326f; font-size: 16px; line-height: 1.6; }
.cycle-next-copy p { color: #8d8199; font-size: 9px; }

.cycle-cat-warmth {
  position: absolute;
  z-index: 5;
  width: 108px;
  left: -12px;
  bottom: 46px;
  filter: drop-shadow(0 11px 13px rgba(47,30,57,.2));
}

.cycle-main-actions {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 10px;
}

.cycle-main-actions button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  font-size: 13px;
}

.cycle-calendar-paper {
  min-height: 438px;
  padding: 30px 22px 26px;
  border-radius: 5px;
}

.cycle-calendar-paper > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cycle-calendar-paper > header h3 {
  margin: 0;
  color: #392a5d;
  font-size: 19px;
}

.cycle-calendar-paper > header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #3f3156;
}

.cycle-calendar-paper > header svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

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

.cycle-weekdays {
  margin-bottom: 8px;
  color: #776c83;
  font-size: 10px;
  text-align: center;
}

.cycle-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #3e3550;
  font-size: 11px;
  font-weight: 800;
}

.cycle-day:not(:disabled):hover {
  border-color: #b9a4df;
}

.cycle-day.recorded {
  background: #f08aa1;
  color: #fff;
}

.cycle-day.predicted {
  border: 1.5px dashed #ef91a7;
  background: #fff8fa;
  color: #9b5367;
}

.cycle-day.fertile {
  background: #dff2ea;
  color: #397663;
}

.cycle-day.ovulation {
  border-color: #4ea88d;
  background: #73c5ad;
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.cycle-day.pms {
  background: #eee5fb;
  color: #6b4a9a;
}

.cycle-day.today {
  border-color: #fff;
  background: #7550c4;
  color: #fff;
  box-shadow: 0 0 0 2px #7550c4, 0 6px 12px rgba(91,55,162,.22);
}

.cycle-day.blank { pointer-events: none; }
.cycle-day:disabled { cursor: default; opacity: .48; }
.cycle-day.read-only { cursor: default; }
.cycle-day.read-only:hover { border-color: transparent; }

.cycle-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 18px;
  color: #776c83;
  font-size: 9px;
}

.cycle-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cycle-legend i {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
}

.cycle-legend i.recorded { background: #f08aa1; }
.cycle-legend i.fertile { background: #bfe5d9; }
.cycle-legend i.ovulation { background: #63b89e; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #63b89e; }
.cycle-legend i.pms { background: #dac6f2; }
.cycle-legend i.predicted { border: 1.5px dashed #ef91a7; }
.cycle-legend i.today { background: #7550c4; }

.cycle-bunny-rest {
  position: absolute;
  z-index: 4;
  width: 94px;
  left: -17px;
  bottom: -17px;
  filter: drop-shadow(0 10px 13px rgba(61,40,82,.17));
}

.cycle-daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 22px;
  margin-top: 22px;
}

.cycle-today-paper,
.cycle-insight-paper {
  min-height: 235px;
  padding: 25px;
  border-radius: 5px;
}

.cycle-reports-paper {
  min-height: 265px;
  padding: 24px;
  border-radius: 5px;
}

.cycle-section-title > div > small {
  display: block;
  margin-top: -9px;
  color: #94899e;
  font-size: 9px;
}

.cycle-dual-reports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.cycle-report-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e3d9e8;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

.cycle-report-card:nth-child(2) {
  border-color: #f0cbd6;
  background: #fff9fa;
}

.cycle-report-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cycle-report-card h4 {
  margin: 0;
  color: #493367;
  font-size: 13px;
}

.cycle-report-card header small {
  color: #9a8fa3;
  font-size: 8px;
}

.cycle-report-card header button {
  border: 0;
  background: transparent;
  color: #7850bd;
  font-size: 10px;
  font-weight: 900;
}

.cycle-report-feeling {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.cycle-report-feeling > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #eaddeb;
  border-radius: 15px;
  background: #f7f1fc;
  font-size: 25px;
  box-shadow: 0 6px 13px rgba(80,51,105,.08);
}

.cycle-report-feeling strong,
.cycle-report-feeling small {
  display: block;
}

.cycle-report-feeling strong { color: #59416e; font-size: 12px; }
.cycle-report-feeling small { margin-top: 3px; color: #9b8fa4; font-size: 9px; }

.cycle-report-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.cycle-report-facts span {
  padding: 5px 7px;
  border-radius: 7px;
  background: #f5f0f9;
  color: #75677f;
  font-size: 8px;
}

.cycle-report-card > p {
  margin: 11px 0 0;
  padding: 8px;
  border-radius: 8px;
  background: #f5f0fa;
  color: #71637c;
  font-size: 9px;
  line-height: 1.8;
}

.cycle-report-card > footer {
  margin-top: 9px;
  color: #a296aa;
  font-size: 8px;
}

.cycle-report-card .cycle-private-copy {
  min-height: 100px;
}

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

.cycle-today-paper h3,
.cycle-insight-paper h3,
.cycle-support-paper h3,
.cycle-privacy-paper h3 {
  margin: 0 0 16px;
  color: #443260;
  font-size: 19px;
}

.cycle-section-title button {
  border: 0;
  background: transparent;
  color: #7a50bd;
  font-weight: 800;
}

.cycle-mood-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.cycle-mood-row span {
  min-height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid #ded5e5;
  border-radius: 10px;
  color: #665a74;
  font-size: 12px;
  font-weight: 800;
}

.cycle-mood-row span.active {
  border-color: #7550c4;
  background: #7550c4;
  color: #fff;
}

.cycle-log-summary {
  display: grid;
  grid-template-columns: .8fr .8fr 1.4fr;
  gap: 12px;
}

.cycle-log-summary div {
  padding: 12px;
  border-top: 1px dashed #ddd4e3;
}

.cycle-log-summary small,
.cycle-log-summary strong {
  display: block;
}

.cycle-log-summary small {
  margin-bottom: 6px;
  color: #94899e;
  font-size: 9px;
}

.cycle-log-summary strong {
  color: #554365;
  font-size: 11px;
  line-height: 1.7;
}

.cycle-log-note {
  margin: 14px 0 0;
  padding: 10px 13px;
  border-radius: 8px;
  background: #f4effa;
  color: #72647f;
  font-size: 11px;
}

.cycle-insight-paper {
  background-color: #fffdf5;
  transform: rotate(-.35deg);
}

.cycle-insight-paper p {
  color: #675b70;
  line-height: 2;
}

.cycle-insight-paper > small {
  display: block;
  margin-top: 20px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #eaf4e8;
  color: #668775;
  font-size: 10px;
}

.cycle-phase-paper > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cycle-phase-paper > header small {
  color: #9a8ba5;
  font-size: 8px;
}

.cycle-phase-paper > header h3 {
  margin: 2px 0 8px;
  font-size: 16px;
}

.cycle-phase-paper > header > b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1e9fb;
  color: #7352a3;
  font-size: 8px;
  white-space: nowrap;
}

.cycle-phase-paper > p {
  margin: 0 0 14px;
  font-size: 10px;
  line-height: 1.9;
}

.cycle-phase-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.cycle-phase-track span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid #e7dfea;
  border-radius: 9px;
  background: rgba(255,255,255,.7);
  color: #776881;
  font-size: 8px;
  font-weight: 800;
}

.cycle-phase-track i {
  width: 18px;
  height: 18px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eee8f2;
  font-style: normal;
  font-size: 8px;
}

.cycle-phase-track span.active {
  border-color: #7c58c3;
  background: #f2ebff;
  color: #54377f;
  box-shadow: 0 6px 14px rgba(92,57,140,.1);
}

.cycle-phase-track span.active i {
  background: #7650bc;
  color: #fff;
}

.cycle-key-dates {
  display: grid;
  gap: 6px;
  margin: 13px 0 0;
}

.cycle-key-dates > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #e2d9e5;
}

.cycle-key-dates dt,
.cycle-key-dates dd {
  margin: 0;
  font-size: 8px;
}

.cycle-key-dates dt { color: #8d7f96; }
.cycle-key-dates dd { color: #58436d; font-weight: 900; }

.cycle-support-rail {
  display: grid;
  align-content: start;
  gap: 18px;
}

.cycle-support-paper,
.cycle-privacy-paper {
  padding: 24px 18px;
  border-radius: 5px;
}

.cycle-support-paper {
  min-height: 465px;
  padding-bottom: 104px;
  background-color: #fffdf8;
}

.cycle-support-paper > strong {
  display: block;
  margin-bottom: 15px;
  padding: 11px 9px;
  border: 1px solid #f2ccd5;
  border-radius: 9px;
  background: #fff0f3;
  color: #cf617d;
  text-align: center;
}

.cycle-support-tips {
  display: grid;
  gap: 9px;
}

.cycle-support-tips article {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  gap: 8px;
  padding: 11px 9px;
  border: 1px solid #e8dfe9;
  border-radius: 9px;
  background: rgba(255,255,255,.65);
}

.cycle-support-tips article span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #d26783;
  background: #fff0f4;
}

.cycle-support-tips article p {
  margin: 0;
  color: #64576f;
  font-size: 10px;
  line-height: 1.7;
}

.cycle-love-btn {
  width: 100%;
  min-height: 45px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: #e65f83;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(205,73,112,.2);
}

.cycle-love-btn:disabled {
  opacity: .55;
  cursor: default;
}

.cycle-support-cat {
  position: absolute;
  width: 115px;
  right: 6px;
  bottom: 2px;
  filter: drop-shadow(0 10px 13px rgba(48,31,58,.2));
}

.cycle-privacy-paper > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cycle-privacy-paper > div svg {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: #dcefe8;
  color: #3f806d;
}

.cycle-privacy-paper > div h3 { margin: 0; }
.cycle-privacy-paper p { color: #6e6379; font-size: 10px; line-height: 1.8; }
.cycle-privacy-paper button { width: 100%; min-height: 38px; border: 1px solid #82b5a7; border-radius: 8px; background: transparent; color: #347565; font-size: 11px; font-weight: 800; }
.cycle-privacy-paper > small { color: #8b8194; font-size: 9px; }

.partner-shared-paper {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.partner-shared-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7e5ec;
  color: #d36384;
}

.partner-shared-icon svg { width: 30px; height: 30px; }
.partner-shared-paper h3 { margin: 17px 0 8px; }
.partner-shared-paper p { max-width: 290px; color: #7b7088; line-height: 1.9; }
.partner-shared-paper ul { width: min(290px, 100%); margin: 12px 0 0; padding: 0; list-style: none; text-align: right; }
.partner-shared-paper li { padding: 10px 25px 10px 5px; border-bottom: 1px dashed #dfd6e3; color: #83778d; position: relative; }
.partner-shared-paper li::before { content: "×"; position: absolute; right: 3px; color: #b2a7ba; }
.partner-shared-paper li.shared::before { content: "✓"; color: #5eab93; }

.cycle-private-copy {
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.cycle-private-copy p { color: #897e93; }

.cycle-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: #84788e;
  font-size: 10px;
}

.cycle-disclaimer::before,
.cycle-disclaimer::after {
  content: "";
  width: min(180px, 14vw);
  border-top: 1px dashed #bfb2cc;
}

.cycle-empty,
.cycle-loading {
  max-width: 650px;
  margin: 80px auto;
  padding: 35px;
  text-align: center;
}

.cycle-empty.paper-surface {
  border-radius: 6px;
}

.cycle-empty-mascot {
  width: 165px;
  max-height: 170px;
  object-fit: contain;
}

.cycle-empty p {
  color: #786d84;
  line-height: 1.9;
}

.cycle-setup-modal,
.cycle-log-modal {
  width: min(680px, calc(100vw - 28px));
  max-height: min(90dvh, 780px);
}

.cycle-setup-form,
.cycle-log-form {
  gap: 16px;
}

.cycle-setup-form label > small {
  display: block;
  margin-top: 5px;
  color: #9a90a5;
  font-size: 9px;
}

.cycle-sharing-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2daea;
  border-radius: 16px;
}

.cycle-sharing-fields legend {
  padding-inline: 8px;
  color: #514067;
  font-weight: 900;
}

.cycle-sharing-fields label {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  background: #faf8fd;
}

.cycle-sharing-fields input {
  width: 19px;
  height: 19px;
  accent-color: #7952c7;
}

.cycle-sharing-fields strong,
.cycle-sharing-fields small {
  display: block;
}

.cycle-access-fields {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #e2daea;
  border-radius: 16px;
}

.cycle-access-fields legend {
  padding-inline: 8px;
  color: #514067;
  font-weight: 900;
}

.cycle-access-fields label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  align-items: center;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #faf8fd;
}

.cycle-access-fields strong,
.cycle-access-fields small { display: block; }
.cycle-access-fields strong { color: #59466d; font-size: 11px; }
.cycle-access-fields small { margin-top: 3px; color: #978ca1; font-size: 8px; }
.cycle-access-fields select { min-height: 38px; font-size: 10px; }

.cycle-history-fields {
  margin: 0;
  padding: 13px;
  border: 1px solid #dfd3e9;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf8ff, #fff9fa);
}

.cycle-history-fields legend {
  padding-inline: 7px;
  color: #58436f;
  font-weight: 900;
}

.cycle-history-fields legend small {
  margin-inline-start: 5px;
  color: #9b8ca8;
  font-size: 8px;
  font-weight: 600;
}

.cycle-history-fields > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cycle-history-fields label,
.cycle-history-fields label small { display: block; }

.cycle-history-fields label {
  color: #5f4b72;
  font-size: 10px;
  font-weight: 800;
}

.cycle-history-fields label small {
  margin-top: 4px;
  color: #a094aa;
  font-size: 8px;
  font-weight: 500;
}

.cycle-history-fields > p {
  margin: 10px 0 0;
  color: #806d90;
  font-size: 9px;
  line-height: 1.8;
}

.cycle-sharing-fields small {
  margin-top: 4px;
  color: #93899d;
  font-size: 9px;
}

.cycle-safety-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6e8;
  color: #886b47;
  font-size: 10px;
  line-height: 1.8;
}

.cycle-log-form {
  display: grid;
}

.cycle-log-form section > span {
  display: block;
  margin-bottom: 9px;
  color: #4d3d61;
  font-weight: 900;
}

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

.cycle-symptom-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cycle-choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cycle-choice-grid label {
  cursor: pointer;
}

.cycle-choice-grid b {
  min-height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #ded5e7;
  border-radius: 10px;
  background: #fff;
  color: #665878;
  font-size: 11px;
}

.cycle-choice-grid input:checked + b {
  border-color: #7952c7;
  background: #7952c7;
  color: #fff;
}

.cycle-sticker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.cycle-sticker-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cycle-sticker-grid label { cursor: pointer; }

.cycle-sticker-grid b {
  min-height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid #e2d8e9;
  border-radius: 13px;
  background: #fff;
  color: #6d5c7b;
  font-size: 9px;
}

.cycle-sticker-grid i {
  font-size: 25px;
  font-style: normal;
  filter: drop-shadow(0 4px 5px rgba(74,45,91,.12));
}

.cycle-sticker-grid input:checked + b {
  border-color: #8b63d3;
  background: #f2ebff;
  box-shadow: inset 0 0 0 1px #8b63d3, 0 6px 13px rgba(91,55,152,.1);
  color: #583b86;
}

.cycle-log-note-field {
  display: grid;
  gap: 7px;
  color: #4d3d61;
  font-weight: 900;
}

.mobile-more-view {
  display: none;
}

@media (max-width: 1280px) and (min-width: 801px) {
  body[data-app-view="cycle"] .app-shell {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .cycle-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }

  .cycle-focus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cycle-dial-wrap {
    width: 260px;
    height: 260px;
  }

  .cycle-dial::before { transform-origin: 7px 139px; }
  .cycle-dial-center { inset: 54px; }
  .cycle-next-copy { display: none; }
}

@media (max-width: 800px) {
  body[data-app-view="cycle"] {
    padding-bottom: 82px;
    background: #f2eef8;
  }

  body[data-app-view="cycle"] .app-shell {
    display: block;
  }

  body[data-app-view="cycle"] .mobile-fab,
  body[data-app-view="more"] .mobile-fab {
    display: none;
  }

  .cycle-page {
    padding: 20px 15px 48px;
  }

  .cycle-header {
    display: grid;
    gap: 15px;
    text-align: center;
  }

  .cycle-header h2 {
    font-size: 30px;
  }

  .cycle-header p {
    font-size: 12px;
  }

  .cycle-header-tools {
    width: 100%;
  }

  .cycle-role-badge {
    width: 100%;
    min-width: 0;
    text-align: right;
  }

  .cycle-mode-switch {
    width: 100%;
  }

  .cycle-privacy-quick {
    position: absolute;
    top: 18px;
    left: 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .cycle-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .cycle-focus-grid,
  .cycle-daily-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cycle-dial-paper {
    min-height: 455px;
    padding: 24px 14px 126px;
  }

  .cycle-dial-wrap {
    width: 270px;
    height: 270px;
  }

  .cycle-dial::before {
    transform-origin: 7px 144px;
  }

  .cycle-dial-center {
    inset: 54px;
  }

  .cycle-dial-center strong { font-size: 31px; }
  .cycle-dial-center b { font-size: 21px; }

  .cycle-next-copy {
    top: 300px;
    right: 18px;
    left: auto;
    width: 155px;
    text-align: right;
  }

  .cycle-next-copy strong { font-size: 15px; }

  .cycle-cat-warmth {
    width: 91px;
    left: 7px;
    bottom: 64px;
  }

  .cycle-main-actions {
    right: 14px;
    bottom: 13px;
    left: 14px;
    grid-template-columns: 1fr;
  }

  .cycle-main-actions button {
    min-height: 45px;
  }

  .cycle-main-actions .ghost-btn {
    display: none;
  }

  .cycle-calendar-paper {
    min-height: 410px;
    padding: 29px 14px 25px;
  }

  .cycle-weekdays,
  .cycle-month-grid {
    gap: 4px;
  }

  .cycle-day {
    font-size: 10px;
  }

  .cycle-bunny-rest {
    width: 77px;
    left: -4px;
    bottom: -10px;
  }

  .cycle-today-paper,
  .cycle-reports-paper,
  .cycle-insight-paper {
    min-height: 0;
    padding: 22px 16px;
  }

  .cycle-dual-reports {
    grid-template-columns: 1fr;
  }

  .cycle-report-card {
    padding: 13px;
  }

  .cycle-mood-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .cycle-mood-row span {
    min-height: 42px;
    font-size: 10px;
  }

  .cycle-log-summary {
    grid-template-columns: 1fr 1fr;
  }

  .cycle-log-summary div:last-child {
    grid-column: 1 / -1;
  }

  .cycle-support-rail {
    gap: 20px;
  }

  .cycle-support-paper {
    min-height: 390px;
    padding-bottom: 88px;
  }

  .cycle-support-tips {
    grid-template-columns: 1fr;
  }

  .cycle-support-cat {
    width: 95px;
  }

  .cycle-disclaimer {
    align-items: flex-start;
    padding-inline: 10px;
    line-height: 1.8;
    text-align: center;
  }

  .cycle-disclaimer::before,
  .cycle-disclaimer::after {
    display: none;
  }

  .cycle-empty,
  .cycle-loading {
    margin: 35px auto;
    padding: 24px 16px;
  }

  .cycle-setup-modal,
  .cycle-log-modal {
    width: calc(100vw - 20px);
    max-height: 88dvh;
    padding: 22px 16px;
  }

  .cycle-sharing-fields,
  .cycle-choice-grid,
  .cycle-symptom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cycle-history-fields > div {
    grid-template-columns: 1fr;
  }

  .cycle-access-fields label {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cycle-access-fields select {
    width: 100%;
  }

  .cycle-sticker-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-more-view.active {
    display: block;
    padding: 36px 18px 120px;
  }

  .mobile-more-head h2 {
    margin: 0;
    color: #3e2d67;
    font-size: 30px;
  }

  .mobile-more-head p {
    color: #81778f;
  }

  .mobile-more-list {
    display: grid;
    gap: 13px;
    margin-top: 28px;
  }

  .mobile-more-list button {
    min-height: 78px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 15px 18px;
    border: 1px solid #e3dbea;
    border-radius: 18px;
    background: #fff;
    color: #4e3c68;
    text-align: right;
    box-shadow: var(--shadow-soft);
  }

  .mobile-more-list span,
  .mobile-more-list small {
    display: block;
  }

  .mobile-more-list small {
    margin-top: 6px;
    color: #91879e;
    font-size: 10px;
  }

  .mobile-more-list b {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 24px;
  }

  .mobile-tabs {
    grid-template-columns: repeat(5, 1fr);
  }

  .mobile-tabs button {
    font-size: 10px;
  }
}
