:root {
  --cream: #fff9f5;
  --paper: #fffdfc;
  --paper-warm: #fdf8f5;
  --pink: #ef7f95;
  --pink-deep: #d95d72;
  --pink-soft: #ffeaf0;
  --rose: #f6c6cc;
  --blue: #74b4c9;
  --blue-soft: #e8f3f8;
  --mint: #66aa89;
  --mint-soft: #e8f5ee;
  --amber: #b9832e;
  --amber-soft: #fff4da;
  --ink: #403537;
  --ink-soft: #756769;
  --ink-light: #a39393;
  --line: rgba(122, 92, 94, 0.09);
  --shadow: 0 18px 50px rgba(155, 102, 109, 0.11);
  --shadow-soft: 0 8px 24px rgba(155, 102, 109, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f5ece8;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 213, 222, 0.75), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(232, 243, 248, 0.9), transparent 30%),
    radial-gradient(circle at 40% 96%, rgba(234, 246, 239, 0.9), transparent 30%),
    #f5ece8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
}

.ambient__blob--one {
  top: -120px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: rgba(255, 203, 214, 0.45);
}

.ambient__blob--two {
  top: 18%;
  right: -150px;
  width: 380px;
  height: 380px;
  background: rgba(199, 230, 240, 0.45);
}

.ambient__blob--three {
  bottom: -170px;
  left: 25%;
  width: 430px;
  height: 430px;
  background: rgba(207, 234, 219, 0.5);
}

.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: clip;
  background:
    radial-gradient(circle at 92% 1%, rgba(255, 226, 231, 0.68), transparent 30%),
    var(--cream);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 22px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #f4a2b1, #e56c85);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(229, 108, 133, 0.2);
}

.brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__copy strong {
  overflow: hidden;
  color: #4a3d3f;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: 0.3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__copy small {
  overflow: hidden;
  margin-top: 1px;
  color: #ad9c9c;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.privacy-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(102, 170, 137, 0.15);
  border-radius: 999px;
  color: #5f9b7f;
  background: rgba(232, 245, 238, 0.8);
  font-size: 10px;
  font-weight: 600;
}

.privacy-chip i {
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #73b597;
  box-shadow: 0 0 0 3px rgba(115, 181, 151, 0.12);
}

.main {
  flex: 1;
  padding: 4px 20px 30px;
}

.tabbar {
  position: sticky;
  z-index: 20;
  bottom: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 9px 12px calc(8px + var(--safe-bottom));
  border-top: 1px solid rgba(122, 92, 94, 0.07);
  background: rgba(255, 253, 252, 0.93);
  backdrop-filter: blur(18px);
}

.tab {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  color: #b7a7a5;
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.tab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab::after {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  content: "";
}

.tab.is-active {
  color: var(--pink-deep);
}

.tab.is-active::after {
  background: var(--pink);
}

.app-shell.is-checkin .tabbar {
  display: none;
}

.app-shell.is-checkin .main {
  padding-bottom: 26px;
}

.boot-loading,
.loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
  color: #a39393;
  font-size: 13px;
  text-align: center;
}

.loading-panel--small {
  min-height: 150px;
}

.loading-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.loading-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e991a2;
  animation: dot-breathe 1.2s ease-in-out infinite;
}

.loading-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.loading-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes dot-breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #f4eae6;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.skeleton-cover {
  height: 290px;
  border-radius: 28px;
}

.skeleton-line {
  height: 14px;
  margin-top: 12px;
}

.skeleton-line--short {
  width: 50%;
}

.skeleton-card {
  height: 112px;
  margin-top: 18px;
  border-radius: 24px;
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.error-state__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  border-radius: 20px;
  color: #d95d72;
  background: var(--pink-soft);
  font-size: 25px;
}

.error-state h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.error-state p {
  max-width: 340px;
  margin: 0 0 19px;
  color: var(--ink-light);
  font-size: 12px;
  line-height: 1.7;
}

.eyebrow {
  color: var(--pink-deep);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.fade-up {
  animation: fade-up 0.36s ease both;
}

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

.cover {
  position: relative;
  height: 292px;
  overflow: hidden;
  border-radius: 30px;
  background: #f3d3d0;
  box-shadow: var(--shadow);
  isolation: isolate;
}

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

.cover__fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.8), transparent 25%),
    linear-gradient(135deg, #f8d8d2 0%, #f5c5c7 40%, #eac7d4 70%, #d9eae4 100%);
}

.cover__fallback::before,
.cover__fallback::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.23);
  content: "";
}

.cover__fallback::before {
  top: -65px;
  right: -30px;
  width: 230px;
  height: 230px;
}

.cover__fallback::after {
  bottom: -100px;
  left: -70px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.14);
}

.cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 28, 31, 0.2) 0%,
    rgba(44, 28, 31, 0.02) 34%,
    rgba(44, 28, 31, 0.44) 70%,
    rgba(44, 28, 31, 0.76) 100%
  );
}

.cover__top {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cover__eyebrow {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(48, 31, 34, 0.16);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.cover__edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #fff;
  background: rgba(48, 31, 34, 0.25);
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.cover__edit span {
  font-size: 15px;
  line-height: 1;
}

.cover__placeholder {
  position: absolute;
  top: 60px;
  right: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(93, 62, 66, 0.74);
  text-align: center;
}

.cover__heart {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 9px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: rgba(142, 77, 89, 0.7);
  background: rgba(255, 255, 255, 0.24);
  font-size: 30px;
}

.cover__placeholder strong {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.cover__placeholder small {
  margin-top: 2px;
  color: rgba(93, 62, 66, 0.55);
  font-size: 10px;
}

.cover__content {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.status-pill i {
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #ffd1da;
}

.status-pill.is-done i {
  background: #b9e7cc;
  box-shadow: 0 0 0 3px rgba(185, 231, 204, 0.16);
}

.status-pill.is-half i {
  background: #ffe1a4;
}

.cover__title {
  overflow: hidden;
  margin-top: 10px;
  font-size: 26px;
  font-weight: 730;
  letter-spacing: 0.3px;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(47, 26, 30, 0.18);
  white-space: nowrap;
}

.cover__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.cover__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.bind-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 15px 16px;
  border: 1px solid rgba(239, 127, 149, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff1f4, #fffdfc);
}

.bind-banner__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #d95d72;
  background: #ffe3e9;
  font-size: 19px;
}

.bind-banner__body {
  flex: 1;
  min-width: 0;
}

.bind-banner__body strong {
  display: block;
  color: #64484e;
  font-size: 12px;
}

.bind-banner__body p {
  margin: 2px 0 0;
  color: #9a8587;
  font-size: 10px;
  line-height: 1.5;
}

.bind-banner__button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  color: #d95d72;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(217, 93, 114, 0.08);
}

.invite-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px dashed rgba(239, 127, 149, 0.4);
  border-radius: 20px;
  background: rgba(255, 250, 249, 0.85);
}

.invite-strip__body {
  flex: 1;
  min-width: 0;
}

.invite-strip__label {
  color: #a39393;
  font-size: 9px;
}

.invite-strip__code {
  margin: 1px 0;
  color: var(--pink-deep);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1.3;
}

.invite-strip__desc {
  color: #b2a2a0;
  font-size: 9px;
}

.copy-btn {
  flex: 0 0 auto;
  height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(239, 127, 149, 0.2);
  border-radius: 10px;
  color: #d95d72;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.pair-card {
  display: flex;
  align-items: center;
  margin-top: 15px;
  padding: 20px 15px 18px;
  border: 1px solid rgba(122, 92, 94, 0.06);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.pair-member {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #d95d72;
  background: #ffe5eb;
  font-size: 16px;
  font-weight: 720;
  box-shadow: 0 5px 14px rgba(155, 102, 109, 0.13);
}

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

.avatar--partner {
  color: #4a8297;
  background: #e8f3f8;
}

.avatar--large {
  width: 66px;
  height: 66px;
  border-width: 3px;
  font-size: 22px;
}

.avatar--small {
  width: 38px;
  height: 38px;
  border-width: 1.5px;
  font-size: 13px;
}

.avatar--waiting {
  border-style: dashed;
  border-color: rgba(74, 130, 151, 0.3);
  color: #84aebd;
  background: #f3f9fb;
  box-shadow: none;
}

.pair-member__name-line {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin-top: 8px;
}

.pair-member__name {
  overflow: hidden;
  max-width: 105px;
  color: #4a3d3f;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pair-member__tag {
  flex: 0 0 auto;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #d95d72;
  background: #ffedf1;
  font-size: 8px;
  font-weight: 700;
}

.pair-member__tag--partner {
  color: #4a8297;
  background: #e8f3f8;
}

.pair-member__state {
  display: flex;
  align-items: center;
  margin-top: 2px;
  color: #a39393;
  font-size: 9px;
}

.pair-member__state i {
  width: 4px;
  height: 4px;
  margin-right: 4px;
  border-radius: 50%;
  background: #d8c8c5;
}

.pair-member__state.is-done {
  color: #4d9b7a;
}

.pair-member__state.is-done i {
  background: #6fbd99;
  box-shadow: 0 0 0 3px rgba(111, 189, 153, 0.12);
}

.pair-heart {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  color: #ef9cac;
  font-size: 19px;
}

.primary-cta {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 76px;
  margin-top: 15px;
  padding: 13px 17px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(120deg, #f195a7 0%, #ea7088 58%, #dc5d79 100%);
  text-align: left;
  box-shadow: 0 15px 30px rgba(222, 92, 120, 0.23);
}

.primary-cta::after {
  position: absolute;
  top: -38px;
  right: -10px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  content: "";
}

.primary-cta:active {
  transform: translateY(1px);
}

.primary-cta__plus {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 13px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.primary-cta__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.primary-cta__text strong {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: 0.5px;
}

.primary-cta__text small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 9px;
}

.primary-cta__arrow {
  position: relative;
  z-index: 1;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 25px;
  font-weight: 300;
}

.overview-card {
  margin-top: 15px;
  padding: 18px 17px 16px;
  border: 1px solid rgba(122, 92, 94, 0.06);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.overview-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
}

.overview-head p {
  margin: 1px 0 0;
  color: #b2a2a0;
  font-size: 9px;
  letter-spacing: 0.4px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 0;
  color: #d95d72;
  background: transparent;
  font-size: 9px;
  font-weight: 600;
}

.link-button span {
  font-size: 15px;
  line-height: 1;
}

.overview-numbers {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.overview-number {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.overview-number strong {
  font-size: 23px;
  font-weight: 730;
  line-height: 1.15;
}

.overview-number span {
  margin-top: 1px;
  color: #a39393;
  font-size: 8px;
}

.overview-number + .overview-number {
  border-left: 1px solid var(--line);
}

.mini-compare {
  margin-top: 13px;
}

.mini-compare__row {
  display: flex;
  align-items: center;
  min-height: 20px;
}

.mini-compare__row + .mini-compare__row {
  margin-top: 5px;
}

.mini-compare__name {
  flex: 0 0 28px;
  color: #8d7c7e;
  font-size: 9px;
}

.mini-compare__track,
.compare-track {
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #f7efed;
}

.mini-compare__fill,
.compare-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.fill-me {
  background: linear-gradient(90deg, #f5a3b2, #ed7e94);
}

.fill-partner {
  background: linear-gradient(90deg, #b8dce7, #83bdce);
}

.mini-compare__count {
  flex: 0 0 26px;
  color: #6d5c5e;
  font-size: 9px;
  text-align: right;
}

.section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 3px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 730;
}

.section-title::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(239, 127, 149, 0.1);
  content: "";
}

.section-sub {
  margin-top: 2px;
  color: #a39393;
  font-size: 9px;
}

.record-list {
  overflow: hidden;
  padding: 0 16px;
  border: 1px solid rgba(122, 92, 94, 0.06);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.record-item {
  display: flex;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(122, 92, 94, 0.07);
}

.record-item:last-child {
  border-bottom: 0;
}

.record-item__body {
  flex: 1;
  min-width: 0;
}

.record-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.record-item__owner {
  display: flex;
  align-items: center;
  min-width: 0;
}

.record-item__name {
  overflow: hidden;
  color: #4a3d3f;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-item__tag {
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 5px;
  color: #d95d72;
  background: #ffedf1;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.7;
}

.record-item__tag--partner {
  color: #4a8297;
  background: #e8f3f8;
}

.record-item__time {
  flex: 0 0 auto;
  color: #b2a2a0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.record-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.tag--smooth {
  color: #3d8f6c;
  background: var(--mint-soft);
}

.tag--normal {
  color: var(--amber);
  background: var(--amber-soft);
}

.tag--hard {
  color: #cf5a70;
  background: #ffeaee;
}

.record-item__duration,
.record-item__bristol {
  color: #7f6e70;
  font-size: 9px;
}

.record-item__bristol {
  color: #9a8587;
}

.record-item__note {
  display: block;
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #806f71;
  background: #fdf8f5;
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 20px;
  border: 1px solid rgba(122, 92, 94, 0.06);
  border-radius: 22px;
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 20px;
  color: #e47e93;
  background: linear-gradient(145deg, #fff0f3, #fff9f5);
  font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(242, 124, 148, 0.1);
}

.empty-state h3 {
  margin: 0;
  color: #58494b;
  font-size: 14px;
}

.empty-state p {
  max-width: 280px;
  margin: 5px 0 0;
  color: #a39393;
  font-size: 10px;
  line-height: 1.65;
}

.empty-state button {
  margin-top: 15px;
}

.footnote {
  margin: 23px 8px 0;
  color: #b6a7a4;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(239, 127, 149, 0.25);
  border-radius: 11px;
  color: #d95d72;
  background: #fff8f9;
  font-size: 11px;
  font-weight: 650;
}

.ghost-button--plain {
  border-color: var(--line);
  color: var(--ink-soft);
  background: var(--paper);
}

.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  padding: 0 13px;
  border-radius: 10px;
  color: #d95d72;
  background: #ffedf1;
  font-size: 10px;
  font-weight: 650;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(207, 90, 112, 0.22);
  border-radius: 11px;
  color: #cf5a70;
  background: #fff7f8;
  font-size: 11px;
  font-weight: 650;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(120deg, #f28ba0, #e66b84);
  font-size: 14px;
  font-weight: 720;
  box-shadow: 0 12px 24px rgba(230, 107, 132, 0.22);
}

.primary-button:disabled {
  cursor: default;
  opacity: 0.6;
}

/* Sub pages */
.subpage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #756769;
  background: rgba(255, 253, 252, 0.75);
  font-size: 10px;
  font-weight: 600;
}

.back-button span {
  font-size: 18px;
  line-height: 1;
}

.subpage-head__label {
  color: #b2a2a0;
  font-size: 9px;
  letter-spacing: 0.6px;
}

.checkin-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 21px 22px;
  border-radius: 27px;
  background: linear-gradient(132deg, #f9d8d3 0%, #f7c8ca 46%, #eac9d7 100%);
  box-shadow: 0 16px 36px rgba(181, 122, 128, 0.13);
}

.checkin-hero::after {
  position: absolute;
  top: -80px;
  right: -35px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.checkin-hero .eyebrow {
  position: relative;
  color: rgba(123, 65, 76, 0.68);
}

.checkin-hero h1 {
  position: relative;
  margin: 7px 0 0;
  color: #5c3e43;
  font-size: 25px;
  font-weight: 740;
  letter-spacing: 0.3px;
}

.checkin-hero p {
  position: relative;
  margin: 4px 0 0;
  color: rgba(92, 62, 67, 0.66);
  font-size: 11px;
}

.checkin-hero__meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: rgba(92, 62, 67, 0.56);
  font-size: 9px;
}

.checkin-hero__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.form-card {
  margin-top: 15px;
  padding: 3px 18px;
  border: 1px solid rgba(122, 92, 94, 0.06);
  border-radius: 25px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.form-section {
  padding: 17px 0;
}

.form-section + .form-section {
  border-top: 1px solid rgba(122, 92, 94, 0.07);
}

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

.form-label {
  color: #4a3d3f;
  font-size: 13px;
  font-weight: 700;
}

.form-hint {
  color: #b2a2a0;
  font-size: 9px;
}

.form-label-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.text-button {
  padding: 0;
  color: #d95d72;
  background: transparent;
  font-size: 9px;
  font-weight: 650;
}

.field-row {
  display: flex;
  gap: 9px;
}

.field {
  flex: 1;
  min-width: 0;
}

.field-label {
  display: block;
  margin-bottom: 4px;
  color: #a39393;
  font-size: 9px;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(122, 92, 94, 0.1);
  border-radius: 13px;
  background: var(--paper-warm);
}

.input-shell:focus-within {
  border-color: rgba(239, 127, 149, 0.4);
  box-shadow: 0 0 0 3px rgba(239, 127, 149, 0.08);
}

.input-shell input,
.input-shell select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: #4a3d3f;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.input-shell input[type="number"] {
  font-size: 20px;
  font-weight: 730;
  text-align: center;
}

.input-shell input[type="date"],
.input-shell input[type="time"] {
  color-scheme: light;
}

.input-suffix {
  flex: 0 0 auto;
  color: #9a8587;
  font-size: 9px;
}

.duration-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.duration-row .input-shell {
  flex: 0 0 105px;
}

.quick-chips {
  display: flex;
  flex: 1;
  gap: 6px;
  justify-content: flex-end;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #8d7c7e;
  background: var(--paper);
  font-size: 10px;
}

.quick-chip.is-active {
  border-color: rgba(239, 127, 149, 0.3);
  color: #d95d72;
  background: #fff0f3;
  font-weight: 700;
}

.feeling-grid {
  display: flex;
  gap: 8px;
}

.feeling-card {
  position: relative;
  flex: 1;
  padding: 12px 8px 11px;
  border: 1px solid rgba(122, 92, 94, 0.08);
  border-radius: 14px;
  background: var(--paper);
  text-align: center;
  transition: 0.18s ease;
}

.feeling-card__dot {
  width: 7px;
  height: 7px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #e6d8d5;
}

.feeling-card--smooth .feeling-card__dot {
  background: #a9d9c2;
}

.feeling-card--normal .feeling-card__dot {
  background: #ecd49b;
}

.feeling-card--hard .feeling-card__dot {
  background: #f0b3bf;
}

.feeling-card strong {
  display: block;
  color: #5b4a4c;
  font-size: 12px;
  font-weight: 700;
}

.feeling-card small {
  display: block;
  margin-top: 1px;
  color: #b2a2a0;
  font-size: 8px;
}

.feeling-card.is-active {
  border-color: rgba(239, 127, 149, 0.42);
  background: #fff7f9;
  box-shadow: 0 6px 16px rgba(242, 124, 148, 0.08);
}

.feeling-card.is-active strong {
  color: #d95d72;
}

.feeling-card--smooth.is-active {
  border-color: rgba(88, 163, 128, 0.4);
  background: #f4fbf7;
}

.feeling-card--smooth.is-active strong {
  color: #3d8f6c;
}

.feeling-card--normal.is-active {
  border-color: rgba(196, 148, 55, 0.35);
  background: #fffbf1;
}

.feeling-card--normal.is-active strong {
  color: #b9832e;
}

.bristol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.bristol-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(122, 92, 94, 0.08);
  border-radius: 11px;
  background: var(--paper);
  text-align: left;
}

.bristol-item__text strong {
  display: block;
  color: #5b4a4c;
  font-size: 10px;
  font-weight: 650;
}

.bristol-item__text small {
  display: block;
  color: #a39393;
  font-size: 8px;
}

.bristol-item__check {
  display: none;
  color: #d95d72;
  font-size: 11px;
  font-weight: 700;
}

.bristol-item.is-active {
  border-color: rgba(239, 127, 149, 0.42);
  background: #fff7f9;
}

.bristol-item.is-active .bristol-item__check {
  display: block;
}

.bristol-item.is-active strong {
  color: #d95d72;
}

.field-tip {
  margin-top: 7px;
  color: #b6a7a4;
  font-size: 8px;
  line-height: 1.5;
}

.note-shell {
  position: relative;
}

.note-input {
  width: 100%;
  min-height: 92px;
  padding: 12px 13px 24px;
  border: 1px solid rgba(122, 92, 94, 0.1);
  border-radius: 13px;
  outline: none;
  color: #4a3d3f;
  background: var(--paper-warm);
  font-size: 12px;
  line-height: 1.65;
  resize: none;
}

.note-input:focus {
  border-color: rgba(239, 127, 149, 0.4);
  box-shadow: 0 0 0 3px rgba(239, 127, 149, 0.08);
}

.note-count {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: #b8a8a5;
  font-size: 8px;
}

.submit-wrap {
  margin-top: 17px;
}

.submit-tip {
  margin-top: 10px;
  color: #b6a7a4;
  font-size: 9px;
  text-align: center;
}

/* History */
.month-card {
  position: relative;
  overflow: hidden;
  padding: 17px 16px 14px;
  border: 1px solid rgba(122, 92, 94, 0.06);
  border-radius: 24px;
  background: linear-gradient(145deg, #fffdfc 0%, #fff8f6 54%, #fff2f4 100%);
  box-shadow: var(--shadow-soft);
}

.month-card::after {
  position: absolute;
  top: -50px;
  right: -25px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 211, 220, 0.3);
  content: "";
}

.month-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.month-arrow {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #756769;
  background: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
}

.month-arrow:disabled {
  cursor: default;
  opacity: 0.26;
}

.month-nav__center {
  flex: 1;
  text-align: center;
}

.month-nav__center strong {
  display: block;
  font-size: 17px;
  font-weight: 730;
}

.month-nav__center small {
  color: #b2a2a0;
  font-size: 9px;
}

.month-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-top: 13px;
  padding: 11px 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.month-stat {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.month-stat strong {
  font-size: 19px;
  line-height: 1.15;
}

.month-stat--me strong {
  color: #d95d72;
}

.month-stat--partner strong {
  color: #4a8297;
}

.month-stat span {
  color: #a39393;
  font-size: 8px;
}

.month-stat + .month-stat {
  border-left: 1px solid var(--line);
}

.month-back {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px auto 0;
  color: #d95d72;
  background: transparent;
  font-size: 9px;
}

.day-list {
  margin-top: 14px;
}

.day-card {
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(122, 92, 94, 0.06);
  border-radius: 21px;
  background: var(--paper);
  box-shadow: 0 5px 17px rgba(155, 102, 109, 0.055);
}

.day-head {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 15px;
  text-align: left;
  background: transparent;
}

.day-date {
  display: flex;
  flex: 0 0 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 54px;
  border-radius: 14px;
  background: #fdf5f3;
}

.day-date.is-today {
  color: #fff;
  background: linear-gradient(145deg, #f8a2b2, #ed7f95);
  box-shadow: 0 7px 15px rgba(237, 127, 149, 0.18);
}

.day-date strong {
  color: #6d5c5e;
  font-size: 21px;
  font-weight: 720;
  line-height: 1;
}

.day-date.is-today strong {
  color: #fff;
}

.day-date span {
  margin-top: 2px;
  color: #a39393;
  font-size: 8px;
}

.day-date.is-today span {
  color: rgba(255, 255, 255, 0.82);
}

.day-main {
  flex: 1;
  min-width: 0;
  margin-left: 11px;
}

.day-title-line {
  display: flex;
  align-items: center;
  gap: 5px;
}

.day-title-line strong {
  overflow: hidden;
  max-width: 190px;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-today-tag {
  padding: 0 6px;
  border-radius: 5px;
  color: #d95d72;
  background: #ffedf1;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.6;
}

.day-owners {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.owner-dot {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 8px;
}

.owner-dot--me {
  color: #d95d72;
  background: #ffedf1;
}

.owner-dot--partner {
  color: #4a8297;
  background: #e8f3f8;
}

.owner-dot b {
  margin-left: 3px;
  font-weight: 700;
}

.day-brief {
  overflow: hidden;
  margin-top: 3px;
  color: #b2a2a0;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-tail {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.day-tail span {
  color: #a39393;
  font-size: 8px;
}

.day-arrow {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #b8a8a5;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.day-arrow.is-open {
  transform: rotate(180deg);
}

.day-body {
  padding: 2px 15px 12px;
  border-top: 1px solid var(--line);
  animation: body-in 0.22s ease both;
}

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

.detail-record {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(122, 92, 94, 0.06);
}

.detail-record:last-of-type {
  border-bottom: 0;
}

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

.detail-record__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-record__owner {
  display: flex;
  align-items: center;
  min-width: 0;
}

.detail-record__owner strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-record__owner span {
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 4px;
  color: #d95d72;
  background: #ffedf1;
  font-size: 7px;
  font-weight: 700;
}

.detail-record__owner span.is-partner {
  color: #4a8297;
  background: #e8f3f8;
}

.detail-record__time {
  color: #b2a2a0;
  font-size: 9px;
}

.detail-record__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 5px;
  color: #7f6e70;
  font-size: 8px;
}

.detail-record__note {
  display: block;
  margin-top: 5px;
  padding: 6px 8px;
  border-radius: 7px;
  color: #806f71;
  background: #fdf8f5;
  font-size: 9px;
  line-height: 1.55;
}

.detail-record__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}

.delete-link {
  padding: 2px 8px;
  border-radius: 6px;
  color: #cf5a70;
  background: #fff5f6;
  font-size: 8px;
}

.own-tip {
  padding-top: 8px;
  color: #b6a7a4;
  font-size: 8px;
  text-align: center;
}

/* Stats */
.stats-hero {
  position: relative;
  overflow: hidden;
  padding: 23px 20px 18px;
  border-radius: 27px;
  color: #fff;
  background: linear-gradient(135deg, #4a3539 0%, #6d474f 52%, #8b5961 100%);
  box-shadow: 0 18px 36px rgba(78, 52, 57, 0.18);
}

.stats-hero::after {
  position: absolute;
  right: -35px;
  bottom: -95px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 190, 202, 0.08);
  content: "";
}

.stats-hero .eyebrow {
  position: relative;
  color: rgba(255, 212, 220, 0.7);
}

.stats-hero__label {
  position: relative;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.stats-hero__number {
  position: relative;
  display: flex;
  align-items: baseline;
  margin-top: 1px;
}

.stats-hero__number strong {
  font-size: 58px;
  font-weight: 730;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.stats-hero__number span {
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.stats-hero p {
  position: relative;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 9px;
}

.stats-hero__chips {
  position: relative;
  display: flex;
  gap: 7px;
  margin-top: 15px;
}

.stats-hero__chip {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.67);
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
}

.stats-hero__chip b {
  color: #fff;
  font-weight: 600;
}

.pending-note {
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 127, 149, 0.14);
  border-radius: 14px;
  color: #9a8587;
  background: #fff4f6;
  font-size: 9px;
  line-height: 1.55;
}

.stats-card {
  margin-top: 14px;
  padding: 17px;
  border: 1px solid rgba(122, 92, 94, 0.06);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.stats-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stats-card__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
}

.stats-card__head p {
  margin: 1px 0 0;
  color: #b2a2a0;
  font-size: 9px;
}

.stats-card__total {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stats-card__total strong {
  color: #d95d72;
  font-size: 23px;
  line-height: 1;
}

.stats-card__total span {
  color: #a39393;
  font-size: 8px;
}

.compare-row + .compare-row {
  margin-top: 12px;
}

.compare-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.compare-person {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #756769;
  font-size: 10px;
}

.compare-person i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.compare-person--me i {
  background: #ed7e94;
}

.compare-person--partner i {
  background: #83bdce;
}

.compare-row__count {
  color: #7f6e70;
  font-size: 9px;
  font-weight: 650;
}

.compare-track {
  height: 9px;
}

.compare-empty {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: #b2a2a0;
  font-size: 8px;
  text-align: center;
}

.metric-tiles {
  display: flex;
  gap: 8px;
}

.metric-tile {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 13px 6px;
  border-radius: 12px;
  background: var(--paper-warm);
}

.metric-tile--overall {
  background: #f2f8fa;
}

.metric-tile strong {
  color: #d95d72;
  font-size: 22px;
  line-height: 1.2;
}

.metric-tile--partner strong {
  color: #4a8297;
}

.metric-tile--overall strong {
  color: #4d9b7a;
}

.metric-tile span {
  color: #a39393;
  font-size: 8px;
}

.smooth-main {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.smooth-main__number {
  color: #d95d72;
  font-size: 40px;
  font-weight: 730;
  line-height: 1;
}

.smooth-main__number small {
  margin-left: 1px;
  font-size: 14px;
}

.smooth-main__text {
  display: flex;
  flex-direction: column;
}

.smooth-main__text strong {
  font-size: 11px;
}

.smooth-main__text span {
  color: #a39393;
  font-size: 8px;
}

.smooth-row {
  margin-top: 11px;
}

.smooth-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #756769;
  font-size: 9px;
}

.stats-note {
  margin-top: 15px;
  padding: 14px 15px;
  border: 1px dashed rgba(122, 92, 94, 0.12);
  border-radius: 16px;
  color: #a39393;
  background: rgba(255, 253, 252, 0.55);
  font-size: 9px;
  line-height: 1.7;
}

.stats-note strong {
  display: block;
  margin-bottom: 3px;
  color: #7f6e70;
  font-size: 10px;
}

/* Settings */
.settings-intro {
  padding: 4px 3px 16px;
}

.settings-intro h1 {
  margin: 5px 0 0;
  font-size: 23px;
  font-weight: 730;
  letter-spacing: 0.2px;
}

.settings-intro p {
  margin: 3px 0 0;
  color: #a39393;
  font-size: 10px;
}

.settings-card {
  margin-bottom: 13px;
  padding: 17px;
  border: 1px solid rgba(122, 92, 94, 0.06);
  border-radius: 23px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.settings-card.is-highlighted {
  border-color: rgba(239, 127, 149, 0.5);
  box-shadow: 0 0 0 5px rgba(239, 127, 149, 0.09), var(--shadow-soft);
  animation: highlight-pulse 1.2s ease-in-out 2;
}

@keyframes highlight-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.settings-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-card__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
}

.settings-card__head p {
  margin: 1px 0 0;
  color: #b2a2a0;
  font-size: 9px;
}

.mini-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #a39393;
  background: #f4eeeb;
  font-size: 8px;
  font-weight: 650;
}

.mini-status--pending {
  color: var(--amber);
  background: var(--amber-soft);
}

.mini-status--paired {
  color: #3d8f6c;
  background: var(--mint-soft);
}

.profile-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.profile-avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 50%;
  background: transparent;
}

.profile-avatar .avatar {
  width: 68px;
  height: 68px;
  border-width: 3px;
  font-size: 22px;
}

.profile-avatar__badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.profile-fields {
  flex: 1;
  min-width: 0;
}

.nickname-shell {
  position: relative;
}

.nickname-shell input {
  padding-right: 42px;
}

.nickname-count {
  position: absolute;
  right: 12px;
  color: #b8a8a5;
  font-size: 8px;
}

.profile-save {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  margin-top: 7px;
  border-radius: 10px;
  color: #d95d72;
  background: #ffedf1;
  font-size: 10px;
  font-weight: 650;
}

.settings-hint {
  margin-top: 9px;
  color: #b2a2a0;
  font-size: 8px;
}

.settings-hint button {
  padding: 0;
  color: #d95d72;
  background: transparent;
  font-size: inherit;
}

.cover-setting__preview {
  position: relative;
  display: block;
  width: 100%;
  height: 142px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7d9d5, #eac8d4);
}

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

.cover-setting__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(93, 62, 66, 0.62);
  font-size: 10px;
}

.cover-setting__empty span {
  color: rgba(155, 92, 104, 0.7);
  font-size: 28px;
  line-height: 1;
}

.cover-setting__view {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(49, 31, 35, 0.35);
  font-size: 8px;
}

.cover-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cover-actions p {
  flex: 1;
  margin: 0;
  color: #a39393;
  font-size: 8px;
  line-height: 1.5;
}

.cover-actions button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  color: #d95d72;
  background: #ffedf1;
  font-size: 9px;
  font-weight: 650;
}

.photo-notice {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #a39393;
  background: var(--paper-warm);
  font-size: 8px;
  line-height: 1.55;
}

.bound-panel {
  padding: 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fbf7, #fdf8f5);
}

.bound-person {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bound-person__info {
  flex: 1;
  min-width: 0;
}

.bound-person__info strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bound-person__info span {
  color: #a39393;
  font-size: 8px;
}

.bound-person__heart {
  color: #ef9cac;
  font-size: 18px;
}

.bound-tip {
  margin-top: 10px;
  color: #b2a2a0;
  font-size: 8px;
  line-height: 1.55;
}

.bound-unbind {
  width: 100%;
  height: 34px;
  margin-top: 10px;
  font-size: 10px;
}

.invite-box {
  padding: 14px;
  border: 1px dashed rgba(239, 127, 149, 0.36);
  border-radius: 14px;
  background: #fff8f9;
  text-align: center;
}

.invite-box__label {
  color: #a39393;
  font-size: 8px;
}

.invite-box__code {
  margin: 2px 0 6px;
  color: #d95d72;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 7px;
  line-height: 1.3;
}

.invite-box__desc {
  margin-top: 6px;
  color: #b2a2a0;
  font-size: 8px;
  line-height: 1.5;
}

.invite-empty {
  padding: 15px;
  border-radius: 14px;
  background: var(--paper-warm);
  text-align: center;
}

.invite-empty strong {
  font-size: 12px;
}

.invite-empty p {
  margin: 3px 0 10px;
  color: #a39393;
  font-size: 8px;
  line-height: 1.5;
}

.invite-empty button {
  width: 100%;
  height: 36px;
}

.bind-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 9px;
  color: #b8a8a5;
  font-size: 8px;
}

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

.bind-row {
  display: flex;
  gap: 8px;
}

.bind-row .input-shell {
  flex: 1;
}

.bind-row .input-shell input {
  text-align: center;
  letter-spacing: 3px;
  font-size: 14px;
  font-weight: 700;
}

.bind-submit {
  flex: 0 0 72px;
  height: 48px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(120deg, #f28ba0, #e66b84);
  font-size: 11px;
  font-weight: 700;
}

.bind-hint {
  margin-top: 7px;
  color: #b2a2a0;
  font-size: 8px;
  text-align: center;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.privacy-list__item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #7f6e70;
  font-size: 10px;
  line-height: 1.6;
}

.privacy-list__item::before {
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  margin-top: 7px;
  border-radius: 50%;
  background: #ef9cac;
  content: "";
}

.privacy-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.privacy-actions button {
  padding: 0;
  color: #d95d72;
  background: transparent;
  font-size: 9px;
}

.danger-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.danger-zone__copy {
  flex: 1;
  min-width: 0;
}

.danger-zone__copy strong {
  display: block;
  font-size: 11px;
}

.danger-zone__copy span {
  color: #b2a2a0;
  font-size: 8px;
  line-height: 1.45;
}

.danger-zone button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 11px;
  font-size: 9px;
}

.about-card {
  padding: 12px 8px 5px;
  color: #b8a8a5;
  font-size: 8px;
  line-height: 1.65;
  text-align: center;
}

.about-card strong {
  display: block;
  color: #8d7c7e;
  font-size: 10px;
}

.about-card span {
  display: block;
  margin-top: 2px;
}

.settings-note {
  max-width: 300px;
  margin: 7px auto 0;
}

/* Dialog, toast, loading */
.modal-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(44, 29, 32, 0.42);
  backdrop-filter: blur(5px);
  animation: fade-in 0.18s ease both;
}

.modal {
  width: 100%;
  max-width: 340px;
  max-height: calc(100dvh - 56px);
  overflow: auto;
  padding: 20px;
  border-radius: 23px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(49, 30, 34, 0.24);
  animation: modal-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal h2 {
  margin: 0 0 7px;
  color: #4a3d3f;
  font-size: 18px;
  font-weight: 730;
}

.modal p {
  margin: 0;
  color: #7f6e70;
  font-size: 11px;
  line-height: 1.72;
  white-space: pre-line;
}

.modal__actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.modal__actions button {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 680;
}

.modal__cancel {
  color: #756769;
  background: #f7f0ed;
}

.modal__confirm {
  color: #fff;
  background: linear-gradient(120deg, #f28ba0, #e66b84);
}

.modal__confirm.is-danger {
  background: linear-gradient(120deg, #e28492, #cf5a70);
}

.modal__close {
  width: 100%;
  height: 42px;
  margin-top: 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(120deg, #f28ba0, #e66b84);
  font-size: 12px;
  font-weight: 680;
}

.privacy-modal p + p {
  margin-top: 9px;
}

.toast {
  position: fixed;
  z-index: 80;
  bottom: calc(86px + var(--safe-bottom));
  left: 50%;
  max-width: min(340px, calc(100vw - 40px));
  padding: 10px 15px;
  border-radius: 12px;
  color: #fff;
  background: rgba(57, 43, 46, 0.93);
  box-shadow: 0 10px 28px rgba(57, 43, 46, 0.22);
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: rgba(167, 63, 79, 0.96);
}

.global-loading {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: rgba(45, 30, 34, 0.38);
  backdrop-filter: blur(4px);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.global-loading .spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.noscript {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #fff;
  background: #403537;
  font-size: 14px;
}

/* Readability floor for small supporting text */
.brand__copy small,
.privacy-chip,
.cover__eyebrow,
.cover__meta,
.cover__placeholder small,
.bind-banner p,
.invite-strip__desc,
.overview-head p,
.mini-compare__name,
.mini-compare__count,
.section-sub,
.record-item__duration,
.record-item__bristol,
.day-brief,
.day-tail span,
.detail-record__time,
.detail-record__meta,
.detail-record__note,
.stats-card__head p,
.compare-row__count,
.smooth-row__head,
.settings-card__head p,
.cover-actions p,
.invite-box__desc,
.invite-box__label,
.bind-hint,
.about-card {
  font-size: 10px;
}

.cover__edit,
.status-pill,
.pair-member__state,
.primary-cta__text small,
.overview-number span,
.record-item__tag,
.record-item__time,
.record-item__note,
.tag,
.footnote,
.form-hint,
.field-label,
.quick-chip,
.submit-tip,
.note-count,
.month-nav__center small,
.month-stat span,
.day-date span,
.owner-dot,
.delete-link,
.own-tip,
.stats-hero__chip,
.smooth-main__text span,
.mini-status,
.settings-hint,
.photo-notice,
.bound-person__info span,
.bound-tip,
.bind-divider {
  font-size: 10px;
}

.feeling-card small,
.bristol-item__text small,
.field-tip,
.metric-tile span,
.compare-empty,
.danger-zone__copy span {
  font-size: 9.5px;
}

.day-title-line strong,
.detail-record__owner strong {
  font-size: 13px;
}

.detail-record__owner span,
.record-item__tag {
  font-size: 8.5px;
}

.copy-btn,
.soft-button,
.profile-save,
.back-button,
.link-button,
.month-back,
.privacy-actions button,
.settings-hint button {
  font-size: 11px;
}

.ghost-button,
.danger-button,
.bind-submit {
  font-size: 12px;
}

.tab {
  font-size: 11px;
}

.privacy-list__item,
.stats-note,
.modal p,
.toast {
  font-size: 11px;
}

/* Small phones */
@media (max-width: 380px) {
  .main {
    padding-right: 15px;
    padding-left: 15px;
  }

  .topbar {
    padding-right: 17px;
    padding-left: 17px;
  }

  .cover {
    height: 265px;
  }

  .cover__title {
    font-size: 23px;
  }

  .quick-chips {
    gap: 4px;
  }

  .quick-chip {
    min-width: 35px;
    padding: 0 5px;
  }

  .duration-row .input-shell {
    flex-basis: 94px;
  }

  .feeling-grid {
    gap: 5px;
  }

  .stats-hero__number strong {
    font-size: 52px;
  }
}

/* Desktop */
@media (min-width: 760px) {
  body {
    padding: 22px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 44px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(105, 68, 72, 0.18);
  }

  .topbar {
    padding-top: 20px;
  }

  .cover {
    height: 330px;
  }

  .tabbar {
    border-radius: 0 0 32px 32px;
  }

  .toast {
    bottom: 110px;
  }
}

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