:root {
  --bg: #000;
  --fg: #fff;
  --muted: #666;
  --line: #1A1A1A;
  --panel: rgba(0,0,0,.84);
}

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

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #111;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  position: relative;
  width: min(100vw, 430px);
  height: 100vh;
  max-height: 932px;
  background: var(--bg);
  overflow: hidden;
}

@media (min-width: 540px) {
  body {
    padding: 20px;
  }

  .app {
    height: 860px;
    border-radius: 32px;
    box-shadow: 0 26px 90px rgba(0,0,0,.72), 0 0 0 1px #222;
  }
}

.screen {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.scroll {
  height: 100%;
  overflow-y: auto;
  padding: 76px 22px 96px;
}

.logo {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 20;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

.topbar {
  position: absolute;
  top: 28px;
  left: 20px;
  right: 20px;
  height: 30px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar .left,
.topbar .right {
  position: absolute;
  top: 0;
  height: 30px;
  display: flex;
  align-items: center;
}

.topbar .left { left: 0; }
.topbar .right { right: 0; }

.icon-btn,
.text-btn {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
}

.icon-btn {
  width: 42px;
  height: 38px;
  font-size: 25px;
  line-height: 1;
}

.text-btn {
  font-size: 14px;
}

.home-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 17vh;
}

.check-circle {
  width: 238px;
  height: 238px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  letter-spacing: 5px;
  font-size: 17px;
}

.home-stat {
  margin-top: 32px;
  color: #aaa;
  font-size: 14px;
}

.home-stat b {
  color: #fff;
  font-weight: 500;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  z-index: 60;
  background: #000;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  height: 68px;
  font-size: 22px;
  display: grid;
  place-items: center;
}

.bottom-nav button.active {
  color: #fff;
}

.camera-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 16%, rgba(255,255,255,.18), transparent 18%),
    linear-gradient(145deg, #050505 0%, #1e2321 52%, #050505 100%);
}

.camera-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(112deg, rgba(255,255,255,.12) 0 3px, transparent 3px 30px);
  opacity: .28;
}

.camera-close {
  position: absolute;
  top: 24px;
  left: 20px;
  z-index: 10;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  font-weight: 200;
}

.pick-photo {
  position: absolute;
  left: 50%;
  bottom: 198px;
  transform: translateX(-50%);
  z-index: 10;
  border: 1px solid #333;
  border-radius: 999px;
  background: transparent;
  color: #777;
  padding: 8px 14px;
  font-size: 12px;
}

.shutter {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  z-index: 10;
  width: 78px;
  height: 78px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.shutter::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}

.camera-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  z-index: 10;
  text-align: center;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  letter-spacing: 5px;
}

.confirm-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.confirm-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 28px 36px;
  border-radius: 28px 28px 0 0;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.data-line {
  font-size: 22px;
  line-height: 2;
}

.data-line span {
  color: #777;
  font-size: 13px;
  margin-right: 14px;
}

.action-row {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.primary-btn {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  padding: 13px 30px;
  font-weight: 800;
}

.ghost-btn {
  border: 0;
  background: transparent;
  color: #777;
  padding: 10px 0;
}

.feed-list {
  height: 100%;
  overflow-y: auto;
  padding: 72px 0 84px;
}

.post {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.post-head {
  padding: 0 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #222;
  object-fit: cover;
  flex: 0 0 auto;
}

.avatar.big {
  width: 92px;
  height: 92px;
  margin: 0 auto;
}

.post-time {
  margin-left: auto;
  color: #777;
  font-size: 12px;
}

.post-media {
  position: relative;
  background: #111;
}

.post-media img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
}

.watermark {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
}

.caption {
  padding: 16px 22px 0;
  font-size: 16px;
}

.interact {
  padding: 14px 22px 0;
  display: flex;
  gap: 22px;
  align-items: center;
}

.like-btn,
.comment-btn {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font-size: 23px;
}

.comment-btn {
  color: #aaa;
}

.section {
  margin: 30px 0 14px;
  color: #aaa;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .05em;
}

.sub {
  color: #777;
  font-size: 12px;
  line-height: 1.7;
}

.item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-main {
  flex: 1;
}

.item-title {
  font-weight: 800;
}

.search-input,
.form-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #222;
  background: transparent;
  color: #fff;
  outline: none;
  padding: 14px 0;
  font-size: 16px;
}

.search-input {
  height: 50px;
  border: 1px solid #222;
  border-radius: 16px;
  background: #0A0A0A;
  padding: 0 16px;
}

.outline-btn {
  border: 1px solid #444;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 8px 16px;
}

.profile-hero {
  text-align: center;
  padding: 72px 22px 20px;
}

.profile-count {
  text-align: center;
  margin-bottom: 26px;
}

.profile-count .num {
  font-size: 52px;
  font-weight: 200;
  letter-spacing: 6px;
}

.profile-count .label {
  color: #777;
  font-size: 12px;
  letter-spacing: .12em;
}

.profile-name {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 800;
}

.bio {
  margin-top: 8px;
  color: #888;
  font-size: 13px;
  font-style: italic;
}

.meta {
  margin-top: 22px;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.grid img,
.more-tile {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #111;
}

.more-tile {
  border: 0;
  color: #fff;
  display: grid;
  place-items: center;
  background: #151515;
  font-size: 12px;
  letter-spacing: .18em;
}

.setting-row {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #444;
  background: #111;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #777;
}

.switch.on {
  background: #1c1c1c;
  border-color: #777;
}

.switch.on::after {
  left: 23px;
  background: #fff;
}

.input-line {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.input-line label {
  display: block;
  margin-bottom: 8px;
  color: #777;
  font-size: 12px;
}

.locked {
  color: #fff;
  font-size: 16px;
}

.note {
  color: #777;
  font-size: 12px;
  margin-top: 6px;
}

.card {
  background: #111;
  border-radius: 28px;
  padding: 24px;
  margin: 14px 0 34px;
}

.visibility-title {
  font-size: 22px;
  font-weight: 800;
}

.about-logo {
  text-align: center;
  margin: 32px 0;
  font-size: 52px;
  letter-spacing: 8px;
}

.bigline {
  margin: 34px 0;
  font-size: 24px;
  line-height: 1.5;
}

.empty {
  height: 70%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #777;
  line-height: 1.8;
  padding: 30px;
}

.hidden-file {
  display: none;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 120;
  display: none;
  border-radius: 999px;
  background: #fff;
  color: #000;
  padding: 10px 18px;
  font-size: 14px;
}

.modal {
  position: absolute;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0,0,0,.72);
}

.modal.show {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 320px;
  padding: 24px;
  border: 1px solid #222;
  border-radius: 24px;
  background: #101010;
  text-align: center;
}

.modal-card h3 {
  margin: 0 0 18px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}


/* PWA splash screen */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 360ms ease;
}

#splash-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#splash-screen.hide {
  opacity: 0;
  pointer-events: none;
}


/* Real camera preview */
.camera-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
  z-index: 2;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.18), transparent 28%, transparent 68%, rgba(0,0,0,.36)),
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(0,0,0,.20));
}

.camera-error {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 42%;
  z-index: 8;
  color: #777;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}


.start-camera {
  position: absolute;
  left: 50%;
  bottom: 198px;
  transform: translateX(-50%);
  z-index: 12;
  border: 1px solid #444;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 9px 18px;
  font-size: 12px;
  letter-spacing: .08em;
}

.pick-photo.has-camera-button {
  bottom: 246px;
}


.danger-row {
  color: #888;
}

.danger-row span:first-child {
  color: #777;
}


.avatar {
  background-size: cover;
  background-position: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.change-avatar {
  margin: 12px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: .08em;
}

.change-avatar:active {
  opacity: .66;
}


.version-label {
  margin-top: 24px;
  text-align: center;
  color: #444;
  font-size: 11px;
  letter-spacing: .12em;
}


/* v12 Cloud account UI */
.auth-wrap {
  min-height: 100%;
  padding: 88px 24px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  font-size: 52px;
  letter-spacing: .12em;
  font-weight: 300;
  margin-bottom: 18px;
}

.auth-subtitle {
  color: #777;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 38px;
}

.auth-card {
  border: 1px solid #141414;
  border-radius: 28px;
  background: #070707;
  padding: 22px;
}

.auth-input {
  width: 100%;
  height: 48px;
  margin-bottom: 12px;
  border: 0;
  border-bottom: 1px solid #1a1a1a;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 15px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.cloud-badge {
  position: absolute;
  left: 22px;
  bottom: 82px;
  color: #444;
  font-size: 10px;
  letter-spacing: .12em;
  z-index: 70;
}

.sync-note {
  margin-top: 12px;
  color: #555;
  font-size: 11px;
  line-height: 1.7;
}

.setting-row.cloud-disabled {
  color: #555;
}

.loading {
  height: 100%;
  display: grid;
  place-items: center;
  color: #777;
  font-size: 13px;
  letter-spacing: .12em;
}


/* v14 delete check-in */
.delete-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 13px;
  padding: 2px 0;
}

.delete-btn:active {
  color: #fff;
}

.photo-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
}

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

.tile-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  padding: 0;
}


/* v15 profile clean-up */
.profile-hero-clean {
  padding-top: 96px;
}

.input-line .form-input[readonly] {
  color: #777;
}


/* v16 real friends */
.search-input + .outline-btn {
  height: 50px;
  min-width: 72px;
}

.ghost-btn {
  white-space: nowrap;
}

.friend-status {
  color: #777;
  font-size: 12px;
}


/* v17 feed image ratio */
.post-media {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
}

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


.auth-link-row{display:flex;justify-content:flex-end;margin-top:10px}
.text-link{background:none;border:none;color:#9a9a9a;font-size:13px;letter-spacing:.08em;padding:0;cursor:pointer}
.text-link:active{opacity:.7}


/* v28 7 DAYS ARCHIVE */
.archive-mini {
  margin-bottom: 26px;
  text-align: center;
}

.archive-mini-title {
  color: #777;
  font-size: 11px;
  letter-spacing: .18em;
}

.archive-mini-count {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 200;
  letter-spacing: .12em;
}

.archive-mini-line {
  margin-top: 8px;
  color: #777;
  font-size: 12px;
}

.ghost-pill {
  margin-top: 22px;
  border: 1px solid #333;
  border-radius: 999px;
  background: transparent;
  color: #aaa;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: .08em;
}

.archive-panel {
  border: 1px solid #151515;
  border-radius: 26px;
  background: #070707;
  padding: 22px;
  margin-bottom: 24px;
}

.archive-panel-count {
  font-size: 44px;
  font-weight: 200;
  letter-spacing: .12em;
}

.archive-panel-line {
  margin-top: 10px;
  color: #777;
  font-size: 13px;
}

.archive-days {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.archive-days span {
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #171717;
  color: #444;
  font-size: 10px;
}

.archive-days span.on {
  color: #fff;
  border-color: #fff;
}

.archive-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.archive-card {
  min-height: 620px;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.archive-card-logo {
  font-size: 42px;
  letter-spacing: .14em;
}

.archive-card-sub {
  margin-top: 8px;
  color: #aaa;
  font-size: 13px;
  letter-spacing: .18em;
}

.archive-card-name {
  margin-top: 80px;
  font-size: 42px;
  font-weight: 700;
}

.archive-card-count {
  margin-top: 28px;
  font-size: 72px;
  font-weight: 200;
  letter-spacing: .12em;
}

.archive-card-row {
  margin-top: 16px;
  color: #aaa;
  font-size: 16px;
}

.archive-card-footer {
  margin-top: auto;
  font-size: 24px;
  letter-spacing: .06em;
}


/* v29 7 DAYS polish */
.archive-mini {
  margin-bottom: 30px;
}

.archive-mini-count {
  font-size: 42px;
}

.archive-mini-line {
  min-height: 18px;
}

.success-panel {
  margin-top: 80px;
  border: 1px solid #151515;
  border-radius: 30px;
  background: #050505;
  padding: 34px 24px;
  text-align: center;
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .04em;
}

.success-count {
  margin-top: 28px;
  font-size: 72px;
  font-weight: 200;
  letter-spacing: .12em;
}

.success-line {
  margin-top: 18px;
  color: #777;
  font-size: 13px;
  line-height: 1.7;
}

.success-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.archive-card-motto {
  margin-top: 34px;
  color: #aaa;
  font-size: 15px;
  line-height: 1.7;
}


/* v30 MONTH ARCHIVE */
.month-panel {
  border: 1px solid #151515;
  border-radius: 26px;
  background: #070707;
  padding: 20px;
  margin-bottom: 26px;
}

.month-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.month-title {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .12em;
}

.month-number {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .08em;
}

.month-number span {
  font-size: 14px;
  margin-left: 4px;
  color: #aaa;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.week-row span {
  color: #aaa;
  font-size: 9px;
  text-align: center;
  letter-spacing: .04em;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.month-cell {
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 5px;
  background: #1a1a1a;
  color: #555;
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.month-cell.empty-cell {
  background: transparent;
}

.month-cell.has-record {
  background: #333;
}

.month-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(.9);
}

.month-stats {
  margin-top: 18px;
  color: #aaa;
  font-size: 12px;
  line-height: 1.9;
}

.day-record {
  margin-bottom: 18px;
  border-bottom: 1px solid #111;
  padding-bottom: 16px;
}

.day-record img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(.95);
}

.day-record-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  color: #aaa;
  font-size: 13px;
}


/* v31 navigation / account fix */
.button-row {
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logout-btn {
  display: block;
  margin: 64px auto 0;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 12px 24px;
}


/* v32 Settings UI polish */
.setting-row.button-row {
  width: 100%;
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #111 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #fff !important;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.setting-row.button-row span {
  color: inherit;
  font: inherit;
}

.setting-row.button-row:active {
  background: rgba(255,255,255,.04) !important;
}

.setting-row.button-row:focus {
  outline: none !important;
}

.setting-row.button-row::-moz-focus-inner {
  border: 0;
}

.logout-btn {
  display: block;
  margin: 56px auto 0;
  background: transparent !important;
  border: 0 !important;
  color: #666 !important;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 12px 24px;
  appearance: none;
  -webkit-appearance: none;
}

.logout-btn:active {
  color: #fff !important;
  background: transparent !important;
}

.setting-row {
  background: transparent;
}

.version-label {
  color: #333;
}


/* v33 7 IN 10 Core */
.archive-mini-sub {
  margin-top: 8px;
  color: #4d4d4d;
  font-size: 11px;
  letter-spacing: .06em;
}

.archive-panel-sub {
  margin-top: 8px;
  color: #555;
  font-size: 12px;
}

.onboarding-card {
  border: 1px solid #151515;
  border-radius: 30px;
  background: #050505;
  padding: 28px 22px;
}

.onboarding-kicker {
  color: #777;
  font-size: 11px;
  letter-spacing: .18em;
}

.onboarding-title {
  margin-top: 18px;
  color: #fff;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}

.onboarding-copy {
  margin-top: 18px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.8;
}


/* v34 Bottom Nav Polish */
.bottom-nav {
  height: calc(72px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #000;
  border-top: 1px solid #111;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.bottom-nav .nav-btn {
  position: relative;
  height: 72px;
  border: 0;
  background: transparent !important;
  color: #666;
  display: grid;
  place-items: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.bottom-nav .nav-btn:active {
  background: rgba(255,255,255,.035) !important;
}

.bottom-nav .nav-btn:focus {
  outline: none;
}

.nav-icon {
  width: 21px;
  height: 21px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transform: translateY(-2px);
}

.bottom-nav .nav-btn.active {
  color: #fff;
}

.nav-active-line {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
  opacity: 0;
}

.bottom-nav .nav-btn.active .nav-active-line {
  opacity: 1;
}


/* v35 Fixed Bottom Nav */
.screen {
  overflow: hidden;
}

.scroll,
.feed-list {
  padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  -webkit-overflow-scrolling: touch;
}

.home-body {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  width: min(100vw, 430px) !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  height: calc(72px + env(safe-area-inset-bottom)) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
  background: #000 !important;
  border-top: 1px solid #111 !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

html,
body {
  overscroll-behavior-y: none;
}

@supports (-webkit-touch-callout: none) {
  .bottom-nav {
    transform: translate3d(-50%, 0, 0) !important;
  }
}


/* v37 Avatar Crop + Friends Clean */
.avatar-crop-scroll {
  padding-bottom: 40px !important;
}

.avatar-crop-helper {
  margin: 8px 24px 18px;
  text-align: center;
  color: #888;
  font-size: 13px;
  line-height: 1.7;
}

.avatar-crop-stage {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}

.avatar-crop-viewport {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0a0a;
  border-radius: 28px;
  touch-action: none;
}

.avatar-crop-viewport img {
  position: absolute;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.avatar-crop-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.avatar-crop-mask::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.56);
  border: 2px solid rgba(255,255,255,.95);
}

.avatar-crop-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px 0;
  color: #aaa;
}

.avatar-crop-slider input[type=range] {
  flex: 1;
}

.avatar-crop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px;
}


/* v38 Fixed Check-in Screen */
.page-home,
.page-confirm,
.page-checkinSuccess {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.page-home .home-body,
.page-confirm,
.page-checkinSuccess {
  touch-action: manipulation;
}

.page-home .scroll,
.page-confirm .scroll,
.page-checkinSuccess .scroll {
  overflow: hidden !important;
}

.page-home {
  height: 100%;
  max-height: 100%;
}

.page-home .home-body {
  min-height: calc(100% - 72px - env(safe-area-inset-bottom));
  overflow: hidden;
}

/* Keep the check-in circle visually locked in place */
.check-circle {
  flex-shrink: 0;
}


/* v39 Core Clarity + 10 DAYS ARCHIVE */
.success-evidence {
  margin-top: 18px;
  color: #aaa;
  font-size: 15px;
  letter-spacing: .12em;
}

.friend-list-item .item-main {
  display: grid;
  gap: 2px;
}

.friend-progress {
  margin-top: 4px;
  color: #fff;
  font-size: 26px;
  font-weight: 200;
  letter-spacing: .12em;
}

.evidence-post .post-head {
  align-items: center;
}

.evidence-tag {
  margin-top: 3px;
  color: #777;
  font-size: 10px;
  letter-spacing: .16em;
}

.invite-row {
  width: 100%;
  margin: 14px 0 18px;
  border: 1px solid #181818;
  border-radius: 18px;
  background: #060606;
  color: #fff;
  padding: 16px;
  font-size: 14px;
  letter-spacing: .04em;
  appearance: none;
  -webkit-appearance: none;
}

.invite-row:active {
  background: #111;
}


/* v40 10-day evidence slots */
.archive-days.archive-days-10 {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.archive-slot {
  aspect-ratio: 1 / 1;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #171717;
  border-radius: 4px;
  color: #444;
  font-size: 10px;
  overflow: hidden;
  background: #050505;
}

.archive-slot.has-record {
  border-color: #333;
  background: #111;
}

.archive-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(.9);
  display: block;
}

.archive-slot span {
  color: #444;
  font-size: 10px;
  letter-spacing: .04em;
}


/* v42 confirm screen fix */
.confirm-panel {
  padding: 30px 28px calc(112px + env(safe-area-inset-bottom)) !important;
  max-height: min(46vh, 420px);
  overflow-y: auto;
}

.action-row {
  margin-top: 26px !important;
  position: sticky;
  bottom: calc(16px + env(safe-area-inset-bottom));
  padding-top: 16px;
  background: linear-gradient(to top, rgba(8,8,8,0.96), rgba(8,8,8,0.92), rgba(8,8,8,0));
}

.primary-btn,
.ghost-btn {
  min-height: 48px;
}

@media (max-height: 760px) {
  .confirm-panel {
    padding-bottom: calc(126px + env(safe-area-inset-bottom)) !important;
    max-height: min(50vh, 440px);
  }
}


/* v43 confirm ui polish */
.confirm-photo {
  object-fit: contain !important;
  object-position: center top;
  background: #000;
}

.confirm-back {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 18px;
  z-index: 5;
  border: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.confirm-panel {
  left: 14px !important;
  right: 14px !important;
  bottom: 18px !important;
  border-radius: 26px !important;
  padding: 26px 24px calc(74px + env(safe-area-inset-bottom)) !important;
  max-height: min(36vh, 300px) !important;
  background: rgba(6, 6, 6, 0.94) !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}

.confirm-sub {
  margin-top: 10px;
  color: #8a8a8a;
}

.action-row {
  margin-top: 20px !important;
  position: static !important;
  padding-top: 0 !important;
  background: transparent !important;
}

.ghost-btn,
.primary-btn {
  min-height: 52px;
}

.ghost-btn {
  color: #b0b0b0 !important;
}

.primary-btn {
  padding: 13px 34px !important;
}

@media (max-height: 760px) {
  .confirm-panel {
    bottom: 12px !important;
    padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    max-height: min(39vh, 320px) !important;
  }
}


/* v44 confirm button tweak */
.confirm-back {
  font-size: 22px !important;
  line-height: 1;
  padding: 8px 11px !important;
  min-width: 40px;
}

.action-row {
  transform: translateY(-8px);
}

.primary-btn {
  min-height: 58px !important;
  min-width: 190px;
  font-size: 18px !important;
  font-weight: 700;
  padding: 14px 38px !important;
  border-radius: 999px;
}

.ghost-btn {
  min-height: 52px !important;
  font-size: 16px !important;
}


/* v45 scroll + like fix */
.scroll,
.feed-list {
  box-sizing: border-box;
}

.page-profile .scroll,
.page-sweatRoll .scroll {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding-bottom: calc(190px + env(safe-area-inset-bottom)) !important;
}

.page-profile .grid,
.page-sweatRoll .grid {
  margin-bottom: 80px;
}


/* v47 Makeup Check-in */
.makeup-scroll {
  padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important;
}

.makeup-preview {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 20px 0 28px;
  border: 1px solid #161616;
  border-radius: 26px;
  background: #070707;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.makeup-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.03) brightness(.95);
}

.makeup-photo-empty {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 15px;
  letter-spacing: .08em;
}

.makeup-actions {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
}

.makeup-actions .ghost-btn,
.makeup-actions .primary-btn {
  min-height: 54px;
}


/* v48 Makeup photo picker fix */
.makeup-preview-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.makeup-change-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(0,0,0,.58);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}
