/* ==================================================================
   朝暮 · 两个人的小站
   A warm, editorial little corner for two.
   ================================================================== */

:root {
  --bg: #f5f0e8;
  --bg-deep: #eee6da;
  --surface: #fffdf9;
  --surface-2: #faf5ee;
  --surface-3: #f4ece1;
  --ink: #2b2420;
  --ink-soft: #594e47;
  --muted: #8d7f75;
  --faint: #b5a79b;
  --line: rgba(43, 36, 32, 0.09);
  --line-strong: rgba(43, 36, 32, 0.16);
  --accent: #bf5a45;
  --accent-deep: #9d4432;
  --accent-soft: #f4dfd8;
  --accent-faint: #fbf0ec;
  --rose: #d9917f;
  --sage: #8c9b83;
  --gold: #c39458;
  --dark: #2c211d;
  --dark-2: #4a2f28;
  --shadow-xs: 0 1px 2px rgba(43, 36, 32, 0.04);
  --shadow-sm: 0 2px 6px rgba(43, 36, 32, 0.04), 0 12px 30px -22px rgba(43, 36, 32, 0.35);
  --shadow-md: 0 6px 18px rgba(43, 36, 32, 0.06), 0 30px 60px -38px rgba(43, 36, 32, 0.45);
  --shadow-lg: 0 30px 90px -30px rgba(28, 19, 16, 0.5);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 88% -12%, rgba(217, 145, 127, 0.17), transparent 62%),
    radial-gradient(900px 700px at -12% 46%, rgba(140, 155, 131, 0.12), transparent 58%),
    var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

img {
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.hidden,
[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

svg {
  display: block;
  width: 1em;
  height: 1em;
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* ------------------------------------------------------------------
   atoms
   ------------------------------------------------------------------ */

.eyebrow,
.mini-label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.mini-label {
  color: inherit;
  opacity: 0.62;
  letter-spacing: 0.16em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.975);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn-primary {
  color: #fff9f4;
  background: linear-gradient(140deg, #ca6752, var(--accent) 58%, var(--accent-deep));
  box-shadow: 0 10px 24px -14px rgba(157, 68, 50, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 14px 30px -14px rgba(157, 68, 50, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-soft {
  background: var(--accent-faint);
  color: var(--accent-deep);
  border: 1px solid var(--accent-soft);
}

.btn-soft:hover {
  background: var(--accent-soft);
}

.btn-quiet {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-quiet:hover {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.7);
  border-color: var(--line-strong);
}

.btn-danger {
  background: #f9e6e1;
  color: #a53e2c;
  border: 1px solid #efcfc7;
}

.btn-danger:hover {
  background: #f4d7d0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #e3b7a7, #c97963);
  color: #fff8f2;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  user-select: none;
}

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

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.avatar-md {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.avatar-lg {
  width: 68px;
  height: 68px;
  font-size: 26px;
}

.avatar-xl {
  width: 88px;
  height: 88px;
  font-size: 32px;
}

.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(140, 155, 131, 0.15);
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #ce725d, var(--accent) 60%, var(--accent-deep));
  color: #fff8f3;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(157, 68, 50, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* ------------------------------------------------------------------
   auth
   ------------------------------------------------------------------ */

.auth-view {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, 0.94fr);
  min-height: 100dvh;
}

.auth-art {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100dvh;
  padding: clamp(30px, 4.6vw, 68px);
  color: #f8eee3;
  background:
    radial-gradient(80% 70% at 78% 12%, rgba(191, 106, 79, 0.3), transparent 64%),
    radial-gradient(70% 60% at 18% 90%, rgba(140, 155, 131, 0.16), transparent 62%),
    linear-gradient(150deg, #241a17 0%, #33221d 46%, #452a23 100%);
}

.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 245, 233, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 245, 233, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(80% 70% at 54% 36%, #000 20%, transparent 78%);
}

.auth-art-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.art-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.art-brand .brand-seal {
  background: rgba(255, 246, 235, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 235, 0.24);
  backdrop-filter: blur(6px);
}

.art-brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.12em;
}

.art-brand-text em {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.36em;
  opacity: 0.45;
}

.art-quote {
  margin: auto 0;
  padding: 48px 0;
}

.art-eyebrow {
  margin-bottom: 22px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: rgba(248, 238, 227, 0.48);
}

.art-quote h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.015em;
}

.art-sub {
  margin-top: 28px;
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: rgba(248, 238, 227, 0.58);
}

.art-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.art-line {
  display: block;
  width: 44px;
  height: 1px;
  background: rgba(248, 238, 227, 0.32);
}

.art-foot p {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: rgba(248, 238, 227, 0.44);
}

.art-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.art-glow-a {
  top: -8%;
  right: 3%;
  width: 360px;
  height: 360px;
  background: rgba(206, 114, 84, 0.34);
}

.art-glow-b {
  bottom: -14%;
  left: 4%;
  width: 320px;
  height: 320px;
  background: rgba(140, 155, 131, 0.14);
}

.art-sun {
  position: absolute;
  top: 11%;
  right: 11%;
  width: clamp(180px, 22vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, #f7c79d 0%, #e99a76 42%, #c96a51 72%, #a44936 100%);
  box-shadow:
    0 0 90px 10px rgba(223, 128, 93, 0.36),
    inset -18px -24px 50px rgba(112, 43, 30, 0.36);
  opacity: 0.88;
}

.art-sun::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(255, 240, 220, 0.22), transparent 58%);
}

.art-moon {
  position: absolute;
  top: 42%;
  right: 30%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: inset -14px 8px 0 0 rgba(248, 238, 227, 0.48);
  transform: rotate(-24deg);
  opacity: 0.66;
}

.art-arc {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(248, 238, 227, 0.09);
  pointer-events: none;
}

.arc-1 {
  top: -18%;
  right: -12%;
  width: 68%;
  aspect-ratio: 1;
}

.arc-2 {
  top: -7%;
  right: -2%;
  width: 50%;
  aspect-ratio: 1;
}

.arc-3 {
  right: 18%;
  bottom: 12%;
  width: 36%;
  aspect-ratio: 1;
  border-color: rgba(248, 238, 227, 0.06);
}

.art-horizon {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 26%;
  background: linear-gradient(to top, rgba(21, 14, 12, 0.52), transparent);
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f8eee3;
  opacity: 0.45;
}

.star-1 { top: 20%; left: 24%; }
.star-2 { top: 33%; left: 15%; width: 2px; height: 2px; opacity: 0.3; }
.star-3 { top: 16%; right: 42%; width: 2px; height: 2px; opacity: 0.26; }
.star-4 { bottom: 24%; right: 18%; opacity: 0.22; }

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 44px clamp(24px, 5vw, 72px);
}

.auth-card {
  width: 100%;
  max-width: 410px;
}

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

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.auth-heading > p:last-child {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: rgba(238, 230, 218, 0.64);
  border: 1px solid rgba(43, 36, 32, 0.05);
}

.auth-tab {
  position: relative;
  z-index: 2;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.22s ease;
}

.auth-tab.is-active {
  color: var(--ink);
}

.auth-tab-ink {
  position: absolute;
  z-index: 1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(43, 36, 32, 0.08);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.auth-tabs[data-mode="register"] .auth-tab-ink {
  transform: translateX(100%);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field-label {
  padding-left: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.field-box {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 15px;
  gap: 11px;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-box:focus-within {
  background: var(--surface);
  border-color: rgba(191, 90, 69, 0.55);
  box-shadow: 0 0 0 4px rgba(191, 90, 69, 0.09);
}

.field-icon {
  width: 18px;
  height: 18px;
  color: var(--faint);
  font-size: 18px;
}

.field-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
}

.field-box input::placeholder {
  color: var(--faint);
}

.field-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: -6px;
  border-radius: 8px;
  color: var(--faint);
  font-size: 17px;
}

.field-eye:hover {
  color: var(--ink-soft);
  background: var(--surface-2);
}

.form-error {
  min-height: 0;
  margin: -2px 0 0;
  font-size: 12.5px;
  color: #b04630;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-error.is-visible {
  min-height: 20px;
  opacity: 1;
  transform: translateY(0);
}

.btn-auth {
  width: 100%;
  height: 52px;
  margin-top: 2px;
  border-radius: 15px;
  font-size: 14.5px;
  justify-content: center;
  gap: 12px;
}

.btn-auth .btn-arrow {
  font-size: 17px;
  transition: transform 0.2s ease;
}

.btn-auth:hover .btn-arrow {
  transform: translateX(4px);
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading .btn-label,
.btn.is-loading span {
  opacity: 0.55;
}

.btn-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.auth-note {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.58);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.auth-note:empty {
  display: none;
}

.auth-note.is-warm {
  background: var(--accent-faint);
  border-color: var(--accent-soft);
  color: #8c4b3c;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-switch button {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(191, 90, 69, 0.32);
  transition: border-color 0.18s ease;
}

.auth-switch button:hover {
  border-color: var(--accent);
}

.auth-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 34px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.auth-privacy [data-icon] {
  font-size: 12px;
}

/* ------------------------------------------------------------------
   shell
   ------------------------------------------------------------------ */

.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 690px) 292px;
  gap: clamp(24px, 3.4vw, 46px);
  align-items: start;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: 34px 0 26px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  margin-bottom: 40px;
  border-radius: 14px;
}

.side-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.side-brand-copy strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.side-brand-copy em {
  margin-top: 4px;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 47px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.side-link:hover {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.6);
}

.side-link.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.side-link-icon {
  width: 19px;
  height: 19px;
  font-size: 19px;
  color: var(--faint);
  transition: color 0.2s ease;
}

.side-link.is-active .side-link-icon {
  color: var(--accent);
}

.side-link-dot {
  width: 4px;
  height: 4px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.side-link.is-active .side-link-dot {
  opacity: 1;
  transform: scale(1);
}

.side-together {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 18px 19px 17px;
  border-radius: 20px;
  color: #5b3b31;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(255, 255, 255, 0.6), transparent 54%),
    linear-gradient(145deg, #f3e2d9, #ebd1c5);
  border: 1px solid rgba(140, 84, 66, 0.1);
}

.side-together::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -20px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(140, 84, 66, 0.14);
}

.side-days {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 4px;
  font-family: var(--serif);
  line-height: 1;
}

.side-days span {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.side-days em {
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  opacity: 0.6;
}

.side-date {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  opacity: 0.64;
}

.side-progress {
  height: 3px;
  margin-top: 14px;
  border-radius: 99px;
  background: rgba(112, 64, 50, 0.13);
  overflow: hidden;
}

.side-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d18a74, #b95b45);
  transition: width 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

.side-progress-copy {
  margin-top: 7px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  opacity: 0.5;
}

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
}

.side-user-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.side-user-copy strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user-copy em {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 9.5px;
  font-style: normal;
  color: var(--faint);
}

.side-logout {
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 10px;
  font-size: 17px;
}

.side-logout:hover {
  color: var(--accent);
  background: var(--accent-faint);
}

.content {
  min-width: 0;
  padding: 28px 0 90px;
}

.topbar {
  display: none;
}

.main {
  width: 100%;
}

.rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100dvh;
  padding: 94px 0 30px;
}

.rail-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(10px);
}

.together-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  color: #f9eee3;
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(226, 141, 111, 0.32), transparent 58%),
    radial-gradient(80% 80% at 0% 100%, rgba(140, 155, 131, 0.16), transparent 60%),
    linear-gradient(150deg, #2e211d, #492c24 72%, #573228);
  border-color: rgba(255, 246, 235, 0.08);
  box-shadow: 0 18px 40px -30px rgba(46, 33, 29, 0.9);
}

.together-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -54px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(248, 238, 227, 0.1);
}

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

.together-spark {
  font-size: 14px;
  color: rgba(248, 238, 227, 0.4);
}

.rail-days {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--serif);
  line-height: 1;
}

.rail-days span {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.rail-days em {
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  color: rgba(248, 238, 227, 0.5);
}

.rail-date {
  margin-top: 9px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(248, 238, 227, 0.52);
}

.together-avatars {
  display: flex;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(248, 238, 227, 0.1);
}

.together-avatars .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
  border: 2px solid #3b2923;
  box-shadow: none;
}

.together-avatars .avatar + .avatar {
  margin-left: -9px;
}

.together-heart {
  margin-left: 9px;
  font-size: 12px;
  color: #e6a08c;
}

.together-names {
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: rgba(248, 238, 227, 0.54);
}

.rail-quote {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: rgba(248, 238, 227, 0.42);
}

.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rail-heading h2 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.rail-heading [data-icon] {
  font-size: 13px;
  color: var(--faint);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 13px;
  background: var(--surface);
}

.stat strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.stat span {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.note-card {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 20px;
  background: linear-gradient(160deg, #efe8da, #f7f1e6);
}

.note-mark {
  position: absolute;
  top: -8px;
  left: 14px;
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  color: rgba(157, 120, 80, 0.16);
}

.note-card p {
  position: relative;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: #6b5848;
}

.note-card > span {
  display: block;
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #a08d7a;
}

.rail-foot {
  margin-top: auto;
  padding: 0 4px;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.tabbar {
  display: none;
}

/* ------------------------------------------------------------------
   feed
   ------------------------------------------------------------------ */

.view {
  animation: viewIn 0.45s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.feed-head h1 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.feed-sub {
  margin-top: 9px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-wrap: balance;
}

.btn-refresh {
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
  background: rgba(255, 253, 249, 0.5);
}

.btn-refresh [data-icon] {
  font-size: 15px;
}

.btn-refresh.is-spinning [data-icon] {
  animation: spin 0.8s linear infinite;
}

.composer {
  position: relative;
  padding: 20px;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.composer:focus-within {
  border-color: rgba(191, 90, 69, 0.28);
  box-shadow: 0 0 0 4px rgba(191, 90, 69, 0.055), var(--shadow-sm);
}

.composer.is-dragging {
  border-color: var(--accent);
  background: var(--accent-faint);
  box-shadow: 0 0 0 4px rgba(191, 90, 69, 0.09);
}

.composer.is-prompted {
  animation: composerPrompt 0.9s ease both;
}

@keyframes composerPrompt {
  0% { box-shadow: var(--shadow-sm); }
  32% { box-shadow: 0 0 0 6px rgba(191, 90, 69, 0.12), var(--shadow-md); }
  100% { box-shadow: var(--shadow-sm); }
}

.composer-top {
  display: flex;
  gap: 13px;
}

.composer-avatar {
  margin-top: 1px;
}

.composer-text {
  flex: 1;
  width: 100%;
  min-height: 48px;
  max-height: 260px;
  padding: 7px 2px 4px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-size: 15.5px;
  line-height: 1.8;
  overflow-y: auto;
}

.composer-text::placeholder {
  color: var(--faint);
}

.composer-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 2px 57px;
}

.preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--surface-3);
}

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

.preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  background: rgba(27, 18, 15, 0.58);
  backdrop-filter: blur(6px);
  font-size: 13px;
  transition: background 0.18s ease;
}

.preview-remove:hover {
  background: rgba(157, 68, 50, 0.92);
}

.preview-item.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
  animation: shimmer 1.2s infinite;
}

.composer-moods {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0 57px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.composer-moods::-webkit-scrollbar {
  display: none;
}

.mood-label {
  flex: none;
  margin-right: 1px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.mood-chip {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(250, 245, 238, 0.7);
  font-size: 10.5px;
  color: var(--muted);
  transition: all 0.18s ease;
}

.mood-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.mood-chip.is-active {
  color: var(--accent-deep);
  background: var(--accent-faint);
  border-color: rgba(191, 90, 69, 0.32);
  box-shadow: inset 0 0 0 1px rgba(191, 90, 69, 0.05);
}

.composer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 0 57px;
  padding: 5px 7px 5px 10px;
  border-radius: 999px;
  background: var(--accent-faint);
  color: var(--accent-deep);
  font-size: 10.5px;
}

.composer-location[hidden] {
  display: none;
}

.composer-location [data-icon] {
  flex: none;
  font-size: 12px;
}

.composer-location-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-location-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 1px;
  border-radius: 50%;
  color: var(--muted);
}

.composer-location-clear:hover {
  color: var(--accent-deep);
  background: rgba(191, 90, 69, 0.12);
}

.composer-location-clear [data-icon] {
  font-size: 11px;
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.tool-btn [data-icon] {
  font-size: 16px;
}

.tool-btn:hover {
  color: var(--accent);
  background: var(--accent-faint);
}

.tool-btn.is-active {
  color: var(--accent-deep);
  background: var(--accent-faint);
}

.composer-hint {
  margin-left: 3px;
  font-size: 9.5px;
  color: var(--faint);
  white-space: nowrap;
}

.composer-submit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.char-count {
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}

.char-count.is-near {
  color: var(--accent);
}

.btn-publish {
  height: 38px;
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
  gap: 7px;
}

.btn-publish [data-icon] {
  font-size: 15px;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 14px;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-chip {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.18s ease;
}

.filter-chip:hover {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.6);
}

.filter-chip.is-active {
  color: #fffaf5;
  background: var(--ink);
  box-shadow: 0 6px 14px -10px rgba(43, 36, 32, 0.8);
}

.feed-count {
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  animation: cardIn 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  border-color: rgba(43, 36, 32, 0.13);
  box-shadow: var(--shadow-sm);
}

.post-card.is-new {
  animation: newPost 1.6s ease both;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border-radius: 12px;
  text-align: left;
}

.post-author:hover .post-name {
  color: var(--accent);
}

.post-author-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.post-name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: color 0.18s ease;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 10px;
  color: var(--faint);
}

.post-meta .meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--faint);
}

.post-side {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.post-menu {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 17px;
  color: var(--faint);
}

.post-menu:hover {
  color: var(--accent);
  background: var(--accent-faint);
}

.post-content {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.88;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-content:empty {
  display: none;
}

.post-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  text-decoration: none;
  vertical-align: middle;
}

.post-location [data-icon] {
  flex: none;
  font-size: 12px;
}

.post-location.is-link {
  transition: color 0.18s ease, background 0.18s ease;
}

.post-location.is-link:hover {
  color: var(--accent-deep);
  background: var(--accent-faint);
}

.post-location-arrow {
  margin-left: 1px;
  opacity: 0.55;
}

.post-images {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-3);
}

.post-images[data-count="1"] {
  grid-template-columns: 1fr;
}

.post-images[data-count="2"],
.post-images[data-count="4"] {
  grid-template-columns: 1fr 1fr;
}

.post-images[data-count="3"] {
  grid-template-columns: 1.22fr 0.78fr;
  grid-template-rows: repeat(2, minmax(0, 148px));
}

.post-images[data-count="3"] .post-image:first-child {
  grid-row: span 2;
}

.post-images[data-count="5"],
.post-images[data-count="6"],
.post-images[data-count="7"],
.post-images[data-count="8"],
.post-images[data-count="9"] {
  grid-template-columns: repeat(3, 1fr);
}

.post-image {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-3);
  cursor: zoom-in;
}

.post-images[data-count="1"] .post-image {
  max-height: 560px;
}

.post-images[data-count="1"] .post-image img {
  position: absolute;
  inset: 0;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1), filter 0.3s ease;
}

.post-image:hover img {
  transform: scale(1.025);
}

.post-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 22, 19, 0.08), transparent 35%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.post-image:hover::after {
  opacity: 1;
}

.post-footer {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(43, 36, 32, 0.055);
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 11px;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.post-action [data-icon] {
  font-size: 17px;
}

.post-action:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.post-action.is-liked {
  color: var(--accent);
}

.post-action.is-liked [data-icon] svg {
  fill: currentColor;
  stroke: currentColor;
}

.post-action.is-liked:hover {
  background: var(--accent-faint);
}

.post-action.is-popping [data-icon] {
  animation: heartPop 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.post-time {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.skeleton-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
}

.sk-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sk-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-3);
}

.sk-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.sk-line {
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(100deg, var(--surface-3) 20%, #fffaf3 48%, var(--surface-3) 76%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}

.sk-line.short {
  width: 34%;
}

.sk-body {
  margin-top: 20px;
}

.sk-body .sk-line + .sk-line {
  margin-top: 9px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 58px 24px 52px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(43, 36, 32, 0.15);
  background: rgba(255, 253, 249, 0.38);
  text-align: center;
}

.empty-orbit {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1px solid rgba(191, 90, 69, 0.2);
}

.empty-orbit::before,
.empty-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(191, 90, 69, 0.12);
}

.empty-orbit::before {
  inset: 13px;
}

.empty-orbit::after {
  inset: 28px;
}

.empty-dot {
  position: absolute;
  top: 13px;
  left: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(191, 90, 69, 0.1);
}

.empty-dot-b {
  top: auto;
  right: 18px;
  bottom: 20px;
  left: auto;
  width: 6px;
  height: 6px;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(140, 155, 131, 0.1);
}

.empty-state h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.empty-state p {
  max-width: 340px;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.empty-state .btn {
  margin-top: 18px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 22px 0 4px;
}

.load-more-wrap .btn {
  min-height: 38px;
  font-size: 11.5px;
}

/* ------------------------------------------------------------------
   us view
   ------------------------------------------------------------------ */

.us-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-xl);
  color: #f9eee3;
  background:
    radial-gradient(90% 120% at 92% 0%, rgba(213, 132, 104, 0.32), transparent 58%),
    radial-gradient(70% 90% at 4% 100%, rgba(140, 155, 131, 0.17), transparent 60%),
    linear-gradient(150deg, #2d211d, #492c24 70%, #563128);
  box-shadow: 0 24px 50px -38px rgba(46, 33, 29, 0.9);
}

.us-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(248, 238, 227, 0.09);
}

.us-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(248, 238, 227, 0.06);
}

.us-hero-copy {
  position: relative;
  z-index: 2;
}

.us-hero-copy .eyebrow {
  color: rgba(248, 238, 227, 0.5);
}

.us-hero h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.4;
}

.us-hero-days {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 18px;
  font-family: var(--serif);
  line-height: 1;
}

.us-hero-days strong {
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.us-hero-days span {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(248, 238, 227, 0.5);
}

.us-hero-date {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(248, 238, 227, 0.5);
}

.us-hero-avatars {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.us-hero-avatars .avatar {
  width: 104px;
  height: 104px;
  font-size: 34px;
  border: 3px solid #3a2822;
  box-shadow: 0 16px 28px -18px rgba(0, 0, 0, 0.7);
}

.us-hero-avatars .avatar + .avatar {
  margin-left: -24px;
}

.us-hero-heart {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #f7e7db;
  background: #b95b45;
  border: 2px solid #3a2822;
  font-size: 16px;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
}

.us-hero-names {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(248, 238, 227, 0.62);
}

.us-section {
  margin-top: 30px;
}

.us-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.us-section-head h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.us-section-head span {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.us-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.us-stat {
  padding: 18px 16px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.us-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.us-stat span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pair-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.pair-card.is-me {
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(191, 90, 69, 0.06), transparent 55%),
    rgba(255, 253, 249, 0.94);
}

.pair-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pair-top .avatar {
  width: 56px;
  height: 56px;
  font-size: 21px;
}

.pair-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.pair-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.pair-bio {
  min-height: 38px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.pair-bio.is-empty {
  color: var(--faint);
  font-style: italic;
}

.pair-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--faint);
}

.pair-edit {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
}

.pair-edit:hover {
  text-decoration: underline;
}

.invite-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.62), transparent 56%),
    linear-gradient(145deg, #f3e2d8, #ecd1c5);
  border: 1px solid rgba(140, 84, 66, 0.1);
}

.invite-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.invite-card p {
  max-width: 440px;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.8;
  color: #7c584c;
}

.invite-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 8px 7px 14px;
  border-radius: 13px;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(140, 84, 66, 0.12);
}

.invite-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 11.5px;
  color: #6b4a3f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-row .btn {
  min-height: 34px;
  padding: 0 13px;
  font-size: 11px;
  background: #fffdf9;
  color: #8c4b3c;
  box-shadow: 0 2px 8px rgba(90, 50, 39, 0.06);
}

.info-card {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.62);
  border: 1px solid var(--line);
}

.info-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.info-subhead {
  margin-top: 18px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  text-transform: uppercase;
}

.info-subhead + .info-list {
  margin-top: 10px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.info-item {
  display: flex;
  gap: 12px;
}

.info-item .info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 15px;
}

.info-item strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.info-item p {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}

.info-jump {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  align-items: flex-start;
  cursor: pointer;
}

.info-jump > div {
  flex: 1;
  min-width: 0;
}

.info-jump::after {
  content: '↗';
  margin-left: auto;
  padding-top: 1px;
  color: var(--faint);
  font-size: 12px;
  opacity: 0.3;
  transform: translate(0, 0);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.info-jump:hover::after,
.info-jump:focus-visible::after {
  opacity: 0.9;
  transform: translate(0, 0);
}

.info-jump:hover strong {
  color: var(--accent-deep);
}

.info-jump:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.is-jump-highlight {
  outline: 2px solid rgba(180, 95, 72, 0.42);
  outline-offset: 6px;
  border-radius: 20px;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.info-actions .btn {
  min-height: 36px;
  font-size: 11px;
}

/* ------------------------------------------------------------------
   modal / detail / settings
   ------------------------------------------------------------------ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(33, 23, 19, 0.46);
  backdrop-filter: blur(7px);
  animation: backdropIn 0.25s ease both;
}

.modal {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: min(860px, calc(100dvh - 48px));
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.36s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.modal--post {
  width: min(720px, 100%);
}

.modal--confirm {
  width: min(420px, 100%);
}

.modal--location {
  width: min(430px, 100%);
}

.location-now {
  width: 100%;
  margin-top: 14px;
  justify-content: center;
  gap: 7px;
}

.location-status {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.location-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex: none;
}

.modal-head h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.modal-head .modal-head-sub {
  margin-left: auto;
  font-size: 10px;
  color: var(--faint);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 10px;
  color: var(--muted);
  font-size: 18px;
  transition: background 0.18s ease, color 0.18s ease;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
}

.modal-body--flush {
  padding: 0;
}

/* post detail */

.detail-post {
  padding: 22px 24px 18px;
}

.detail-post .post-content {
  font-size: 15.5px;
}

.detail-post .post-images {
  margin-top: 16px;
}

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

.comments-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 24px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.comments-head h3 {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.comments-head span {
  font-size: 10px;
  color: var(--faint);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 18px 20px;
  background: var(--surface-2);
}

.comment {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 10px 6px;
  border-radius: 12px;
  transition: background 0.18s ease;
}

.comment:hover {
  background: rgba(255, 253, 249, 0.7);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

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

.comment-top {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.comment-name {
  font-size: 11px;
  font-weight: 650;
}

.comment-time {
  font-size: 9px;
  color: var(--faint);
}

.comment-text {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-delete {
  position: absolute;
  top: 50%;
  right: 4px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  color: var(--faint);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, color 0.18s ease;
}

.comment:hover .comment-delete,
.comment-delete:focus-visible {
  opacity: 1;
}

.comment-delete:hover {
  color: var(--accent);
}

.comment-empty {
  padding: 24px 10px 30px;
  text-align: center;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.comment-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 13px 18px calc(13px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}

.comment-input-wrap {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  min-height: 42px;
  padding: 9px 42px 9px 13px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.comment-emoji {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--faint);
  font-size: 17px;
  transition: color 0.18s ease, background 0.18s ease;
}

.comment-emoji:hover,
.comment-emoji[aria-expanded="true"] {
  color: var(--accent);
  background: var(--accent-faint);
}

.comment-input-wrap:focus-within {
  border-color: rgba(191, 90, 69, 0.4);
  box-shadow: 0 0 0 3px rgba(191, 90, 69, 0.07);
}

.comment-input {
  width: 100%;
  max-height: 110px;
  padding: 2px 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-size: 13px;
  line-height: 1.6;
}

.comment-input::placeholder {
  color: var(--faint);
}

.comment-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  color: #fff8f3;
  background: var(--accent);
  font-size: 18px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.comment-send:hover {
  background: var(--accent-deep);
}

.comment-send:active {
  transform: scale(0.96);
}

.comment-send:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ------------------------------------------------------------------
   publish action sheet
   ------------------------------------------------------------------ */

.plus-scrim {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(33, 23, 19, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.plus-scrim.is-open {
  opacity: 1;
}

.plus-scrim[hidden],
.plus-sheet[hidden] {
  display: none;
}

.plus-sheet {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 270;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(368px, calc(100vw - 24px));
  opacity: 1;
  transform: translate(-50%, 0);
}

.plus-sheet.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.plus-sheet:focus {
  outline: none;
}

.plus-grab {
  display: none;
}

.plus-actions {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.plus-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 64px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  transition: background 0.16s ease;
}

.plus-option:last-child {
  border-bottom: 0;
}

.plus-option strong {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.plus-option small {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.plus-option:hover,
.plus-option:active {
  background: var(--surface-2);
}

.plus-cancel {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  color: var(--ink-soft);
  transition: background 0.16s ease;
}

.plus-cancel:hover,
.plus-cancel:active {
  background: var(--surface-2);
}

/* ------------------------------------------------------------------
   emoji picker
   ------------------------------------------------------------------ */

.emoji-scrim {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(33, 23, 19, 0.16);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.emoji-scrim.is-open {
  opacity: 1;
}

.emoji-panel {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  width: min(540px, calc(100vw - 24px));
  max-height: min(480px, 72vh);
  max-height: min(480px, 72dvh);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 1;
  transform: translate(-50%, 0);
}

.emoji-panel[hidden],
.emoji-scrim[hidden] {
  display: none;
}

.emoji-panel.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.emoji-grab {
  display: none;
}

.emoji-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: none;
}

.emoji-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.emoji-title strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.emoji-title span {
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.emoji-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  flex: none;
  border-radius: 9px;
  color: var(--muted);
  font-size: 17px;
  transition: color 0.18s ease, background 0.18s ease;
}

.emoji-close:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.emoji-tabs {
  display: flex;
  gap: 6px;
  flex: none;
  padding: 13px 0 11px;
  overflow-x: auto;
  scrollbar-width: none;
}

.emoji-tabs::-webkit-scrollbar {
  display: none;
}

.emoji-tab {
  flex: none;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.emoji-tab:hover {
  color: var(--ink-soft);
  border-color: var(--line-strong);
}

.emoji-tab.is-active {
  color: #fff8f3;
  background: var(--accent);
  border-color: var(--accent);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0;
  border-radius: 11px;
  font-size: 23px;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
}

.emoji-item:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}

.emoji-item.is-picked {
  background: var(--accent-faint);
  transform: scale(0.9);
}

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

.emoji-grid.is-kaomoji .emoji-item {
  justify-content: flex-start;
  height: 44px;
  padding: 0 9px;
  overflow: hidden;
  font-size: 11.5px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* settings */

.settings-section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.settings-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.settings-section h3 {
  margin-bottom: 15px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar-editor .avatar {
  width: 78px;
  height: 78px;
  font-size: 28px;
}

.avatar-editor-copy {
  flex: 1;
}

.avatar-editor-copy strong {
  display: block;
  font-size: 12.5px;
}

.avatar-editor-copy p {
  margin-top: 3px;
  font-size: 10px;
  color: var(--faint);
}

.avatar-editor-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.avatar-editor-actions .btn {
  min-height: 30px;
  padding: 0 11px;
  font-size: 10px;
}

.settings-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-box {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-box:focus-within {
  border-color: rgba(191, 90, 69, 0.4);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(191, 90, 69, 0.06);
}

.input-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.input-box textarea {
  width: 100%;
  min-height: 72px;
  padding: 12px 0;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  font-size: 13px;
  line-height: 1.7;
}

.input-box.is-textarea {
  align-items: flex-start;
  padding: 0 13px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.password-details {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.password-details summary {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
}

.password-details summary::-webkit-details-marker {
  display: none;
}

.password-details summary::after {
  content: "+";
  float: right;
  color: var(--faint);
  font-size: 15px;
}

.password-details[open] summary::after {
  content: "−";
}

.password-details-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
}

.password-details .input-box {
  background: var(--surface);
}

/* confirm */

.confirm-body {
  padding: 24px 24px 8px;
}

.confirm-body h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.confirm-body p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 24px 22px;
}

/* ------------------------------------------------------------------
   lightbox
   ------------------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 12, 10, 0.94);
  backdrop-filter: blur(8px);
  animation: backdropIn 0.2s ease both;
}

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 88dvh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: max(18px, var(--safe-top));
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: rgba(255, 248, 242, 0.8);
  background: rgba(255, 255, 255, 0.09);
  font-size: 20px;
  transition: background 0.18s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.17);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: rgba(255, 248, 242, 0.75);
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  transform: translateY(-50%);
  transition: background 0.18s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: max(22px, var(--safe-bottom));
  left: 50%;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 248, 242, 0.65);
  transform: translateX(-50%);
}

/* ------------------------------------------------------------------
   toast
   ------------------------------------------------------------------ */

.toast-root {
  position: fixed;
  z-index: 300;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 11px 12px 11px 17px;
  border-radius: 14px;
  color: #f9efe4;
  background: rgba(43, 32, 27, 0.96);
  box-shadow: 0 18px 40px -18px rgba(25, 17, 14, 0.8);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  animation: toastIn 0.35s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.toast.is-leaving {
  animation: toastOut 0.25s ease both;
}

.toast-message {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
}

.toast-action {
  flex: none;
  padding: 6px 10px;
  border-radius: 8px;
  color: #f0b9a7;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 650;
  transition: background 0.18s ease;
}

.toast-action:hover {
  background: rgba(255, 255, 255, 0.14);
}

.toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  color: rgba(249, 239, 228, 0.45);
  font-size: 13px;
}

.toast-close:hover {
  color: #f9efe4;
  background: rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------------------------
   animations
   ------------------------------------------------------------------ */

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

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes newPost {
  0% { box-shadow: 0 0 0 0 rgba(191, 90, 69, 0.28); }
  40% { box-shadow: 0 0 0 5px rgba(191, 90, 69, 0.1); }
  100% { box-shadow: 0 0 0 0 rgba(191, 90, 69, 0); }
}

@keyframes heartPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.32); }
  70% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

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

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

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ------------------------------------------------------------------
   responsive
   ------------------------------------------------------------------ */

@media (max-width: 1240px) {
  .shell {
    grid-template-columns: 220px minmax(0, 720px);
    max-width: 1010px;
  }

  .rail {
    display: none;
  }
}

@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 84px minmax(0, 720px);
    max-width: 870px;
    gap: 26px;
    padding: 0 22px;
  }

  .side-brand {
    justify-content: center;
    padding: 0;
  }

  .side-brand-copy,
  .side-link > span:not(.side-link-icon):not(.side-link-dot):not(.notify-badge),
  .side-together,
  .side-user-copy,
  .side-logout {
    display: none;
  }

  .side-link {
    justify-content: center;
    padding: 0;
  }

  .side-link-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }

  .side-link-dot {
    position: absolute;
    top: 11px;
    right: 12px;
  }

  .side-link .notify-badge {
    position: absolute;
    top: 7px;
    right: 9px;
    min-width: 15px;
    height: 15px;
    margin: 0;
    padding: 0 4px;
    font-size: 8px;
  }

  .side-user {
    justify-content: center;
    padding-top: 16px;
  }
}

@media (max-width: 860px) {
  .auth-view {
    display: block;
  }

  .auth-art {
    min-height: 216px;
    height: 216px;
    padding: 22px;
    border-radius: 0 0 32px 32px;
  }

  .auth-art-inner {
    max-width: none;
  }

  .art-brand .brand-seal {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 18px;
  }

  .art-brand-text {
    font-size: 17px;
  }

  .art-quote {
    padding: 0;
    margin: 26px 0 0;
  }

  .art-eyebrow {
    display: none;
  }

  .art-quote h1 {
    font-size: 34px;
    line-height: 1.22;
  }

  .art-sub,
  .art-foot {
    display: none;
  }

  .art-sun {
    top: -38px;
    right: -28px;
    width: 190px;
    opacity: 0.72;
  }

  .art-moon {
    top: 26px;
    right: 42%;
    width: 40px;
    height: 40px;
  }

  .arc-1,
  .arc-2 {
    display: none;
  }

  .arc-3 {
    right: 12%;
    bottom: -20%;
    width: 180px;
  }

  .auth-panel {
    min-height: calc(100dvh - 216px);
    padding: 28px 22px 44px;
    justify-content: flex-start;
  }

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

  .auth-heading {
    margin-bottom: 22px;
  }

  .auth-heading h2 {
    font-size: 30px;
  }

  .auth-privacy {
    margin-top: 24px;
  }

  .shell {
    display: block;
    max-width: 760px;
    padding: 0 20px;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding: 0 0 calc(104px + var(--safe-bottom));
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(60px + var(--safe-top));
    margin: 0 -20px;
    padding: var(--safe-top) 20px 0;
    background: rgba(245, 240, 232, 0.82);
    border-bottom: 1px solid rgba(43, 36, 32, 0.06);
    backdrop-filter: blur(16px) saturate(1.1);
  }

  .topbar-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.1em;
  }

  .topbar-brand .brand-seal {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 16px;
  }

  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .presence-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 9px;
    margin-right: 2px;
    border-radius: 999px;
    background: rgba(140, 155, 131, 0.11);
    font-size: 9px;
    color: #6d7a66;
    white-space: nowrap;
  }

  .presence-pill.is-offline {
    display: none;
  }

  .topbar-avatar {
    margin-left: 2px;
    cursor: pointer;
  }

  .main {
    padding-top: 24px;
  }

  .feed-head {
    margin-bottom: 20px;
  }

  .feed-head h1 {
    font-size: 32px;
  }

  .btn-refresh span:last-child {
    display: none;
  }

  .btn-refresh {
    width: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 84px 1fr;
    align-items: center;
    height: calc(66px + var(--safe-bottom));
    padding: 0 max(18px, env(safe-area-inset-left)) var(--safe-bottom) max(18px, env(safe-area-inset-right));
    background: rgba(255, 253, 249, 0.9);
    border-top: 1px solid rgba(43, 36, 32, 0.07);
    backdrop-filter: blur(20px) saturate(1.2);
  }

  .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    font-size: 9px;
    color: var(--faint);
    transition: color 0.18s ease;
  }

  .tab [data-icon] {
    font-size: 21px;
  }

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

  .tab-compose {
    position: relative;
  }

  .tab-compose-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-top: -24px;
    border-radius: 50%;
    color: #fff8f3;
    background: linear-gradient(145deg, #cd6c56, var(--accent) 55%, var(--accent-deep));
    box-shadow: 0 10px 24px -10px rgba(157, 68, 50, 0.8), 0 0 0 5px var(--bg);
    font-size: 24px;
    transition: transform 0.2s ease;
  }

  .tab-compose:active .tab-compose-inner {
    transform: scale(0.94);
  }

  .plus-scrim {
    background: rgba(33, 23, 19, 0.34);
  }

  .plus-sheet {
    right: 10px;
    bottom: 0;
    left: 10px;
    width: auto;
    padding-bottom: calc(10px + var(--safe-bottom));
    transform: translateY(0);
  }

  .plus-sheet.is-open {
    transform: translateY(0);
  }

  .plus-grab {
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 2px;
    flex: none;
    border-radius: 999px;
    background: var(--line-strong);
  }

  .plus-actions {
    border-radius: 22px;
  }

  .plus-option {
    min-height: 66px;
  }

  .plus-cancel {
    border-radius: 16px;
  }

  .emoji-scrim {
    background: rgba(33, 23, 19, 0.26);
  }

  .emoji-panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(60vh, 520px);
    max-height: min(60dvh, 520px);
    padding: 8px 12px calc(12px + var(--safe-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    transform: none;
  }

  .emoji-panel.is-open {
    transform: none;
  }

  .emoji-grab {
    display: block;
    width: 38px;
    height: 4px;
    margin: 2px auto 6px;
    flex: none;
    border-radius: 999px;
    background: var(--line-strong);
  }

  .emoji-title span {
    display: none;
  }

  .emoji-tabs {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 11px 0 9px;
    overflow: visible;
  }

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

  .emoji-item {
    height: 40px;
    font-size: 21px;
  }

  .emoji-grid.is-kaomoji .emoji-item {
    height: 42px;
    font-size: 11px;
  }

  .toast-root {
    bottom: calc(82px + var(--safe-bottom));
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 26px 26px 0 0;
    animation: sheetIn 0.36s cubic-bezier(0.32, 0.72, 0, 1) both;
  }

  .modal--post {
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
    border-radius: 24px 24px 0 0;
  }

  .modal--post .modal-body--flush {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .modal--post .modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .us-hero {
    grid-template-columns: 1fr;
    padding: 26px 24px;
  }

  .us-hero-avatars {
    justify-content: center;
    margin-top: 4px;
  }

  .us-hero-avatars .avatar {
    width: 84px;
    height: 84px;
    font-size: 28px;
  }

  .us-hero-days strong {
    font-size: 48px;
  }

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

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .shell {
    padding: 0 14px;
  }

  .topbar {
    margin: 0 -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .auth-art {
    min-height: 196px;
    height: 196px;
    padding: 20px;
    border-radius: 0 0 26px 26px;
  }

  .auth-panel {
    min-height: calc(100dvh - 196px);
    padding: 24px 18px 36px;
  }

  .art-quote h1 {
    font-size: 30px;
  }

  .auth-heading h2 {
    font-size: 28px;
  }

  .main {
    padding-top: 20px;
  }

  .feed-head h1 {
    font-size: 29px;
  }

  .feed-sub {
    font-size: 11.5px;
  }

  .composer {
    padding: 16px;
    border-radius: 20px;
  }

  .composer-top {
    gap: 10px;
  }

  .composer-avatar {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .composer-text {
    min-height: 44px;
    font-size: 14.5px;
    padding-top: 5px;
  }

  .composer-moods {
    margin-left: 0;
    margin-top: 11px;
  }

  .composer-previews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 0;
  }

  .composer-foot {
    flex-wrap: wrap;
    gap: 8px;
  }

  .composer-submit {
    width: 100%;
    justify-content: flex-end;
  }

  .char-count {
    margin-right: auto;
    padding-left: 4px;
  }

  .btn-publish {
    height: 40px;
    min-height: 40px;
    padding: 0 18px;
  }

  .composer-hint {
    display: none;
  }

  .post-card {
    padding: 17px;
    border-radius: 20px;
  }

  .post-content {
    font-size: 14.5px;
    line-height: 1.85;
  }

  .post-images {
    border-radius: 14px;
  }

  .post-images[data-count="3"] {
    grid-template-rows: repeat(2, minmax(0, 118px));
  }

  .post-images[data-count="1"] .post-image {
    max-height: 480px;
  }

  .post-footer {
    margin-top: 12px;
    padding-top: 9px;
  }

  .mood-pill {
    display: none;
  }

  .empty-state {
    padding: 44px 18px 38px;
  }

  .us-hero {
    padding: 22px 20px;
    border-radius: 24px;
  }

  .us-hero h2 {
    font-size: 23px;
  }

  .us-hero-days strong {
    font-size: 44px;
  }

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

  .invite-card,
  .info-card {
    padding: 20px;
  }

  .invite-row {
    flex-wrap: wrap;
  }

  .invite-url {
    flex-basis: 100%;
  }

  .invite-row .btn {
    margin-left: auto;
  }

  .modal-head {
    padding: 15px 18px;
  }

  .modal-body {
    padding: 18px;
  }

  .detail-post {
    padding: 18px;
  }

  .comments-head {
    padding: 15px 18px 10px;
  }

  .comments-list {
    padding: 4px 12px 18px;
  }

  .comment-form {
    padding: 11px 14px calc(11px + var(--safe-bottom));
  }

  .settings-fields {
    gap: 12px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 520px) {
  .composer-moods {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .composer-location {
    margin-left: 0;
  }
}

@media (max-width: 390px) {
  .filter-chip {
    padding: 0 10px;
  }

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

  .post-time {
    display: none;
  }

  .composer-moods .mood-label {
    display: none;
  }

  .auth-tabs {
    margin-bottom: 18px;
  }
}

/* ------------------------------------------------------------------
   notifications
   ------------------------------------------------------------------ */

.notify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 2px 7px rgba(180, 95, 72, 0.32);
}

.notify-badge[hidden] {
  display: none !important;
}

.notify-top-btn {
  position: relative;
}

.notify-badge--top {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  margin: 0;
  padding: 0 4px;
  font-size: 9px;
  box-shadow: 0 0 0 2px var(--paper);
}

.notify-scrim {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(45, 33, 28, 0.22);
  backdrop-filter: blur(2px);
}

.notify-panel {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 310;
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100vw - 44px));
  max-height: calc(100dvh - 44px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(52, 36, 28, 0.24);
}

.notify-grab {
  display: none;
}

.notify-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.notify-head .eyebrow {
  margin-bottom: 3px;
}

.notify-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.notify-head-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 3px;
}

.notify-read-all {
  padding: 5px 3px;
  font-size: 11.5px;
  color: var(--accent);
  white-space: nowrap;
}

.notify-read-all:disabled {
  color: var(--faint);
  cursor: default;
}

.notify-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.notify-close:hover {
  background: var(--surface-warm);
  color: var(--ink);
}

.notify-close [data-icon],
.notify-close svg {
  width: 16px;
  height: 16px;
}

.notify-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px 0;
}

.notify-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s ease;
}

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

.notify-item:hover {
  background: rgba(180, 95, 72, 0.045);
}

.notify-item.is-unread {
  background: rgba(180, 95, 72, 0.065);
}

.notify-avatar {
  flex: 0 0 auto;
}

.notify-copy {
  flex: 1;
  min-width: 0;
}

.notify-line {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.notify-line strong {
  font-weight: 650;
}

.notify-preview {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notify-time {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10.5px;
}

.notify-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.notify-empty {
  padding: 44px 24px 52px;
  text-align: center;
  color: var(--muted);
}

.notify-empty span[data-icon],
.notify-empty svg {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 13px;
  color: var(--faint);
}

.notify-empty strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.notify-empty p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .notify-scrim {
    background: rgba(45, 33, 28, 0.4);
  }

  .notify-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 82dvh;
    padding-bottom: env(safe-area-inset-bottom);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .notify-grab {
    display: block;
    width: 38px;
    height: 4px;
    margin: 9px auto 0;
    border-radius: 99px;
    background: var(--line);
  }

  .notify-head {
    padding: 10px 20px 14px;
  }

  .notify-head h2 {
    font-size: 24px;
  }

  .notify-item {
    padding: 14px 20px;
  }

  .notify-empty {
    padding-bottom: calc(52px + env(safe-area-inset-bottom));
  }
}

/* ------------------------------------------------------------------
   little shared rituals
   ------------------------------------------------------------------ */

.daily-card {
  position: relative;
  margin-bottom: 18px;
  padding: 20px 22px 18px;
  overflow: hidden;
  border: 1px solid rgba(191, 90, 69, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(217, 145, 127, 0.16), transparent 70%),
    linear-gradient(145deg, #fffaf4, #fbf1e8);
  box-shadow: var(--shadow-sm);
}

.daily-card::after {
  content: "“";
  position: absolute;
  top: -22px;
  right: 18px;
  color: rgba(191, 90, 69, 0.09);
  font-family: var(--serif);
  font-size: 110px;
  line-height: 1;
  pointer-events: none;
}

.daily-head,
.daily-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.daily-date {
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.daily-question {
  position: relative;
  z-index: 1;
  margin: 7px 0 14px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.daily-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-answer {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.72);
}

.daily-answer.is-empty {
  border-style: dashed;
  background: rgba(255, 253, 249, 0.38);
}

.daily-answer.is-locked {
  border-color: rgba(191, 90, 69, 0.18);
  background: var(--accent-faint);
}

.daily-answer-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.daily-answer-head .avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.daily-answer-head time {
  margin-left: auto;
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 400;
}

.daily-avatar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9px;
}

.daily-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10px;
}

.daily-answer p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.daily-answer.is-empty p {
  color: var(--faint);
  font-size: 11.5px;
}

.daily-form {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.daily-input {
  width: 100%;
  min-height: 42px;
  max-height: 150px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  resize: vertical;
  background: rgba(255, 253, 249, 0.7);
  font-size: 12.5px;
  line-height: 1.6;
}

.daily-input:focus {
  border-color: rgba(191, 90, 69, 0.4);
  box-shadow: 0 0 0 3px rgba(191, 90, 69, 0.06);
}

.daily-form-foot {
  margin-top: 7px;
}

.daily-hint {
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.btn-daily {
  flex: none;
  min-height: 32px;
  padding: 0 14px;
  font-size: 11px;
}

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

.ritual-grid--capsule {
  grid-template-columns: 1fr;
}

.ritual-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.memory-card {
  background:
    radial-gradient(300px 140px at 100% 0%, rgba(217, 145, 127, 0.14), transparent 70%),
    var(--surface);
}

.ritual-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.ritual-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-faint);
  color: var(--accent);
}

.ritual-icon svg {
  width: 19px;
  height: 19px;
}

.ritual-head h3 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.ritual-head .mini-label {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.ritual-head-action {
  min-height: 32px;
  margin-left: auto;
  padding: 0 11px;
  font-size: 10.5px;
}

.ritual-copy {
  margin: 11px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.checklist-progress {
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.checklist-add {
  display: flex;
  gap: 7px;
  margin-bottom: 4px;
}

.checklist-add input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-2);
  font-size: 12px;
}

.checklist-add input:focus {
  border-color: rgba(191, 90, 69, 0.4);
  background: var(--surface);
}

.checklist-add .btn {
  min-height: 36px;
  padding: 0 13px;
  font-size: 10.5px;
}

.checklist-body {
  max-height: 238px;
  margin: 6px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-top: 1px solid var(--line);
}

.check-item:first-child {
  border-top: 0;
}

.check-toggle {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #fff;
}

.check-toggle svg {
  width: 12px;
  height: 12px;
}

.check-item.is-done .check-toggle {
  border-color: var(--sage);
  background: var(--sage);
}

.check-text {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.check-item.is-done .check-text {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: rgba(141, 127, 117, 0.55);
}

.check-by {
  flex: none;
  color: var(--sage);
  font-size: 9.5px;
}

.check-delete {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--faint);
  opacity: 0.45;
}

.check-delete svg {
  width: 12px;
  height: 12px;
}

.check-delete:hover,
.check-delete:focus-visible {
  opacity: 1;
  background: var(--surface-3);
}

.ritual-empty {
  padding: 14px 2px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.7;
  list-style: none;
}

.capsules-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.capsule {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.capsule.is-locked {
  border-color: rgba(191, 90, 69, 0.13);
  background: linear-gradient(150deg, #f4ece2, #ede2d5);
}

.capsule-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.capsule-seal {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-faint);
  color: var(--accent);
}

.capsule-seal svg {
  width: 16px;
  height: 16px;
}

.capsule.is-locked .capsule-seal {
  background: rgba(255, 253, 249, 0.55);
  color: var(--gold);
}

.capsule-meta {
  min-width: 0;
}

.capsule-meta h4 {
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.capsule-delete {
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 8px;
  color: var(--faint);
}

.capsule-delete svg {
  width: 13px;
  height: 13px;
}

.capsule-delete:hover {
  background: rgba(191, 90, 69, 0.08);
  color: var(--accent-deep);
}

.capsule-content {
  margin: 10px 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.capsule.is-locked .capsule-content {
  color: var(--muted);
  font-style: italic;
}

.capsule-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(43, 36, 32, 0.07);
  color: var(--faint);
  font-size: 9.5px;
}

.mood-card {
  padding: 16px 18px 18px;
}

.mood-head {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mood-month-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mood-month-wrap strong {
  min-width: 82px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.mood-step {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.mood-step svg {
  width: 15px;
  height: 15px;
}

.mood-legend {
  color: var(--faint);
  font-size: 9.5px;
}

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

.mood-weekdays {
  margin: 14px 0 6px;
  color: var(--faint);
  font-size: 9.5px;
  text-align: center;
}

.mood-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--faint);
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mood-day:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(43, 36, 32, 0.08);
}

.mood-day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mood-day.is-blank {
  background: transparent;
  cursor: default;
}

.mood-day.has-entry {
  font-weight: 600;
}

.mood-day.has-post {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.mood-day.is-happy {
  background: #f2dfb7;
  color: #7d541d;
}

.mood-day.is-miss {
  background: #eed5cf;
  color: #93412f;
}

.mood-day.is-daily {
  background: #dce6d4;
  color: #4d6247;
}

.mood-day.is-tired {
  background: #d9e2e8;
  color: #4d6170;
}

.mood-day.is-memory {
  background: #e8d9ec;
  color: #684776;
}

.mood-day.is-today {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent);
}

.mood-day.is-future {
  opacity: 0.38;
  cursor: default;
}

.mood-day-num {
  position: relative;
  z-index: 1;
}

.mood-day-bars {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  display: flex;
  gap: 2px;
}

.mood-bar {
  flex: 1;
  min-width: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(43, 36, 32, 0.12);
}

.mood-bar.is-partner {
  opacity: 0.72;
}

.mood-bar.is-happy { background: #c9973d; }
.mood-bar.is-miss { background: #c06a54; }
.mood-bar.is-daily { background: #7d9970; }
.mood-bar.is-tired { background: #7f9bad; }
.mood-bar.is-memory { background: #a27bb2; }

.mood-today {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.68);
}

.mood-today-label {
  margin: 0;
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.mood-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mood-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.mood-quick-btn:hover {
  border-color: rgba(180, 95, 72, 0.4);
}

.mood-quick-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff9f1;
}

.mood-owner-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
}

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

.mood-owner-legend .mood-bar {
  width: 14px;
  flex: none;
  background: rgba(43, 36, 32, 0.16);
}

.mood-owner-legend .mood-bar.is-me {
  background: var(--accent);
}

.mood-owner-legend .mood-bar.is-partner {
  background: #8b9b7f;
}

.mood-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
}

.mood-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mood-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--surface-2);
}

.mood-swatch.is-happy { background: #f2dfb7; }
.mood-swatch.is-miss { background: #eed5cf; }
.mood-swatch.is-daily { background: #dce6d4; }
.mood-swatch.is-tired { background: #d9e2e8; }
.mood-swatch.is-memory { background: #e8d9ec; }

/* decision wheel / memory map ---------------------------------------- */

.wheel-card {
  padding: 18px;
}

.wheel-count {
  margin-left: auto;
  padding-top: 3px;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wheel-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 16px;
}

.wheel-stage {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto;
}

.wheel-disc {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 249, 0.9);
  box-shadow: inset 0 0 0 5px rgba(255, 253, 249, 0.4), 0 10px 26px rgba(90, 50, 39, 0.14);
  transition: transform 2.4s cubic-bezier(0.16, 0.72, 0.22, 1);
}

.wheel-disc::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.7);
}

.wheel-disc.is-empty {
  opacity: 0.7;
}

.wheel-pointer {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 15px solid var(--accent-deep);
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 3px rgba(90, 50, 39, 0.2));
}

.wheel-spin {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(180, 95, 72, 0.16);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-deep);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px rgba(90, 50, 39, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.wheel-spin svg {
  width: 17px;
  height: 17px;
}

.wheel-spin:not(:disabled):hover {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 8px 20px rgba(90, 50, 39, 0.22);
}

.wheel-spin:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wheel-spin:disabled {
  cursor: default;
  opacity: 0.55;
}

.wheel-spin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(180, 95, 72, 0.28);
  border-top-color: var(--accent);
  animation: wheelSpin 0.8s linear infinite;
}

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

.wheel-side {
  min-width: 0;
}

.wheel-result {
  min-height: 38px;
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
}

.wheel-result.is-result {
  color: var(--accent-deep);
}

.wheel-add {
  display: flex;
  gap: 7px;
}

.wheel-add input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 11.5px;
}

.wheel-add input:focus {
  outline: none;
  border-color: rgba(180, 95, 72, 0.5);
  box-shadow: 0 0 0 3px rgba(180, 95, 72, 0.09);
}

.wheel-add .btn {
  flex: none;
  min-height: 34px;
  padding: 0 13px;
  font-size: 11px;
}

.wheel-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: 118px;
  margin-top: 10px;
  overflow: auto;
}

.wheel-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 5px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.62);
  font-size: 10.5px;
}

.wheel-option-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}

.wheel-option-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-option-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--faint);
  cursor: pointer;
}

.wheel-option-remove:hover {
  background: var(--accent-faint);
  color: var(--accent-deep);
}

.wheel-option-remove svg {
  width: 12px;
  height: 12px;
}

.wheel-hint {
  margin: 9px 0 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.6;
}

.memory-map-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 16px;
  padding: 18px;
}

.memory-map-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.memory-map-count {
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.memory-map-hint {
  color: var(--faint);
  font-size: 9px;
}

.memory-map {
  position: relative;
  min-width: 0;
  aspect-ratio: 6 / 5;
  border: 1px solid rgba(180, 95, 72, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(255, 253, 249, 0.9), transparent 70%),
    linear-gradient(160deg, #f7efe4, #f1e5d7);
  overflow: hidden;
}

.memory-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.memory-map-land {
  fill: rgba(125, 153, 112, 0.22);
  stroke: rgba(93, 118, 86, 0.5);
  stroke-width: 1.1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.memory-map-pins {
  position: absolute;
  inset: 0;
}

.memory-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.memory-pin-dot {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #fffdf9;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(90, 50, 39, 0.24);
  transition: transform 0.16s ease;
}

.memory-pin:hover .memory-pin-dot,
.memory-pin:focus-visible .memory-pin-dot {
  transform: scale(1.3);
}

.memory-pin:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 50%;
}

.memory-pin[data-mood="开心"] .memory-pin-dot { background: #c9973d; }
.memory-pin[data-mood="想你"] .memory-pin-dot { background: #c06a54; }
.memory-pin[data-mood="日常"] .memory-pin-dot { background: #7d9970; }
.memory-pin[data-mood="有点累"] .memory-pin-dot { background: #7f9bad; }
.memory-pin[data-mood="纪念"] .memory-pin-dot { background: #a27bb2; }

.memory-pin-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 16px;
  max-width: 140px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.memory-pin:hover .memory-pin-label,
.memory-pin:focus-visible .memory-pin-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.memory-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(247, 239, 228, 0.62);
}

.memory-map-empty > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}

.memory-map-empty > span svg {
  width: 15px;
  height: 15px;
}

.memory-map-empty strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.memory-map-empty p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.6;
}

.memory-map-empty[hidden] {
  display: none;
}

.memory-map-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  max-height: 250px;
  padding-right: 2px;
  overflow: auto;
}

.memory-map-list[hidden] {
  display: none;
}

.memory-map-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.memory-map-row:hover,
.memory-map-row:focus-visible {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.7);
  outline: none;
}

.memory-map-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--accent);
  overflow: hidden;
}

.memory-map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-map-thumb svg {
  width: 15px;
  height: 15px;
}

.memory-map-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.memory-map-row-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-map-row-copy span {
  color: var(--faint);
  font-size: 9px;
}

.modal--capsule {
  width: min(540px, 100%);
}

.modal--mood {
  width: min(460px, 100%);
}

.mood-picker-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.mood-pair-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.mood-pair-preview > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.mood-pair-preview span {
  color: var(--faint);
  font-size: 9.5px;
}

.mood-pair-preview strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.mood-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}

.mood-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 62px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.mood-choice > span:first-child {
  font-size: 18px;
  line-height: 1;
}

.mood-choice.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}

.capsule-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px 22px;
  overflow-y: auto;
}

.form-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.form-textarea,
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.form-textarea {
  min-height: 132px;
  resize: vertical;
}

.form-textarea:focus,
.form-input:focus {
  border-color: rgba(191, 90, 69, 0.4);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(191, 90, 69, 0.06);
}

.form-hint {
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 620px) {
  .daily-card {
    padding: 17px 16px 15px;
  }

  .daily-question {
    font-size: 18px;
  }

  .daily-answers {
    grid-template-columns: 1fr;
  }

  .daily-form-foot {
    align-items: flex-end;
  }

  .daily-hint {
    max-width: 210px;
  }

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

  .ritual-card {
    padding: 16px;
  }

  .wheel-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wheel-stage {
    width: 180px;
    height: 180px;
  }

  .wheel-disc {
    width: 160px;
    height: 160px;
  }

  .wheel-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 104px;
  }

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

  .memory-map-list {
    max-height: 180px;
  }

  .ritual-head-action {
    padding: 0 9px;
  }

  .capsules-body {
    grid-template-columns: 1fr;
  }

  .mood-card {
    padding: 14px 12px 15px;
  }

  .mood-head .mood-legend {
    display: none;
  }

  .mood-today {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding: 9px 10px;
  }

  .mood-today-label {
    width: 100%;
  }

  .mood-quick {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }

  .mood-quick-btn {
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    font-size: 9px;
  }

  .mood-choice-grid {
    gap: 4px;
  }

  .mood-choice {
    min-height: 58px;
    padding: 7px 2px;
    font-size: 9px;
  }

  .mood-day {
    min-height: 30px;
  }

  .mood-legend-row {
    gap: 3px 8px;
  }
}

@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;
  }
}
