:root {
  --ink: #1C2426;
  --ink-soft: #2A3436;
  --parchment: #EDE6D6;
  --parchment-dim: #B9B2A2;
  --amber: #D4A24C;
  --amber-dim: #8C7038;
  --danger: #B85C4A;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: 'Public Sans', -apple-system, sans-serif;
  overscroll-behavior-y: none;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
.topbar {
  padding: 20px 24px 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--parchment);
}

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

.backup-btn {
  background: none;
  border: none;
  color: var(--parchment-dim);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.backup-btn:active {
  background: var(--ink-soft);
  color: var(--amber);
}

/* Resurfaced memory */
.resurface {
  margin: 8px 20px 4px;
  animation: rise 900ms ease-out;
}

.resurface.hidden {
  display: none;
}

.resurface-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin: 0 0 10px 4px;
  font-weight: 600;
}

.resurface-card {
  background: var(--ink-soft);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(212, 162, 76, 0.18);
}

.resurface-photo-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #101516;
}

.resurface-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: develop 1400ms ease-out;
}

.resurface-text {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  line-height: 1.45;
  margin: 14px 2px 6px;
  color: var(--parchment);
  animation: fadeUp 900ms ease-out 400ms both;
}

.resurface-date {
  font-size: 12px;
  color: var(--parchment-dim);
  margin: 0 2px;
}

@keyframes develop {
  0% { filter: blur(18px); opacity: 0.3; transform: scale(1.04); }
  100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .resurface-photo-wrap img,
  .resurface-text,
  .resurface {
    animation: none !important;
  }
}

/* Timeline */
.timeline-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 140px;
}

.search-input {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid rgba(237, 230, 214, 0.15);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--parchment);
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
}

.search-input:focus {
  outline: none;
  border-color: var(--amber);
}

.search-input::placeholder {
  color: var(--parchment-dim);
}

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

.moment-card {
  display: flex;
  gap: 14px;
  background: var(--ink-soft);
  border-radius: 14px;
  padding: 10px;
  align-items: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 150ms ease;
}

.moment-card:active {
  border-color: rgba(212, 162, 76, 0.3);
}

.moment-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #101516;
}

.moment-info {
  min-width: 0;
}

.moment-text {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--parchment);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.moment-date {
  font-size: 11px;
  color: var(--parchment-dim);
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 60px 30px;
}

.empty-state.hidden { display: none; }

.empty-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--parchment);
  margin: 0 0 8px;
}

.empty-sub {
  font-size: 14px;
  color: var(--parchment-dim);
  margin: 0;
  line-height: 1.5;
}

/* Capture button */
.capture-btn {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--amber);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(212, 162, 76, 0.35);
}

.capture-btn:active {
  transform: translateX(-50%) scale(0.94);
}

.capture-btn-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 19, 20, 0.92);
  display: flex;
  align-items: flex-end;
  z-index: 100;
}

.modal.hidden { display: none; }

.modal-inner {
  width: 100%;
  background: var(--ink);
  border-radius: 24px 24px 0 0;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 260ms ease-out;
}

@keyframes slideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.reflect-label {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--parchment);
  margin-bottom: 10px;
}

.reflect-input {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid rgba(237, 230, 214, 0.15);
  border-radius: 12px;
  padding: 14px;
  color: var(--parchment);
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  resize: none;
}

.reflect-input:focus {
  outline: none;
  border-color: var(--amber);
}

.reflect-input::placeholder {
  color: var(--parchment-dim);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--parchment-dim);
  border: 1px solid rgba(237, 230, 214, 0.15);
}

.btn-danger {
  color: var(--danger);
  margin-top: 16px;
  width: 100%;
}

.detail-close {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 19, 20, 0.65);
  border: none;
  color: var(--parchment);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.detail-date {
  font-size: 13px;
  color: var(--parchment-dim);
  margin: 0;
}

.modal-actions .btn-danger {
  margin-top: 0;
}

/* Backup modal */
.backup-copy {
  font-size: 14px;
  line-height: 1.55;
  color: var(--parchment-dim);
  margin: 0 0 24px;
}

.backup-section {
  padding: 18px 0;
  border-top: 1px solid rgba(237, 230, 214, 0.1);
}

.backup-section:first-of-type {
  border-top: none;
}

.backup-section-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: var(--parchment);
  margin: 0 0 6px;
}

.backup-count {
  font-size: 13px;
  color: var(--parchment-dim);
  margin: 0 0 14px;
}

.backup-sub {
  font-size: 13px;
  color: var(--parchment-dim);
  margin: 0 0 14px;
  line-height: 1.5;
}

.import-status {
  font-size: 13px;
  margin: 12px 0 0;
  color: var(--amber);
  min-height: 18px;
}

/* Photo strip (capture + detail) */
.photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.photo-strip::-webkit-scrollbar {
  display: none;
}

.photo-strip-item {
  position: relative;
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 12px;
  overflow: hidden;
  background: #101516;
}

.photo-strip-item.large {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  flex: 1 1 100%;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-strip-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 19, 20, 0.75);
  color: var(--parchment);
  border: none;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.photo-strip-add {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 12px;
  border: 1.5px dashed rgba(237, 230, 214, 0.25);
  background: none;
  color: var(--parchment-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  cursor: pointer;
}

.photo-strip-add span.plus {
  font-size: 22px;
  line-height: 1;
  color: var(--amber);
}

/* Album input */
.reflect-label-small {
  font-size: 14px;
  margin-top: 4px;
  color: var(--parchment-dim);
}

.album-input {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid rgba(237, 230, 214, 0.15);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--parchment);
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  margin-top: 6px;
}

.album-input:focus {
  outline: none;
  border-color: var(--amber);
}

.album-input::placeholder {
  color: var(--parchment-dim);
}

.album-select {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid rgba(237, 230, 214, 0.15);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--parchment);
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  margin-top: 6px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9B2A2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
}

.album-select:focus {
  outline: none;
  border-color: var(--amber);
}

.album-select option {
  background: var(--ink-soft);
  color: var(--parchment);
}

/* Album filter chips */
.album-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.album-filter::-webkit-scrollbar {
  display: none;
}

.album-filter.hidden {
  display: none;
}

.album-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--ink-soft);
  color: var(--parchment-dim);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.album-chip.active {
  background: rgba(212, 162, 76, 0.15);
  color: var(--amber);
  border-color: rgba(212, 162, 76, 0.4);
}

/* Moment card multi-photo badge */
.moment-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.moment-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(15, 19, 20, 0.8);
  color: var(--parchment);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
}

.moment-album-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--amber-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

/* Detail view mode (read-only) */
.detail-view-photos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-view-photos img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.detail-view-text {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--parchment);
  margin: 0 0 6px;
}

.detail-view-meta {
  font-size: 12px;
  color: var(--parchment-dim);
  margin: 0 0 20px;
}

#detail-edit.hidden,
#detail-view.hidden {
  display: none;
}

/* Add-moment choice sheet */
.choice-inner {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.choice-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  color: var(--parchment);
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.choice-btn:active {
  border-color: rgba(212, 162, 76, 0.35);
}

.choice-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* Title + subtitle grouped together so the icon centers against the full
   two-line block, not just the title line. */
.choice-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.choice-title {
  line-height: 1.25;
}

.choice-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--parchment-dim);
  line-height: 1.3;
}

/* No-photo placeholder (timeline thumb + resurface) */
.moment-thumb-placeholder,
.no-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-soft);
  color: var(--amber-dim);
  font-size: 22px;
}

.moment-thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
}

.no-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  font-size: 32px;
}

/* Live camera modal */
.camera-modal {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.camera-modal.hidden {
  display: none;
}

#camera-video {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

#camera-video.mirrored {
  transform: scaleX(-1);
}

.camera-topbar {
  position: absolute;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  z-index: 2;
}

.camera-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 19, 20, 0.55);
  color: var(--parchment);
  border: none;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.camera-done-btn {
  background: var(--amber);
  color: var(--ink);
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
}

.camera-done-btn.hidden {
  display: none;
}

.camera-thumbs {
  position: absolute;
  bottom: 128px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  z-index: 2;
  scrollbar-width: none;
}

.camera-thumbs::-webkit-scrollbar {
  display: none;
}

.camera-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(237, 230, 214, 0.5);
}

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

.camera-bottombar {
  position: absolute;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.camera-flip-btn {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

.camera-icon-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.shutter-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.shutter-btn:active .shutter-inner {
  transform: scale(0.82);
}

.shutter-inner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--parchment);
  transition: transform 100ms ease;
}

.shutter-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Albums screen */
.albums-screen {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.albums-screen.hidden {
  display: none;
}

.albums-screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 20px 12px;
  flex-shrink: 0;
}

.albums-screen-title {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  color: var(--parchment);
}

.albums-screen-spacer {
  width: 40px;
}

.albums-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 4px 20px 40px;
}

.album-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-soft);
  cursor: pointer;
}

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

.album-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--amber-dim);
}

.album-card-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(15, 19, 20, 0.88), rgba(15, 19, 20, 0));
}

.album-card-info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
}

.album-card-name {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  color: var(--parchment);
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card-count {
  font-size: 11px;
  color: var(--parchment-dim);
  margin: 0;
}

.album-card-edit-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 19, 20, 0.6);
  border: none;
  color: var(--parchment);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Cover picker */
.cover-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
}

.cover-picker-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.cover-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-picker-item:active {
  border-color: var(--amber);
}

/* Account screen — full-screen, not a modal sheet: this is the app's own
   sign-up/login/account entry point, deliberately more prominent than the
   in-app header (see the sign-up mockup this is built from). */
.account-screen {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 65;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.account-screen.hidden {
  display: none;
}

.account-topbar {
  padding: calc(18px + env(safe-area-inset-top)) 20px 0;
  flex-shrink: 0;
}

.account-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-soft);
  border: none;
  color: var(--parchment-dim);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.account-wordmark {
  font-family: 'Fraunces', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: 36px;
}

.account-h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--parchment);
  text-align: center;
}

.account-subhead {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--parchment-dim);
  margin: 0 0 32px;
  text-align: center;
}

.account-field {
  margin-bottom: 16px;
}

.account-field-label {
  display: block;
  font-size: 13px;
  color: var(--parchment-dim);
  margin-bottom: 6px;
}

.account-cta {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: var(--amber);
  color: var(--ink);
  font-family: 'Public Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.account-cta:disabled {
  opacity: 0.7;
  cursor: default;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--parchment-dim);
  font-size: 13px;
}

.account-divider::before,
.account-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(237, 230, 214, 0.15);
}

.account-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(237, 230, 214, 0.15);
  background: var(--ink-soft);
  color: var(--parchment);
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.account-google-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.account-signout-cta {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(237, 230, 214, 0.15);
  background: transparent;
  color: var(--danger);
  font-family: 'Public Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.account-danger-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin-top: 20px;
  color: var(--parchment-dim);
  font-family: 'Public Sans', sans-serif;
  font-size: 13.5px;
  text-align: center;
  cursor: pointer;
}

.account-danger-cta {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: var(--danger);
  color: var(--parchment);
  font-family: 'Public Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.account-danger-cta:disabled {
  opacity: 0.7;
  cursor: default;
}

.account-delete-cancel {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

.account-secondary-link {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--parchment-dim);
}

.account-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--amber);
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

#account-signed-out.hidden,
#account-signed-in.hidden,
#account-delete-confirm.hidden,
#account-close.hidden {
  display: none;
}

.account-trust-line {
  padding: 0 28px 28px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--parchment-dim);
  max-width: 340px;
  margin: 0 auto;
  flex-shrink: 0;
}

.account-trust-line.hidden {
  display: none;
}

.account-password-wrap {
  position: relative;
}

.account-password-wrap .album-input {
  padding-right: 44px;
}

.account-password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--parchment-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-password-toggle-btn:active {
  color: var(--amber);
}

.account-password-toggle-btn.active {
  color: var(--amber);
}

.account-status {
  font-size: 13px;
  margin: 12px 0 0;
  min-height: 18px;
  color: var(--amber);
  text-align: center;
}

.account-status.error {
  color: var(--danger);
}

/* Changelog modal */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 4px;
}

.changelog-entry-date {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  color: var(--amber);
  margin: 0 0 8px;
}

.changelog-items {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-items li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--parchment);
}

/* Family screens (preview only — see held-roadmap.md, "Family sharing:
   Not started". Reuses .account-screen for the full-screen shell and
   .choice-btn / .account-h1 / .account-cta etc. from the account screen;
   these rules cover the pieces unique to the member-list / invite-code
   layout, matching the "Family Setup" and "Manage Family" mockups. */
.family-sub-screen.hidden {
  display: none;
}

.family-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-soft);
  border: none;
  color: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.family-sub-topbar {
  padding: calc(18px + env(safe-area-inset-top)) 20px 0;
  flex-shrink: 0;
}

.family-manage-topbar {
  padding: calc(18px + env(safe-area-inset-top)) 20px 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.family-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--parchment);
}

.family-manage-content {
  justify-content: flex-start;
}

.family-section-label {
  font-size: 13px;
  color: var(--parchment-dim);
  margin: 24px 0 10px;
  font-weight: 600;
}

.family-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.family-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber-dim);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.family-member-info {
  flex: 1;
  min-width: 0;
}

.family-member-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--parchment);
}

.family-role-tag {
  font-size: 11.5px;
  color: var(--parchment-dim);
  text-transform: capitalize;
}

.family-invite-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-soft);
  border: 1px dashed rgba(212, 162, 76, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.family-invite-code {
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--amber);
  letter-spacing: 0.02em;
}

.family-invite-meta {
  font-size: 11.5px;
  color: var(--parchment-dim);
}

.family-invite-share-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--parchment-dim);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.family-code-display {
  background: var(--ink-soft);
  border: 1px solid rgba(212, 162, 76, 0.35);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.family-code-big {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.family-code-expiry {
  font-size: 12.5px;
  color: var(--parchment-dim);
}

.family-action-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.family-btn-secondary {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(237, 230, 214, 0.15);
  background: transparent;
  color: var(--parchment);
  font-family: 'Public Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.family-preview-note {
  text-align: center;
  font-size: 12px;
  color: var(--parchment-dim);
  margin-top: 14px;
}
