:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --card: #ffffff;
  --accent-yellow: #ffdd2d;
  --accent-yellow-soft: #fff8d6;
  --accent-orange: #ff7a1a;
  --text: #1c1c1e;
  --muted: #6b7280;
  --border: #e8e8ed;
  --danger: #ef4444;
  --ok: #22c55e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-header: 0 2px 12px rgba(0, 0, 0, 0.06);
  /* ?? ?(.bottom-nav) ? ??? + ? ? ?? ?(?? ?? ??) */
  --photo-bottom-nav-h: 3.65rem;
  --photo-upload-fab-gap: 0.45rem;
  --photo-upload-fab-size: 3.5rem;
  --photo-upload-fab-bottom: calc(
    var(--photo-upload-fab-gap) + var(--photo-bottom-nav-h) + env(safe-area-inset-bottom, 0px)
  );
  --photo-scroll-past-fab: calc(
    var(--photo-upload-fab-bottom) + var(--photo-upload-fab-size) + 0.4rem
  );
  --photo-media-toast-bottom: calc(
    var(--photo-upload-fab-bottom) + var(--photo-upload-fab-size) + 0.45rem
  );
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

body.on-auth {
  padding-bottom: 0;
}

.hidden {
  display: none !important;
}

a {
  color: var(--accent-orange);
}

/* ???? ? ???????? ????? + ???? */
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff9e8 0%, #f4f4f6 42%, #eef0f4 100%);
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.login-hero {
  position: relative;
  flex: 0 0 auto;
  min-height: 38vh;
  max-height: 320px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(255, 140, 60, 0.18);
}

.login-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #ffe566 0%, #ffc9a3 45%, #ffb86c 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.login-hero-bg.has-photo {
  transform: scale(1.02);
}

.login-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.login-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  text-align: center;
}

.login-hero-tag {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.login-hero-hint {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  max-width: 240px;
  line-height: 1.35;
}

.login-hero-btn {
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-orange);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.login-hero-btn:active {
  transform: scale(0.98);
}

.login-hero-link {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.login-hero-link.hidden {
  display: none !important;
}

.login-card {
  flex: 1;
  max-width: 420px;
  width: 100%;
  margin: -2.25rem auto 0;
  padding: 1.35rem 1.35rem 1.5rem;
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.auth-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.auth-tabs button {
  flex: 1;
  padding: 0.55rem 0.5rem;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.auth-tabs button.active {
  background: var(--accent-yellow);
  color: var(--text);
  border-color: transparent;
}

.login-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.login-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: var(--text);
  font-size: 1rem;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15);
}

.login-remember {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0.15rem 0 1rem;
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.login-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

.btn-login-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff8c42, var(--accent-orange));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 122, 26, 0.35);
}

.btn-login-submit:active {
  transform: scale(0.99);
}

.auth-msg {
  margin: 0.85rem 0 0;
  text-align: center;
  min-height: 1.25rem;
}

.reg-phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
}

.reg-phone-row .login-input {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.btn-reg-phone-send {
  flex-shrink: 0;
  align-self: stretch;
  padding: 0 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-reg-phone-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.reg-phone-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8125rem;
  text-align: left;
  min-height: 1.1rem;
}

.reg-phone-hint.ok {
  color: var(--ok);
}

.reg-phone-hint.err {
  color: var(--danger);
}

.login-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -0.2rem 0 0.85rem;
  line-height: 1.4;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent-orange);
  cursor: pointer;
  padding: 0.25rem 0;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Calendar */
#view-calendar {
  background:
    radial-gradient(ellipse 130% 70% at 50% -8%, rgba(255, 221, 45, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 90% 45% at 100% 0%, rgba(255, 186, 108, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #fffefb 0%, #faf8f4 4.5rem, #f3f2f4 7.25rem, var(--bg) 100%);
  border-radius: 0 0 22px 22px;
  margin: 0 0 0.15rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

/* Calendar toolbar */
.cal-toolbar {
  display: flex;
  align-items: center;
  padding: calc(0.4rem - 1px) 0.75rem calc(0.32rem - 1px);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
}

.cal-month-toolbar {
  padding: 0.52rem 0.75rem 0.45rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.42) 100%);
}

.month-select {
  padding: calc(0.5rem - 1px) 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(255, 140, 60, 0.1);
}

.month-select-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  width: 100%;
  max-width: 100%;
}

.month-select-field-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
  padding-left: 0.2rem;
}

.month-select--field {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 1rem;
  padding-right: 2.35rem;
  border-radius: 14px;
  border: 1px solid #e8e8ed;
  background-color: #fafafc;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ffffff, #fafafc);
  background-repeat: no-repeat, no-repeat;
  background-position: right 0.85rem center, 0 0;
  background-size: 14px 14px, 100% 100%;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 16px rgba(255, 140, 60, 0.09);
  appearance: none;
}

#view-calendar .month-select--field {
  font-size: 1.14rem;
  border-color: rgba(232, 232, 237, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 0 rgba(255, 255, 255, 0.5) inset,
    0 6px 20px rgba(255, 140, 60, 0.1),
    0 1px 3px rgba(15, 23, 42, 0.06);
}

#view-calendar .month-select--field:focus {
  outline: none;
  border-color: rgba(255, 186, 90, 0.65);
  box-shadow:
    0 0 0 3px rgba(255, 221, 45, 0.28),
    0 6px 22px rgba(255, 140, 60, 0.12),
    0 1px 3px rgba(15, 23, 42, 0.05);
}

#view-calendar .month-select {
  font-size: 1.17rem;
}

.cal-label {
  padding: 0 0.65rem 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  flex-shrink: 0;
}

.cal-grid {
  flex: 1;
  min-height: 0;
  align-content: start;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.26rem 0.2rem;
  padding: 0.28rem 0.4rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.cal-dow {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: calc(1.15em - 1px);
  padding: calc(0.15rem - 1px) 0 calc(0.35rem - 1px);
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0.02em;
}

.cal-dow-sun {
  color: #e11d48;
}

.cal-dow-sat {
  color: #2563eb;
}

.cal-pad {
  min-height: 0;
}

.cal-cell {
  display: grid;
  /* ?? ???(.ring) ??? max-width ? ??? clamp ? ??? ??? ??? ?? ??? ? ??? ? 1? auto + ring aspect-ratio ? ?? ?? */
  grid-template-rows: auto auto;
  align-items: start;
  justify-items: stretch;
  width: 100%;
  max-width: min(55px, 14vw);
  min-width: 0;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.cal-cell .ring {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  height: auto;
  align-self: center;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #ececf1, #dfe2e8);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.05),
    0 4px 14px rgba(15, 23, 42, 0.09),
    0 1px 2px rgba(255, 255, 255, 0.85) inset;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cal-cell .ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 -12px 28px rgba(0, 0, 0, 0.12);
  opacity: 0.55;
  z-index: 1;
}

.cal-cell .ring:has(.cal-cell-video-cover)::after {
  opacity: 0.28;
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.14);
}

.cal-cell.empty .ring::after {
  opacity: 0.22;
  box-shadow: inset 0 -8px 20px rgba(0, 0, 0, 0.06);
}

.cal-cell .ring > .cal-cell-cover-static,
.cal-cell .ring > .cal-cell-video-cover {
  position: relative;
  z-index: 2;
}

.cal-cell-cover-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.cal-cell-cover-static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cal-cell-video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #45454f, #282830 55%, #1a1a22);
  overflow: hidden;
  border-radius: inherit;
}

.cal-cell-cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ?? ??? ??: ?? JPEG ???(<img>) */
.cal-cell-video-cover .cal-cell-cover-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

/* ? ????? ??: ?? ??? */
.cal-cell .day-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.72rem, 2.8vw, 0.84rem);
  line-height: calc(1em - 1px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 0 12px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 2;
}

/* ??(???) ??: ?? ??? ? ?? ?? ? ?? ??? ?? */
.cal-cell-has-cover .day-num {
  inset: auto;
  top: 5px;
  right: 5px;
  left: auto;
  bottom: auto;
  width: auto;
  min-width: 1.15rem;
  min-height: 1.15rem;
  padding: 0.14rem 0.36rem;
  border-radius: 9px;
  font-size: clamp(0.62rem, 2.4vw, 0.74rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.cal-cell.empty .ring {
  background: linear-gradient(165deg, #f4f4f7, #e8eaef);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 3px 10px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.cal-cell.empty .day-num {
  color: #b4b4be;
  text-shadow: none;
}

.cal-cell.empty.cal-cell-sun .day-num {
  color: #f87171;
}

.cal-cell.empty.cal-cell-sat .day-num {
  color: #60a5fa;
}

.cal-cell.empty.cal-cell-sun .ring {
  background: linear-gradient(180deg, #fff5f5, #ffe4e6);
  border-color: #fecdd3;
}

.cal-cell.empty.cal-cell-sat .ring {
  background: linear-gradient(180deg, #f0f7ff, #e0f2fe);
  border-color: #bfdbfe;
}

.cal-cell.cal-cell-today .ring {
  border-color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 186, 90, 0.55),
    0 0 0 3px rgba(255, 221, 45, 0.45),
    0 5px 18px rgba(255, 122, 26, 0.22),
    0 1px 2px rgba(255, 255, 255, 0.85) inset;
}

.cal-cell.cal-cell-today.empty .ring {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 186, 90, 0.4),
    0 0 0 3px rgba(255, 221, 45, 0.32),
    0 4px 14px rgba(255, 122, 26, 0.12);
}

.cal-cell.cal-cell-today:not(.empty) .day-num {
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 122, 26, 0.95),
    0 1px 4px rgba(0, 0, 0, 0.8);
}

.cal-cell.cal-cell-today.cal-cell-has-cover .day-num {
  background: linear-gradient(145deg, rgba(255, 140, 60, 0.95), rgba(255, 106, 26, 0.92));
  border-color: rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 10px rgba(255, 122, 26, 0.4);
}

.cal-cell.cal-cell-today.empty .day-num {
  color: #ea580c;
  font-weight: 900;
  text-shadow: none;
}

.cal-cell-meta {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.56rem, 2vw, 0.64rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  padding: 0.16rem 0.06rem 0.06rem;
  opacity: 0.92;
}

.cal-cell-meta .cal-cell-count {
  color: #64748b;
}

.cal-cell.empty .cal-cell-meta {
  color: #94a3b8;
}

/* List */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem 0.35rem;
}

.list-toolbar--card {
  padding: 0.5rem 0.85rem 0.4rem;
  background: transparent;
}

.list-toolbar-inner {
  width: 100%;
  background: linear-gradient(180deg, #ffffff, #fafafc);
  border: 1px solid #e8e8ed;
  border-radius: 16px;
  padding: 0.65rem 0.9rem 0.72rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.month-select-field--list .month-select-field-label {
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  color: #64748b;
}

.list-toolbar-inner .list-toolbar-title {
  display: block;
  margin-top: 0;
  font-weight: 700;
  font-size: 0.8rem;
  color: #94a3b8;
}

.list-toolbar-inner--with-month {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.65rem;
}

.list-toolbar-inner--with-month .list-toolbar-title {
  flex: 0 0 auto;
}

.list-month-toolbar-select {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 100%;
}

.list-toolbar-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

.list-select-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.35rem 1rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.list-select-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 0.55rem;
}

.list-select-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.65rem;
  width: 100%;
}

.list-select-bar-row .btn-list-download-month {
  flex: 1 1 9rem;
  min-width: 0;
}

.btn-list-select-mode {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 12px;
  padding: 0.52rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(165deg, #fffdf8 0%, #fff4e0 100%);
  color: #9a3412;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(251, 146, 60, 0.15);
}

.btn-list-select-mode:active {
  transform: scale(0.99);
}

.btn-list-download-selected {
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(145deg, #0d9488, #0f766e);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.28);
}

.btn-list-download-selected:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-list-download-selected:not(:disabled):active {
  transform: scale(0.98);
}

.btn-list-bulk-move-date {
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(145deg, #ea580c, #c2410c);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.28);
}

.btn-list-bulk-move-date:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-list-bulk-move-date:not(:disabled):active {
  transform: scale(0.98);
}

.list-bulk-date-overlay {
  position: fixed;
  inset: 0;
  z-index: 12040;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

.list-bulk-date-overlay.hidden {
  display: none;
}

.list-bulk-date-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.list-bulk-date-panel {
  position: relative;
  width: 100%;
  max-width: 22rem;
  border-radius: 16px;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--surface, #fff);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
}

.list-bulk-date-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.list-bulk-date-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.list-bulk-date-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.list-bulk-date-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.list-bulk-date-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.list-bulk-date-btn {
  border-radius: 10px;
  padding: 0.48rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

.list-bulk-date-btn--ghost {
  background: transparent;
  color: var(--muted);
}

.list-bulk-date-btn--primary {
  background: linear-gradient(145deg, #ea580c, #c2410c);
  color: #fff;
}

.add-baby-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.add-baby-pick-select {
  flex: 1 1 160px;
  min-width: 0;
}

.btn-add-baby-load {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.42rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.btn-add-baby-load:active {
  transform: scale(0.98);
}

.add-baby-pick-hint {
  margin-top: 0.15rem;
}

#baby-add-another-box .baby-birth-part:disabled,
#baby-add-another-box #add-baby-caregiver-role:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.photo-list .list-grid-cell {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.list-select-bar--card {
  margin: 0 0.12rem 0.4rem;
  padding: 0.52rem 0.78rem 0.55rem;
  background: #f8fafc;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  border-bottom: 1px solid #eef0f4;
}

.list-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.list-select-all-label input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent-orange);
}

.btn-list-delete {
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

.btn-list-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-list-delete:not(:disabled):active {
  transform: scale(0.98);
}

.btn-list-bulk-cancel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.42rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.btn-list-bulk-cancel:active {
  transform: scale(0.98);
}

.photo-list {
  padding: 0 0.08rem 1rem;
}

.list-month-sentinel {
  height: 1px;
  margin-top: 0.5rem;
  pointer-events: none;
}

.list-empty-hint {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.photo-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.photo-row .thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8e8ed;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.photo-row .thumb img,
.photo-row .thumb .thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ??? ??????? ???? ???? ??? ?????? ????? ?????????? ?????? ???????? ?????? */
.photo-row .thumb .thumb-video {
  pointer-events: none;
}

.photo-row .meta {
  flex: 1;
  font-size: 0.9rem;
}

.photo-row .meta .d {
  color: var(--muted);
  font-size: 0.8rem;
}

.photo-row-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.15rem 0.25rem 0.35rem;
  cursor: pointer;
}

.photo-row-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

/* ?? ???: ??? ?? + 3? ??? */
.list-day-section {
  margin-bottom: 0.55rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

.list-day-section:last-child {
  margin-bottom: 0.2rem;
}

.list-day-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  padding: 0.38rem 0.12rem 0.28rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text);
}

.list-day-header-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

.list-day-select-all-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 10px;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(165deg, #fffdf8 0%, #fff4e0 100%);
  color: #9a3412;
  cursor: pointer;
  white-space: nowrap;
}

.list-day-select-all-btn:active {
  transform: scale(0.98);
}

.list-day-header-main {
  color: var(--text);
}

.list-day-header-dplus {
  font-weight: 700;
  color: #94a3b8;
}

.list-day-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
}

.list-grid-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e8ed;
  cursor: pointer;
}

.list-grid-cell:focus-visible {
  outline: 2px solid rgba(255, 186, 90, 0.9);
  outline-offset: 0;
  z-index: 1;
}

.list-grid-thumb {
  position: absolute;
  inset: 0;
}

.list-grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.list-grid-play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.list-grid-play-disc {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.15rem;
  font-size: 0.68rem;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

/* ??????? ?? ??? ??(?? ? ? 26px ??? ? 50%) */
.media-cell-video-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 0.8125rem;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.32));
}

.media-cell-video-tag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.day-cell-corner-actions {
  position: absolute;
  bottom: 5px;
  right: 5px;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 5px;
}

.day-cell-corner-actions .day-grid-star {
  position: static;
}

/* ? ?? ?? ???: ?? ?? ???? ?? ??? ??(??? ?? ? ?) */
.media-cell-corner-actions {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  z-index: 3;
}

.media-cell-corner-actions .media-cell-video-tag {
  position: static;
  width: 1.125rem;
  height: 0.8125rem;
}

.media-cell-corner-actions--list {
  bottom: 5px;
  right: 5px;
  z-index: 3;
}

.media-cell-corner-actions--upload {
  bottom: 5px;
  right: 5px;
  z-index: 1;
}

.media-cell-corner-actions--cal {
  bottom: 2px;
  right: 2px;
  z-index: 5;
  gap: 2px;
}

.media-cell-corner-actions--cal .media-cell-video-tag {
  width: 0.78rem;
  height: 0.56rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.media-cell-corner-actions--hero {
  bottom: 10px;
  right: 10px;
  z-index: 5;
}

/* ?? ?? ?(??? ?)? ??? ?? ?? ?? */
.media-cell-corner-actions--mv {
  right: 3.35rem;
  bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  gap: 5px;
}

.media-cell-corner-actions--mv .media-cell-video-tag {
  width: 1.2rem;
  height: 0.84rem;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* ??? ??: ?? ??? ????? ??? ?? */
.media-cell-corner-actions--mv.media-cell-corner-actions--mv--hide-playback {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.media-cell-corner-star {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-size: 8px;
  line-height: 1;
  pointer-events: none;
}

.media-cell-corner-star--cal {
  width: 10px;
  height: 10px;
  font-size: 6px;
}

.media-cell-corner-star--hero {
  width: 15px;
  height: 15px;
  font-size: 9px;
}

.media-cell-corner-star--mv {
  width: 13px;
  height: 13px;
  font-size: 8px;
}

.media-cell-corner-star--notif {
  width: 11px;
  height: 11px;
  font-size: 7px;
}

.list-grid-cb {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  margin: 0;
  padding: 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-grid-cb input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

/* ??? ???? ??????? ???? (??????????? ????? ????) */
.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
}

/* ??? ???? ???? ??????????? ????? ??????(???????? ????? ??? ??? #app-msg ??? ????) */
.media-viewer-toast {
  position: fixed;
  left: 50%;
  bottom: var(--photo-media-toast-bottom);
  transform: translateX(-50%) translateY(120%);
  z-index: 320;
  max-width: min(92vw, 22rem);
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.28s ease;
}

.media-viewer-toast.media-viewer-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.media-viewer-toast.media-viewer-toast--err {
  background: rgba(127, 29, 29, 0.92);
}

.media-viewer-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.65) 0%,
    transparent 28%,
    transparent 72%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.media-viewer-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(0.5rem + env(safe-area-inset-top, 0px)) 0.75rem 0.35rem;
  flex-shrink: 0;
}

.media-viewer-title {
  flex: 1;
  text-align: center;
  padding: 0 2.5rem;
}

.media-viewer-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.media-viewer-more {
  flex-shrink: 0;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.media-viewer-more:active {
  transform: scale(0.96);
}

.media-viewer-dline {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.media-viewer-date {
  font-weight: 600;
  opacity: 0.92;
}

.media-viewer-pager {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.media-viewer-close {
  position: absolute;
  top: calc(0.35rem + env(safe-area-inset-top, 0px));
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.media-viewer-strip-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  z-index: 2;
}

.media-viewer-strip {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* ? ?? ? ?? ??? ??? ?? smooth ? ? ???? ? ????? ??? ??? ?? */
.media-viewer-strip.media-viewer-strip--instant-scroll {
  scroll-behavior: auto !important;
}

.media-viewer-strip::-webkit-scrollbar {
  display: none;
}

.media-viewer-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: calc(100% - 1px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0.5rem;
  box-sizing: border-box;
}

.media-viewer-slide .mv-slide-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.mv-slide-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-viewer-slide .mv-slide-video-wrap .mv-slide-video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  background: #121218;
  object-fit: contain;
}

/* ???? ???: ?? ?? ?? ?? */
.media-viewer-slide .mv-slide-video-wrap .mv-slide-video.mv-slide-video--allow-scroll {
  pointer-events: none;
}

.mv-slide-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  z-index: 4;
  box-sizing: border-box;
  padding: 1rem;
  pointer-events: none;
}

.mv-slide-video-overlay--loading {
  background: rgba(18, 18, 24, 0.88);
}

.mv-slide-video-overlay--error {
  background: rgba(18, 18, 24, 0.94);
}

.mv-slide-video-overlay-msg {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.5;
  max-width: 17rem;
}

.mv-slide-video-overlay-msg--err {
  font-size: 0.95rem;
}

.mv-slide-video-overlay-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.mv-slide-video-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  animation: mv-video-spin 0.7s linear infinite;
}

@keyframes mv-video-spin {
  to {
    transform: rotate(360deg);
  }
}

.media-viewer-actions {
  position: absolute;
  right: 0.65rem;
  bottom: calc(18% + env(safe-area-inset-bottom, 0px));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.media-viewer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

.media-viewer-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.media-viewer-action .mv-ico {
  font-size: 1.65rem;
  line-height: 1;
}

.media-viewer-action .mv-ico.heart {
  font-size: 1.5rem;
}

.media-viewer-like.on .mv-ico.heart {
  color: #ff4d6d;
}

.media-viewer-action .mv-count {
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.media-viewer-social {
  position: absolute;
  left: 0.85rem;
  right: 4.5rem;
  bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-height: 6.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.media-viewer-likers {
  position: static;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.media-viewer-comments-lines {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.media-viewer-comment-line {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.media-viewer-comment-who {
  font-weight: 800;
  color: rgba(255, 230, 200, 0.98);
}

.media-viewer-comment-body {
  font-weight: 600;
}

.media-viewer-comment-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 225;
  background: rgba(0, 0, 0, 0.5);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.media-viewer-comment-backdrop.open {
  display: flex;
}

.media-viewer-comment-sheet {
  width: 100%;
  max-width: 420px;
  background: #2c2c2e;
  border-radius: 16px 16px 0 0;
  padding: 0.55rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.media-viewer-comment-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f2f2f7;
  margin-bottom: 0.45rem;
}

.media-viewer-comment-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.92rem;
  padding: 0.55rem 0.65rem;
  font-family: inherit;
  resize: vertical;
  min-height: 4.5rem;
  max-height: 8rem;
}

.media-viewer-comment-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.media-viewer-comment-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.media-viewer-comment-charcount {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.media-viewer-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.media-viewer-comment-actions .media-viewer-menu-btn {
  margin-top: 0;
  flex: 0 1 auto;
  min-width: 4.5rem;
}

.media-viewer-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0, 0, 0, 0.5);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.media-viewer-menu-backdrop.open {
  display: flex;
}

.media-viewer-menu-sheet {
  width: 100%;
  max-width: 420px;
  background: #2c2c2e;
  border-radius: 16px 16px 0 0;
  padding: 0.5rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.media-viewer-menu-main.hidden {
  display: none;
}

.media-viewer-menu-btn {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 12px;
  background: #3a3a3c;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.media-viewer-menu-btn:first-child {
  margin-top: 0;
}

.media-viewer-menu-btn.danger {
  background: #5c2a2a;
  color: #fecaca;
}

.media-viewer-menu-btn.ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.media-viewer-date-sheet {
  display: none;
  padding-top: 0.25rem;
}

.media-viewer-date-sheet.open {
  display: block;
}

.media-viewer-date-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
}

.media-viewer-date-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #555;
  background: #1c1c1e;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.65rem;
  box-sizing: border-box;
}

.media-viewer-date-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.media-viewer-date-actions .media-viewer-menu-btn {
  width: auto;
  min-width: 88px;
  margin-top: 0;
  padding: 0.65rem 1rem;
}

/* Bottom nav ??? ???? / ??? ??????? 2???? */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.25rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  cursor: pointer;
  font-family: inherit;
}

.bottom-nav-item .bottom-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.75;
}

.bottom-nav-item.on {
  color: var(--text);
  font-weight: 700;
}

.bottom-nav-item.on .bottom-nav-icon {
  opacity: 1;
  color: var(--accent-orange);
}

.bottom-nav-label {
  letter-spacing: -0.02em;
}

/* ??? ??(????): ?????? PUT + complete ?? */
.upload-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 23, 42, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.upload-busy-overlay.hidden {
  display: none !important;
}

.upload-busy-panel {
  width: min(19rem, 100%);
  background: var(--surface, #fff);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.upload-busy-spinner {
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 auto 0.7rem;
  border: 3px solid #e2e8f0;
  border-top-color: var(--accent-orange, #ff7a1a);
  border-radius: 50%;
  animation: upload-busy-spin 0.72s linear infinite;
}

@keyframes upload-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

.upload-busy-label {
  margin: 0 0 0.9rem;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text, #1c1c1e);
  line-height: 1.4;
}

.upload-busy-track {
  height: 7px;
  border-radius: 999px;
  background: #e8e8ed;
  overflow: hidden;
}

.upload-busy-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8c42, var(--accent-orange, #ff7a1a));
  transition: width 0.28s ease;
}

.upload-busy-bar-fill--indeterminate {
  animation: upload-busy-ind 1.05s ease-in-out infinite;
}

@keyframes upload-busy-ind {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

/* ???? ??? ??? ?????? (?????? ????? ???????? + 3??? ?????) */
.day-screen {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
}

.day-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.28rem 0.35rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}

.day-screen-navbtn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
}

.day-screen-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.day-screen-arrow {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-screen-title {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  padding: 0 0.1rem;
}

.day-screen-header-spacer {
  width: 34px;
  flex-shrink: 0;
}

.day-screen-bulk-mode-btn {
  flex-shrink: 0;
  min-width: 34px;
  max-width: 5.2rem;
  padding: 0.22rem 0.38rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  cursor: pointer;
}

.day-screen-bulk-mode-btn--on {
  border-color: rgba(249, 115, 22, 0.55);
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  color: #9a3412;
}

.day-screen-filter {
  font-size: 0.95rem;
  color: var(--muted);
}

.day-screen-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}

.day-screen-sub-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.day-screen-chip {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.day-screen-chip:active {
  transform: scale(0.97);
}

.day-screen-chip--ghost {
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.day-screen-chip--on {
  border-color: var(--accent-orange);
  background: rgba(255, 120, 60, 0.12);
  color: var(--accent-orange);
}

.day-screen-sub-btn {
  border: none;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 0.22rem 0.15rem;
  flex-shrink: 0;
}

.day-screen-sub-btn.on {
  color: var(--accent-orange);
}

.day-screen-tag-btn {
  font-weight: 600;
}

.day-screen-scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.day-screen-hero {
  position: relative;
  margin: 0.5rem 0.12rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ececf0;
  /* 4:3 ?? ? 2px ??(?? ? ??), ?? ??? 2px ?? */
  aspect-ratio: 200 / 149;
  max-height: calc(46vh - 2px);
}

.day-screen-hero img,
.day-screen-hero-cover-snapshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ??? ??? ???? bindListGridThumbImg ? list-grid-img ? ?? ?? contain ? ?? ??? */
.day-screen-hero .list-grid-img {
  object-fit: cover;
  object-position: center;
}

.day-screen-hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.day-screen-hero-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 0.28rem 0.65rem;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 8px;
}

.day-screen-hero-star {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  color: var(--accent-orange);
}

.day-screen-hero-video-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0f0f12;
  pointer-events: none;
}

.day-screen-scroll--select .day-screen-hero {
  outline: 2px dashed rgba(255, 122, 26, 0.5);
  outline-offset: 2px;
  cursor: pointer;
}

.day-screen-hero--picked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 122, 26, 0.18);
  pointer-events: none;
  z-index: 2;
}

.day-screen-hero--picked::after {
  content: "?";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.day-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0.5rem 0.08rem var(--photo-scroll-past-fab);
}

.day-photo-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e8ed;
  -webkit-touch-callout: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 7.5rem;
}

.day-photo-cell-thumb {
  position: absolute;
  inset: 0;
}

.day-photo-cell .list-grid-play-mask {
  z-index: 2;
}

.day-photo-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.day-photo-cell-video-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}

.day-photo-cell--same-as-hero {
  box-shadow: inset 0 0 0 2px var(--accent-orange);
  border-radius: 2px;
}

.day-photo-grid--select .day-photo-cell {
  cursor: pointer;
}

.day-photo-cell-cb-wrap {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}

.day-photo-cell-cb {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent-orange, #ea580c);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  border-radius: 4px;
}

.day-grid-star {
  position: absolute;
  bottom: 5px;
  right: 5px;
  z-index: 4;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.day-grid-star.on {
  background: var(--accent-yellow);
}

.day-grid-star:disabled {
  opacity: 0.45;
  cursor: default;
}

.day-photo-cell-mark {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 900;
  color: #fff;
}

.day-photo-grid--select .day-photo-cell-mark {
  opacity: 1;
}

.day-photo-cell--picked .day-photo-cell-mark {
  opacity: 1;
  background: var(--accent-orange);
  border-color: #fff;
}

.day-photo-cell--picked .day-photo-cell-mark::after {
  content: "?";
}

.day-screen-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  padding: 0.32rem 0.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(255, 248, 240, 0.96);
}

.day-screen-bulk-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.day-screen-bulk-move {
  border: none;
  border-radius: 10px;
  padding: 0.32rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  background: linear-gradient(145deg, #ea580c, #c2410c);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.28);
}

.day-screen-bulk-move:active {
  transform: scale(0.98);
}

.day-screen-bulk-move:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.day-screen-bulk-delete {
  border: none;
  border-radius: 10px;
  padding: 0.32rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.day-screen-bulk-delete:active {
  transform: scale(0.98);
}

.day-screen-bulk-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-list-download-month {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(145deg, #0d9488, #0f766e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.btn-list-download-month:active {
  transform: scale(0.99);
}

.day-screen-fab {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: var(--photo-upload-fab-bottom);
  width: var(--photo-upload-fab-size);
  height: var(--photo-upload-fab-size);
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #ff8c42, var(--accent-orange));
  color: #fff;
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255, 122, 26, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 84;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.native-upload-floater {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: var(--photo-upload-fab-bottom);
  z-index: 84;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}

.native-upload-floater > * {
  pointer-events: auto;
}

.native-upload-floater.hidden {
  display: none !important;
}

.native-upload-floater-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.native-upload-floater-actions.hidden {
  display: none !important;
}

.native-upload-floater-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  white-space: nowrap;
}

.native-upload-floater-chip:active {
  transform: scale(0.98);
}

.native-upload-fab-main {
  position: static;
  margin: 0;
}

.native-upload-fab-main.native-upload-fab-main--open {
  transform: rotate(45deg);
}

.day-screen-err {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--danger);
  font-size: 0.9rem;
}

/* Modal */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal {
  background: var(--surface);
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  border-radius: 20px 20px 0 0;
  padding: 1rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.modal h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.day-photo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.day-photo-item .thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8e8ed;
}

.day-photo-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.star-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.star-btn.on {
  background: var(--accent-yellow);
  color: var(--text);
}

.modal-close {
  float: right;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.invite-box {
  margin: 0.75rem 1rem;
  padding: 0.85rem;
  background: var(--surface);
  border-radius: 14px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.invite-box input {
  width: 100%;
  margin: 0.35rem 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: var(--text);
}

.invite-box .login-input {
  width: 100%;
  margin: 0.35rem 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fafafa;
  font-size: 1rem;
  box-sizing: border-box;
}

.parent-link-block {
  margin-bottom: 0.75rem;
}

.invite-baby-summary {
  margin: 0.4rem 0 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--accent-yellow-soft);
  border: 1px solid rgba(255, 180, 80, 0.35);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.invite-signup-body {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.invite-signup-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.invite-signup-header {
  text-align: center;
  margin-bottom: 1rem;
}

.invite-signup-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.invite-signup-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.invite-signup-card {
  margin-top: 0.5rem;
}

.invite-signup-note {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.invite-signup-fatal {
  margin: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.9rem;
  line-height: 1.45;
}

.invite-signup-footer {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.invite-signup-link {
  color: var(--accent-orange);
}

.ient-secondary-btn {
  margin-top: 0.75rem;
  width: 100%;
  display: block;
  text-align: center;
}

.invite-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.85rem 0;
}

.baby-birth-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.35rem 0 0.75rem;
}

.baby-birth-part {
  width: auto !important;
  min-width: 4.5rem;
  flex: 1 1 4rem;
  max-width: 6.5rem;
  margin: 0 !important;
}

.baby-birth-sep {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

#baby-register-fields {
  margin-top: 0.35rem;
}

.btn-invite {
  width: 100%;
  padding: 0.5rem;
  border-radius: 10px;
  border: none;
  background: #e8e8ed;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.baby-reg-hero-row {
  margin: 0.4rem 0 0.5rem;
}

.baby-reg-hero-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.baby-reg-hero-preview-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.baby-reg-hero-preview {
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f3f4f6;
}

.baby-reg-hero-preview.hidden {
  display: none !important;
}

.btn-baby-reg-hero {
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--accent-orange);
  background: var(--accent-yellow-soft);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* ??: ?? ?? ??(?? ??) */
.settings-header-profile-layout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 0.45rem;
}

.settings-header-profile-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: linear-gradient(145deg, #e0f2fe, #cffafe);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.settings-header-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.settings-header-profile-img.hidden {
  display: none !important;
}

.settings-header-profile-emoji {
  font-size: 1.65rem;
  line-height: 1;
}

.settings-header-profile-emoji.hidden {
  display: none !important;
}

.settings-header-profile-main {
  flex: 1;
  min-width: 0;
}

.settings-header-profile-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.settings-header-profile-name-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.settings-header-profile-baby-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.settings-header-profile-file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.settings-header-profile-file-input {
  flex: 1 1 10rem;
  min-width: 0;
}

.settings-header-profile-file-actions .btn-invite {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
}

.btn-baby-add {
  width: 100%;
  padding: 0.5rem;
  border-radius: 10px;
  border: none;
  background: var(--accent-yellow);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.msg {
  padding: calc(0.5rem - 1px) 1rem;
  font-size: 0.85rem;
  line-height: calc(1.35em - 1px);
  color: var(--muted);
}

#app-msg:empty {
  display: none;
}

.settings-msg {
  margin: 0 0 0.85rem;
}

.msg.err {
  color: var(--danger);
}

/* ???????? ?????? (??????? ?? ? ????? ??????) */
.upload-sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#app-settings-sheet {
  z-index: 96;
}

#party-invitation-sheet {
  z-index: 96;
}

#app-settings-sheet .upload-sheet-panel {
  max-width: min(100%, 22rem);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-height: min(85vh, 640px);
}

#app-settings-sheet .upload-sheet-head {
  padding: 0.65rem 0.75rem 0.45rem;
}

#app-settings-sheet .upload-sheet-head h2 {
  font-size: 0.95rem;
}

#app-settings-sheet .invite-box {
  margin: 0.45rem 0.55rem;
  padding: 0.6rem 0.7rem;
}

#app-settings-sheet .login-input {
  padding: 0.55rem 0.65rem;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

#app-settings-sheet .upload-sheet-note {
  font-size: 0.7rem;
  margin: 0.45rem 0 0;
  line-height: 1.38;
}

#app-settings-sheet .btn-invite,
#app-settings-sheet .btn-reg-phone-send {
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
}

#app-settings-sheet .reg-phone-row {
  margin-bottom: 0.6rem;
}

#app-settings-sheet .app-settings-scroll {
  max-height: min(72vh, 520px);
  padding-left: 0;
  padding-right: 0;
}

#upload-sheet {
  z-index: 97;
}

/* ???? ?? (?? ??) */
.logout-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.logout-confirm-overlay.hidden {
  display: none !important;
}

.logout-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}

.logout-confirm-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 17.5rem;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 22px;
  background: linear-gradient(165deg, #ffffff 0%, #fafbfc 100%);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  text-align: center;
  animation: logout-confirm-in 0.28s ease;
}

@keyframes logout-confirm-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logout-confirm-card {
    animation: none;
  }
}

.logout-confirm-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff4e6, #ffe7cc);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.15);
}

.logout-confirm-icon {
  color: var(--accent-orange);
}

.logout-confirm-title {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logout-confirm-desc {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
  color: #475569;
}

.logout-confirm-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.logout-confirm-actions {
  display: flex;
  gap: 0.55rem;
}

.logout-confirm-btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 0.62rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.logout-confirm-btn:active {
  transform: scale(0.98);
}

.logout-confirm-btn--no {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.logout-confirm-btn--yes {
  background: linear-gradient(145deg, #ff8c42, var(--accent-orange));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 122, 26, 0.35);
}

#notifications-sheet.notifications-overlay {
  z-index: 66;
  --notifications-top: 5.5rem;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--notifications-top);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  pointer-events: none;
}

#notifications-sheet.notifications-overlay:not(.hidden) {
  pointer-events: auto;
}

.notifications-overlay-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
}

.notifications-overlay-panel {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 0.55rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  overflow: hidden;
}

.notifications-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.65);
}

.notifications-overlay-head h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.notifications-overlay-close {
  border: none;
  background: rgba(15, 23, 42, 0.06);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.notifications-hint {
  margin: 0;
  padding: 0.35rem 1rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.upload-sheet.hidden {
  display: none !important;
}

.upload-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.45);
}

.upload-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(92vh, 900px);
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.upload-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.upload-sheet-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.upload-sheet-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.upload-sheet-banner {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  background: var(--accent-yellow-soft);
  color: var(--text);
  border-bottom: 1px solid rgba(255, 221, 45, 0.35);
}

.upload-sheet-actions {
  padding: 0.35rem 1rem 0;
  text-align: right;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.65rem;
}

.upload-sheet-empty {
  padding: 1.25rem 1rem;
  text-align: center;
}

.btn-pick-photos {
  width: 100%;
  max-width: 280px;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff8c42, var(--accent-orange));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.35);
}

.upload-sheet-note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: left;
}

.upload-sheet-date-lock-hint:not(.hidden) {
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 140, 66, 0.12);
  border: 1px solid rgba(255, 140, 66, 0.32);
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink, #2a2a2a);
}

.upload-sheet-scroll {
  flex: 1;
  overflow: auto;
  min-height: 120px;
  -webkit-overflow-scrolling: touch;
}

.app-settings-scroll {
  flex: 1;
  overflow: auto;
  min-height: 120px;
  max-height: min(78vh, 720px);
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

#app-settings-sheet .invite-box:first-of-type {
  margin-top: 0.3rem;
}

.invite-send-result {
  margin-top: 0.75rem;
  padding: 0.65rem 0 0;
  border-top: 1px dashed var(--border);
}

.invite-send-result-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.invite-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin: 0.35rem 0 0.65rem;
}

.invite-copy-row .login-input {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.mono-input {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}

.upload-date-block {
  padding: 0.5rem 0.75rem 0.25rem;
}

.upload-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.25rem;
}

.upload-date-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}

.btn-select-all-date {
  border: none;
  background: none;
  color: var(--accent-orange);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
}

.upload-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  padding: 0 0.5rem 0.75rem;
}

@media (max-width: 360px) {
  .upload-thumb-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.upload-thumb-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e8e8ed;
  cursor: pointer;
}

.upload-thumb-cell.upload-thumb-cell--deduped:not(.selected) {
  outline: 2px dashed rgba(100, 116, 139, 0.4);
  outline-offset: -2px;
  opacity: 0.88;
}

.upload-thumb-cell img,
.upload-thumb-cell .upload-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-thumb-cell .upload-thumb-video {
  pointer-events: none;
  background: #000;
}

.upload-thumb-cell .pick-mark {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  pointer-events: none;
}

.upload-thumb-cell.selected .pick-mark {
  background: var(--accent-yellow);
  border-color: var(--text);
  color: var(--text);
  font-weight: 800;
}

.upload-thumb-cell.selected .pick-mark::after {
  content: "???";
}

.upload-sheet-footer {
  padding: 0.65rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.btn-upload-batch {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 14px;
  background: #c8c8d0;
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: not-allowed;
}

.btn-upload-batch:not(:disabled) {
  background: #5c5c66;
  color: #fff;
  cursor: pointer;
}

.btn-upload-batch:not(:disabled):active {
  transform: scale(0.99);
}

.family-access-approve-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.caregiver-revoke-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: min(100%, 12rem);
}

.caregiver-revoke-select {
  flex: 1 1 10rem;
  max-width: 14rem;
  min-width: 8rem;
  font-size: 0.9rem;
}

.pending-caregivers-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.pending-caregivers-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.pending-caregivers-list .pending-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ?? ??? ?? ? ???? ?? (?? ?? ? ?? ???? ???? ? ?) */
.party-invitation-panel {
  max-height: min(92vh, 860px);
}

.party-invitation-scroll {
  padding: 0 1rem 1.25rem;
  overflow-y: auto;
  max-height: calc(92vh - 4rem);
  -webkit-overflow-scrolling: touch;
}

.party-inv-file-row {
  margin-bottom: 0.65rem;
}

.party-inv-file-input {
  font-size: 0.85rem;
}

.party-inv-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.party-inv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.btn-party-inv-delete {
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-party-inv-secondary {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, #ff9a55, var(--accent-orange));
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 122, 26, 0.35);
}

.btn-party-inv-secondary:active {
  transform: scale(0.98);
}

.party-inv-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  margin-top: 0.5rem;
}

.party-inv-card-photo {
  aspect-ratio: 5 / 6;
  background: #e8eef5;
  overflow: hidden;
}

.party-inv-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.party-inv-card-scallop {
  height: 14px;
  margin-top: -1px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath fill='%23fff' d='M0 12h24V6c-4 0-4-6-8-6S8 6 4 6 0 0 0 0v12z'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 24px 12px;
}

.party-inv-card-lower {
  position: relative;
  background: linear-gradient(180deg, #c5ebe0 0%, #a8d9cf 55%, #8cc9bd 100%);
  padding: 1.25rem 1rem 1.75rem;
  min-height: 220px;
}

.party-inv-card-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='10' y='24' font-size='20' fill='%23fff'%3E%E2%98%86%3C/text%3E%3Ctext x='44' y='56' font-size='18' fill='%23fff'%3E%E2%9C%BF%3C/text%3E%3C/svg%3E");
  pointer-events: none;
}

.party-inv-cloud {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 92%;
  padding: 1.1rem 1rem 1.25rem;
  background: #fffef9;
  border-radius: 48% 52% 50% 50% / 42% 44% 56% 58%;
  box-shadow: 0 4px 18px rgba(120, 90, 60, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.95);
  text-align: center;
}

.party-inv-text {
  margin: 0.35rem 0;
  color: #5c4033;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: keep-all;
}

.party-inv-text--title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.party-inv-text--meta {
  font-weight: 700;
  font-size: 0.88rem;
}

/* ---------- ? ?? ? ?? ??? ? (index.html ? ??) ---------- */

.app-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.38rem 0.5rem;
  padding: 0.45rem 0.72rem 0.52rem;
  padding-top: calc(0.42rem + env(safe-area-inset-top, 0px));
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-header, 0 2px 12px rgba(0, 0, 0, 0.06));
  position: sticky;
  top: 0;
  /* 메인 스크롤 영역(z-index:0) 위 · 모달 시트(95+) 아래 */
  z-index: 80;
  container-type: inline-size;
  container-name: app-header;
}

.header-primary {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.header-baby-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #e0f2fe, #cffafe);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.22rem;
  line-height: 1;
  overflow: hidden;
  color: #0f766e;
}

.header-baby-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header-baby-avatar-initial.is-letter {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #0d9488;
}

.header-selects-row {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0.28rem;
}

.header-baby-measure {
  position: absolute;
  left: -9999px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
}

.header-selects-row .header-baby-select {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 5.25rem;
  padding: 0.42rem 0.52rem;
  border-radius: 12px;
  border: 1px solid var(--border, #e8e8ed);
  background: var(--bg, #f4f4f6);
  color: var(--text, #1c1c1e);
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.header-icon-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.18rem;
  max-width: 100%;
  flex-shrink: 0;
}

.header-actions-slot {
  flex-shrink: 0;
}

.header-act-btn {
  box-sizing: border-box;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: linear-gradient(165deg, #fffdf8 0%, #fff4e0 45%, #ffe8c8 100%);
  color: #9a3412;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 1px 6px rgba(251, 146, 60, 0.18);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.header-act-btn:hover {
  border-color: rgba(249, 115, 22, 0.65);
  color: #7c2d12;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 10px rgba(251, 146, 60, 0.26);
}

.header-act-btn:active {
  transform: scale(0.96);
}

.header-act-btn--notif {
  position: relative;
}

.header-act-btn-icon svg {
  display: block;
}

.header-notif-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.45);
}

.header-selects-row .header-baby-select.baby-select--parent {
  border-color: #86efac;
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);
  color: #14532d;
}

.header-selects-row .header-baby-select.baby-select--extended {
  border-color: #93c5fd;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  color: #1e3a8a;
}

.header-selects-row .header-baby-select.baby-select--viewer {
  border-color: #d1d5db;
  background: linear-gradient(145deg, #f9fafb, #f3f4f6);
  color: #4b5563;
}

#baby-select option.baby-select-opt-parent {
  color: #15803d;
  font-weight: 700;
}

#baby-select option.baby-select-opt-extended {
  color: #1d4ed8;
  font-weight: 700;
}

#baby-select option.baby-select-opt-viewer {
  color: #6b7280;
  font-weight: 600;
}

.app-section-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

#view-calendar,
#view-list,
#view-notifications {
  position: relative;
  z-index: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* ?? ?? ?? ??? ??? ?? (???????safe area) */
  padding-bottom: var(--photo-scroll-past-fab);
}

#view-notifications {
  background:
    radial-gradient(ellipse 130% 70% at 50% -8%, rgba(255, 221, 45, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 90% 45% at 100% 0%, rgba(255, 186, 108, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #fffefb 0%, #faf8f4 4.5rem, #f3f2f4 7.25rem, var(--bg) 100%);
  border-radius: 0 0 22px 22px;
  margin: 0 0 0.15rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.notif-center-head {
  flex-shrink: 0;
  padding: 0.48rem 0.85rem 0.32rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.42) 100%);
}

.notif-center-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.notif-center-toolbar {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem 0.48rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.55);
}

.notif-subtab {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 0.52rem 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
}

.notif-subtab.on {
  background: linear-gradient(145deg, #ff8c42, var(--accent-orange));
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 122, 26, 0.22);
}

#view-notifications .notif-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#view-notifications .notif-panel.hidden {
  display: none !important;
}

#view-notifications .notifications-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 0.45rem 0.75rem 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

#view-notifications .notif-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.notif-activity-badges {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 3;
  pointer-events: none;
  max-width: calc(100% - 10px);
}

.notif-activity-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.1rem 0.32rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  letter-spacing: -0.02em;
}

.notif-activity-badge--like {
  background: rgba(220, 38, 38, 0.88);
}

.notif-activity-badge--tag {
  background: rgba(37, 99, 235, 0.9);
}

.notif-activity-badge--comment {
  background: rgba(22, 163, 74, 0.9);
}

#view-list .list-toolbar {
  flex-shrink: 0;
}

#view-list .photo-list {
  flex: 1;
  min-height: 4rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ??? ???? (?? ?????? ? ??? ??? ??) */
.app-pull-hint {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(3.25rem + env(safe-area-inset-top, 0px));
  z-index: 25;
  margin: 0 auto;
  max-width: 20rem;
  padding: 0.35rem 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted, #6b7280);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.app-pull-hint--show {
  opacity: 1;
  transform: translateY(0);
}

/* ??? ???? ??: ?? ??? ???(??? ??) */
.app-refresh-flash {
  position: fixed;
  left: 50%;
  top: calc(4.6rem + env(safe-area-inset-top, 0px));
  z-index: 40;
  width: 4.75rem;
  height: 4.75rem;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
}

.app-refresh-flash--play {
  animation: appRefreshFlashOuter 1.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.app-refresh-flash-blob {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fffef8 0%, #fff4c4 22%, var(--accent-yellow, #ffdd2d) 52%, #ffb347 88%, var(--accent-orange, #ff7a1a) 100%);
  box-shadow:
    0 8px 32px rgba(255, 122, 26, 0.42),
    0 0 0 3px rgba(255, 255, 255, 0.75) inset,
    0 -2px 16px rgba(255, 255, 255, 0.5) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: appRefreshFlashBlob 1.38s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.app-refresh-flash-check {
  width: 52%;
  height: 52%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.app-refresh-flash-spark {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
  opacity: 0;
}

.app-refresh-flash-spark--a {
  top: 12%;
  right: 14%;
  animation: appRefreshSpark 1.38s ease forwards;
}

.app-refresh-flash-spark--b {
  bottom: 18%;
  left: 10%;
  width: 0.32rem;
  height: 0.32rem;
  animation: appRefreshSpark 1.38s 0.08s ease forwards;
}

@keyframes appRefreshFlashOuter {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.88);
  }
  10% {
    opacity: 1;
  }
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.02);
  }
}

@keyframes appRefreshFlashBlob {
  0% {
    transform: scale(0.55);
  }
  20% {
    transform: scale(1.1);
  }
  30% {
    transform: scale(0.96);
  }
  40% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.98);
  }
}

@keyframes appRefreshSpark {
  0%,
  15% {
    opacity: 0;
    transform: scale(0.5);
  }
  28% {
    opacity: 1;
    transform: scale(1.15);
  }
  45% {
    opacity: 0.85;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-refresh-flash--play,
  .app-refresh-flash-blob,
  .app-refresh-flash-spark--a,
  .app-refresh-flash-spark--b {
    animation-duration: 0.28s;
    animation-timing-function: ease-out;
  }
}

#app-section #view-list {
  overflow-x: hidden;
  max-width: 100%;
}

/* ?? ????(?? ?? ?? ??) */
.notifications-overlay-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0 0.85rem;
}

.notifications-empty {
  margin: 2rem 1.25rem 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
}

.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.notifications-item {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid #eef0f4;
  background: linear-gradient(180deg, #ffffff, #fafafc);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.notifications-item--row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.2rem 0.55rem 0.25rem;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e8eaef;
  background: transparent;
  box-shadow: none;
}

.notifications-item--row:last-child {
  border-bottom: none;
}

.notifications-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 0.15rem 0.2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 10px;
}

.notifications-item-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 6px;
  overflow: hidden;
  background: #e8e8ed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-cell-corner-actions--notif {
  right: 1px;
  bottom: 1px;
  z-index: 3;
  gap: 2px;
}

.media-cell-corner-actions--notif .media-cell-video-tag {
  width: 0.95rem;
  height: 0.68rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.notifications-item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.notifications-item-thumb-fallback {
  font-size: 1.28rem;
  line-height: 1;
}

.notifications-item-textcol {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  text-align: left;
}

.notifications-item-main:hover {
  background: rgba(255, 221, 45, 0.08);
}

.notifications-item-main:focus-visible {
  outline: 2px solid rgba(255, 186, 90, 0.7);
  outline-offset: 2px;
}

.notifications-item-main--disabled {
  cursor: default;
  opacity: 0.92;
}

.notifications-item-main--disabled:hover {
  background: transparent;
}

.notifications-item-del {
  flex-shrink: 0;
  align-self: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0.1rem 0.1rem 0.1rem 0;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.notifications-item-del:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.notifications-item-del svg {
  display: block;
}

.notifications-item-hint {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-orange, #ff7a1a);
}

.notifications-item--action {
  border-color: rgba(255, 140, 60, 0.28);
  background: linear-gradient(145deg, #fffbeb, #fff7ed);
  box-shadow: 0 4px 16px rgba(255, 140, 60, 0.12);
}

.notifications-item-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text, #1c1c1e);
  line-height: 1.35;
}

.notifications-item-body {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.4;
}

.notifications-item-meta {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.notifications-item-when {
  flex-shrink: 0;
  align-self: center;
  margin: 0;
  max-width: 5rem;
  text-align: right;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.35;
}

.btn-notif-open-party {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.62rem 0.85rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff8c42, var(--accent-orange, #ff7a1a));
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 122, 26, 0.35);
}

.btn-notif-open-party:active {
  transform: scale(0.98);
}

/* ?? ?? ?? ???(?? ??) */
.push-batch-overlay {
  position: fixed;
  inset: 0;
  z-index: 68;
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
}

.push-batch-head {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  padding: calc(0.5rem + env(safe-area-inset-top, 0px)) 0.35rem 0.65rem;
  border-bottom: none;
  background: #fff;
}

.push-batch-back {
  justify-self: start;
  border: none;
  background: transparent;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  color: var(--text, #1c1c1e);
  padding: 0;
}

.push-batch-title {
  margin: 0;
  justify-self: center;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text, #1c1c1e);
}

.push-batch-head-spacer {
  width: 2.75rem;
  height: 1px;
  justify-self: end;
}

/* ??: ?? ???(view-list)? ??? ?? + photo-list ??? */
.push-batch-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
}

.push-batch-list-toolbar {
  flex-shrink: 0;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.push-batch-photo-list.photo-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

.push-batch-empty {
  margin: 1.25rem 0.5rem;
}
