:root {
  color-scheme: light;
  --bg: #efe6d8;
  --bg-shadow: #dccfbf;
  --surface: rgba(251, 248, 242, 0.9);
  --surface-strong: rgba(255, 252, 247, 0.96);
  --surface-soft: rgba(243, 234, 222, 0.88);
  --text: #231815;
  --muted: #78675c;
  --line: rgba(82, 58, 44, 0.12);
  --accent: #de765f;
  --accent-deep: #a54b3c;
  --accent-soft: #f8d5ca;
  --ink-soft: #fff7f1;
  --press-overlay: rgba(165, 75, 60, 0.08);
  --press-shadow: 0 10px 18px rgba(93, 68, 54, 0.12);
  --success: #2f7a55;
  --error: #b44343;
  --shadow-lg: 0 28px 60px rgba(93, 68, 54, 0.17);
  --shadow-md: 0 18px 30px rgba(93, 68, 54, 0.1);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SUIT Variable", "Pretendard Variable", "Pretendard", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 242, 223, 0.8), transparent 22%),
    radial-gradient(circle at bottom right, rgba(229, 183, 166, 0.35), transparent 22%),
    linear-gradient(180deg, #f7efe4 0%, var(--bg) 55%, var(--bg-shadow) 100%);
}

body.is-locked {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 88%);
}

.page-shell {
  width: min(calc(100% - 1rem), 1160px);
  margin: 0 auto;
  padding: max(0.8rem, env(safe-area-inset-top)) 0 calc(1rem + env(safe-area-inset-bottom));
}

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

.auth-shell,
.app-header,
.app-frame,
.footer-caption {
  opacity: 0;
  transform: translateY(18px);
}

.auth-panel,
.app-frame,
.hero-card,
.shortcut-card,
.dashboard-panel,
.notice-card,
.notice-list-item,
.anniversary-card,
.gallery-card,
.mini-memory-card,
.tab-bar,
.header-action {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.hero-kicker,
.section-label,
.notice-badge,
.memory-meta,
.app-header-label,
.shortcut-tag {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel {
  min-height: min(100dvh - 1.6rem, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem;
  border-radius: 40px;
  background:
    linear-gradient(145deg, rgba(255, 251, 245, 0.92), rgba(244, 232, 220, 0.92)),
    radial-gradient(circle at top right, rgba(222, 118, 95, 0.22), transparent 24%);
  box-shadow: var(--shadow-lg);
}

.hero-kicker,
.section-label,
.app-header-label,
.shortcut-tag {
  margin-bottom: 0.85rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.auth-panel h1,
.hero-card h1 {
  font-size: clamp(2.5rem, 10vw, 4.6rem);
  line-height: 0.92;
}

.hero-copy,
.auth-help p,
.notice-body,
.notice-list-copy,
.anniversary-body p,
.memory-copy,
.footer-caption,
.shortcut-card p,
.spotlight-card p,
.mini-memory-body span {
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  margin-top: 1.4rem;
}

.auth-form-secondary {
  margin-top: 0.8rem;
}

.input-label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.text-input {
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(82, 58, 44, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

.text-input:focus {
  outline: 2px solid rgba(222, 118, 95, 0.24);
  outline-offset: 1px;
}

.button,
.header-action,
.notice-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 90ms ease, background 90ms ease, opacity 90ms ease, box-shadow 90ms ease,
    filter 90ms ease;
  -webkit-tap-highlight-color: transparent;
}

.shortcut-card,
.tab-button,
.notice-entry {
  transition: transform 90ms ease, background 90ms ease, box-shadow 90ms ease, filter 90ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover,
.header-action:hover,
.shortcut-card:hover,
.tab-button:hover,
.notice-entry:hover,
.notice-detail-close:hover {
  transform: translateY(-2px);
  box-shadow: var(--press-shadow);
}

.button {
  border: 0;
}

.button-primary {
  color: var(--ink-soft);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.button:active,
.header-action:active,
.shortcut-card:active,
.tab-button:active,
.notice-entry:active,
.notice-detail-close:active {
  transform: translateY(1px) scale(0.992);
  box-shadow: inset 0 0 0 999px var(--press-overlay);
  filter: saturate(0.96);
}

.button:focus-visible,
.header-action:focus-visible,
.shortcut-card:focus-visible,
.tab-button:focus-visible,
.notice-entry:focus-visible,
.notice-detail-close:focus-visible {
  outline: 2px solid rgba(165, 75, 60, 0.28);
  outline-offset: 3px;
}

.auth-status {
  min-height: 1.6rem;
  margin: 1rem 0 0;
  font-weight: 700;
  color: var(--muted);
}

.auth-status[data-state="success"] {
  color: var(--success);
}

.auth-status[data-state="error"] {
  color: var(--error);
}

.textarea-input {
  min-height: 120px;
  resize: vertical;
}

.days-view-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.7);
  box-shadow: var(--shadow-md);
}

.days-view-button,
.calendar-nav {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 90ms ease, background 90ms ease, box-shadow 90ms ease, color 90ms ease;
}

.days-view-button.is-active,
.calendar-nav {
  color: var(--text);
}

.days-view-button.is-active {
  background: linear-gradient(135deg, rgba(222, 118, 95, 0.18), rgba(165, 75, 60, 0.12));
  box-shadow: var(--press-shadow);
}

.days-panel {
  display: grid;
  gap: 1rem;
}

.calendar-shell,
.calendar-day-sheet,
.calendar-day-item,
.calendar-day-empty,
.anniversary-editor-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.calendar-shell,
.calendar-day-sheet,
.anniversary-editor-dialog {
  padding: 1rem;
}

.calendar-head,
.calendar-day-sheet-head,
.anniversary-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.calendar-head-copy h3,
.calendar-day-sheet-head h3,
.anniversary-editor-head h2 {
  margin-bottom: 0;
}

.calendar-month-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-month-trigger:hover h3,
.calendar-month-trigger:focus-visible h3 {
  color: var(--accent-deep);
}

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

.calendar-weekdays {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.calendar-weekdays .is-sunday {
  color: #e16f7d;
}

.calendar-weekdays .is-saturday {
  color: #e7bcc8;
}

.calendar-grid {
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.calendar-cell {
  min-height: 4.3rem;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  padding: 0.38rem 0.14rem 0.3rem;
  border: 1px solid rgba(82, 58, 44, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  transition: transform 90ms ease, background 90ms ease, box-shadow 90ms ease, border-color 90ms ease;
}

.calendar-cell:hover,
.days-view-button:hover,
.calendar-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--press-shadow);
}

.calendar-cell:active,
.days-view-button:active,
.calendar-nav:active {
  transform: translateY(1px) scale(0.992);
}

.calendar-cell.is-outside {
  opacity: 0.42;
}

.calendar-cell.is-today {
  border-color: rgba(222, 118, 95, 0.4);
}

.calendar-cell.is-selected {
  background: rgba(250, 236, 232, 0.9);
  border-color: rgba(165, 75, 60, 0.22);
}

.calendar-cell-date-wrap {
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 2.2rem;
}

.calendar-cell-date {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
}

.calendar-cell.is-selected .calendar-cell-date {
  background: linear-gradient(135deg, #f08d96, #df6e7b);
  color: #fffaf8;
  box-shadow: 0 10px 18px rgba(223, 110, 123, 0.28);
}

.calendar-cell.is-today:not(.is-selected) .calendar-cell-date {
  background: rgba(222, 118, 95, 0.12);
  color: var(--accent-deep);
}

.calendar-cell-dots {
  width: 100%;
  display: grid;
  gap: 0.16rem;
  min-height: 1.05rem;
  padding: 0 0.08rem;
}

.calendar-event-segment {
  display: block;
  height: 0.42rem;
  background: linear-gradient(90deg, #f2a1ab, #ea8793);
}

.calendar-event-segment.is-single {
  border-radius: 999px;
}

.calendar-event-segment.is-start {
  border-radius: 999px 0 0 999px;
}

.calendar-event-segment.is-middle {
  border-radius: 0;
}

.calendar-event-segment.is-end {
  border-radius: 0 999px 999px 0;
}

.calendar-cell.is-sunday .calendar-cell-date,
.calendar-cell.is-sunday:not(.is-selected) {
  color: #df6679;
}

.calendar-cell.is-saturday .calendar-cell-date,
.calendar-cell.is-saturday:not(.is-selected) {
  color: #dfb7c5;
}

.calendar-cell.is-selected .calendar-cell-date {
  color: #fffaf8;
}

.calendar-day-sheet {
  display: grid;
  gap: 0.9rem;
}

.calendar-add-button {
  min-width: 110px;
}

.calendar-day-items {
  display: grid;
  gap: 0.75rem;
}

.calendar-day-item,
.calendar-day-empty {
  padding: 0.95rem 1rem;
}

.calendar-day-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.calendar-day-item h4 {
  margin-bottom: 0.4rem;
}

.calendar-day-item p,
.calendar-day-empty p,
.anniversary-editor-date {
  margin-bottom: 0;
  color: var(--muted);
}

.anniversary-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 1rem;
}

.anniversary-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 16, 13, 0.42);
}

.anniversary-editor-dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(88dvh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 28px 28px 22px 22px;
  overflow: hidden;
}

.calendar-jump-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.calendar-jump-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 16, 13, 0.38);
}

.calendar-jump-dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
}

.detail-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.toast-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 0 1rem;
}

.toast-message {
  position: relative;
  width: min(100%, 430px);
  max-width: min(100%, 420px);
  padding: 1rem 1.1rem 1rem 3.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(145deg, rgba(53, 39, 31, 0.96), rgba(28, 20, 17, 0.92));
  color: #fffaf7;
  box-shadow:
    0 22px 40px rgba(21, 14, 12, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
  filter: saturate(0.92);
}

.toast-message::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2) 35%, transparent 36%),
    linear-gradient(145deg, #f6b0a8, #df7b6b);
  box-shadow: 0 0 0 6px rgba(232, 143, 129, 0.14);
}

.toast-message::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%);
}

.toast-message.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.toast-message[data-state="error"] {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(117, 32, 43, 0.96), rgba(87, 23, 31, 0.94));
}

.toast-message[data-state="error"]::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.18) 35%, transparent 36%),
    linear-gradient(145deg, #ffb0b9, #db596d);
  box-shadow: 0 0 0 6px rgba(232, 111, 132, 0.12);
}

.toast-message[data-state="success"] {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(119, 61, 54, 0.96), rgba(84, 43, 39, 0.94));
}

@media (max-width: 430px) {
  .toast-layer {
    padding: 0 0.85rem;
  }

  .toast-message {
    padding: 0.92rem 0.95rem 0.92rem 2.95rem;
    border-radius: 20px;
    font-size: 0.9rem;
  }

  .toast-message::before {
    left: 0.9rem;
    width: 1.3rem;
    height: 1.3rem;
  }
}

@media (max-width: 430px) {
  .calendar-shell,
  .calendar-day-sheet,
  .anniversary-editor-dialog,
  .calendar-jump-dialog {
    padding: 0.85rem;
  }

  .calendar-grid {
    gap: 0.28rem;
  }

  .calendar-cell {
    min-height: 3.85rem;
    padding: 0.28rem 0.08rem 0.24rem;
    border-radius: 14px;
  }

  .calendar-cell-date-wrap {
    min-height: 1.9rem;
  }

  .calendar-cell-date {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }

  .calendar-event-segment {
    height: 0.34rem;
  }
}

.anniversary-editor-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  overflow: auto;
  padding-right: 0.1rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 600;
}

.auth-help {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.auth-help p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding: 0.4rem 0.2rem;
}

.app-header-title {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.header-action {
  border: 1px solid rgba(82, 58, 44, 0.14);
  background: rgba(255, 251, 245, 0.72);
  color: var(--text);
}

.app-frame {
  min-height: min(100dvh - 6rem, 980px);
  padding: 1rem;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(253, 249, 242, 0.86), rgba(241, 232, 220, 0.95)),
    radial-gradient(circle at top right, rgba(222, 118, 95, 0.18), transparent 18%);
  box-shadow: var(--shadow-lg);
}

.view-stack {
  min-height: calc(100dvh - 13rem);
}

.app-view {
  display: none;
  animation: view-in 220ms ease;
}

.app-view.is-active {
  display: block;
}

.hero-card {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 249, 241, 0.95), rgba(252, 228, 220, 0.92)),
    radial-gradient(circle at bottom right, rgba(222, 118, 95, 0.2), transparent 22%);
}

.hero-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hero-card h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
}

#dashboard-headline {
  max-width: none;
  margin-bottom: 0.8rem;
  font-family: "Comic Sans MS", "Trebuchet MS", "Marker Felt", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(2rem, 8vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: #8f3d34;
  text-shadow: 0 8px 22px rgba(165, 75, 60, 0.14);
}

@media (max-width: 430px) {
  #dashboard-headline {
    font-size: clamp(1.55rem, 6.4vw, 2.2rem);
    letter-spacing: -0.04em;
  }
}

#dashboard-copy {
  white-space: pre-line;
}

.dday-value {
  color: #c65452;
}

.dday-heart {
  display: inline-block;
  margin-left: 0.16em;
  color: #e06b78;
  transform: translateY(-0.02em) rotate(-8deg);
}

.hero-avatar-stack {
  display: flex;
  align-items: center;
  padding-top: 0.25rem;
}

.hero-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 52px;
  height: 52px;
  margin-left: -10px;
  border: 3px solid rgba(255, 247, 241, 0.95);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(222, 118, 95, 0.24), rgba(165, 75, 60, 0.16));
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.hero-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.stat-pill {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.stat-pill-dday {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(222, 118, 95, 0.2), rgba(255, 239, 230, 0.94)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(165, 75, 60, 0.16);
}

.stat-pill-dday::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -12px;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62), transparent 70%);
}

.stat-pill strong {
  font-size: 1.05rem;
}

.stat-pill-dday strong {
  position: relative;
  z-index: 1;
  font-family: "Comic Sans MS", "Trebuchet MS", "Marker Felt", "Apple SD Gothic Neo", sans-serif;
  font-size: 1.35rem;
  color: #a94748;
  letter-spacing: -0.02em;
}

.stat-pill-dday span {
  position: relative;
  z-index: 1;
  color: var(--accent-deep);
}

.stat-pill span {
  font-size: 0.73rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shortcut-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.95rem;
}

.couple-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.couple-strip-card {
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.76);
  box-shadow: var(--shadow-md);
}

.couple-strip-card-accent {
  background: linear-gradient(145deg, rgba(255, 240, 234, 0.9), rgba(246, 225, 214, 0.92));
}

.couple-strip-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.couple-strip-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.couple-strip-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.shortcut-card,
.dashboard-panel {
  width: 100%;
  padding: 1.05rem;
  border-radius: 24px;
  background: var(--surface);
  text-align: left;
}

.shortcut-card {
  display: block;
  border: 1px solid var(--line);
  cursor: pointer;
}

.shortcut-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.shortcut-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(222, 118, 95, 0.2), rgba(165, 75, 60, 0.1));
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.shortcut-card p {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 0.95rem;
}

.section-heading.compact {
  margin-bottom: 0.7rem;
}

.section-heading h2,
.section-heading h3 {
  margin-bottom: 0;
}

.spotlight-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(247, 235, 226, 0.92));
}

.spotlight-card strong,
.anniversary-top span,
.notice-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(222, 118, 95, 0.12);
  color: var(--accent-deep);
  font-weight: 800;
}

.spotlight-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

.notice-card,
.notice-list-item,
.anniversary-card,
.gallery-card {
  background: var(--surface-strong);
}

.notice-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.notice-entry {
  display: block;
  cursor: pointer;
}

.notice-card-featured {
  background:
    linear-gradient(145deg, rgba(255, 250, 244, 0.97), rgba(248, 227, 219, 0.94));
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(222, 118, 95, 0.14);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
}

.notice-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
}

.notice-body,
.notice-list-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  white-space: pre-line;
}

.notice-body.is-collapsed,
.notice-list-copy.is-collapsed {
  -webkit-line-clamp: 2;
}

.notice-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  margin-top: 0.55rem;
  border: 1px solid rgba(165, 75, 60, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.notice-date {
  margin-top: 0.95rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.notice-list,
.anniversary-list,
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.notice-list-item {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
}

.notice-list-top,
.anniversary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.notice-list-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.notice-list-item h3,
.anniversary-body h3,
.memory-body h3 {
  margin: 0.5rem 0 0.35rem;
}

.anniversary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 24px;
}

.anniversary-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--accent-deep);
  font-weight: 800;
}

.anniversary-top p {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--accent-deep);
}

.anniversary-body p:last-child {
  margin-bottom: 0;
}

.gallery-card {
  overflow: hidden;
  border-radius: 28px;
}

.album-placeholder {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 251, 246, 0.95), rgba(246, 234, 225, 0.92));
  box-shadow: var(--shadow-md);
}

.album-placeholder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(222, 118, 95, 0.14);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-placeholder h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.album-placeholder p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.memory-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
}

.memory-body {
  padding: 1rem;
}

.memory-meta {
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.memory-copy {
  margin-bottom: 0;
}

.tab-bar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.7rem;
  border-radius: 26px;
  background: rgba(252, 248, 242, 0.88);
}

.tab-button {
  display: grid;
  gap: 0.22rem;
  padding: 0.75rem 0.5rem;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.tab-button.is-active {
  background: linear-gradient(135deg, rgba(222, 118, 95, 0.18), rgba(165, 75, 60, 0.12));
  color: var(--accent-deep);
}

.tab-button.is-active:active {
  box-shadow: inset 0 0 0 999px rgba(165, 75, 60, 0.12);
}

.tab-icon-badge,
.tab-label {
  display: block;
  text-align: center;
}

.tab-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.tab-icon-svg {
  width: 18px;
  height: 18px;
}

.tab-button.is-active .tab-icon-badge {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--ink-soft);
}

.tab-label {
  font-size: 0.78rem;
}

.footer-caption {
  margin: 0.9rem 0 0;
  padding: 0 0.4rem;
  font-size: 0.88rem;
}

.notice-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 1rem;
}

.notice-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 25, 22, 0.48);
  backdrop-filter: blur(6px);
}

.notice-detail-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(100%, 760px);
  max-height: min(88vh, 860px);
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 30px 30px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 236, 227, 0.97));
  box-shadow: var(--shadow-lg);
}

.notice-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
}

.notice-detail-close {
  justify-self: end;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(165, 75, 60, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
}

#notice-detail-title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.notice-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.notice-detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(222, 118, 95, 0.12);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.notice-detail-body {
  margin-top: 1rem;
  padding: 1.15rem;
  max-height: min(52vh, 480px);
  overflow: auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.notice-detail-body p {
  margin-bottom: 0.95rem;
  color: var(--text);
  line-height: 1.78;
}

.notice-detail-body p:last-child {
  margin-bottom: 0;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 18, 0.68);
  backdrop-filter: blur(10px);
}

.image-lightbox-dialog {
  position: relative;
  display: grid;
  gap: 0.8rem;
  width: min(100%, 560px);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 250, 245, 0.18);
  box-shadow: var(--shadow-lg);
}

.image-lightbox-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.image-lightbox-caption {
  margin-bottom: 0;
  color: #fff7f1;
  font-size: 0.98rem;
  font-weight: 700;
}

.image-lightbox-caption.is-delayed-hidden {
  visibility: hidden;
  opacity: 0;
}

.image-lightbox-close {
  justify-self: end;
  min-height: 40px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7f1;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.image-lightbox-photo {
  width: 100%;
  max-height: min(72vh, 640px);
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
}

.is-hidden {
  display: none;
}

.is-ready .auth-shell,
.is-ready .app-header,
.is-ready .app-frame,
.is-ready .footer-caption {
  opacity: 1;
  transform: translateY(0);
}

.is-ready .auth-shell,
.is-ready .app-header {
  transition: opacity 320ms ease, transform 320ms ease;
}

.is-ready .app-frame {
  transition: opacity 320ms ease 100ms, transform 320ms ease 100ms;
}

.is-ready .footer-caption {
  transition: opacity 320ms ease 180ms, transform 320ms ease 180ms;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .page-shell {
    width: min(calc(100% - 2rem), 1160px);
    padding-top: 1.4rem;
  }

  .auth-panel,
  .app-frame {
    padding: 1.6rem;
  }

  .input-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

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

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

  .notice-list,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
