:root {
  --ink: #17211d;
  --muted: #5d6762;
  --paper: #fbf8ef;
  --line: #ded5bf;
  --teal: #0f6f63;
  --accent: #0f6f63;
  --accent-soft: #e8f5ef;
  --category-accent: #0f6f63;
  --category-soft: #e8f5ef;
  --subtype-accent: #0f6f63;
  --surface-ground: #f3eee1;
  --mint: #e8f5ef;
  --rose: #b84a3d;
  --shadow: 0 24px 70px rgba(24, 31, 28, 0.18);
}

body[data-theme="adobe"] {
  --ink: #171b18;
  --muted: #59605b;
  --paper: #fbf9f0;
  --line: #d8d2c2;
  --accent: #b82f5d;
  --accent-soft: #f7e7ee;
  --surface-ground: #bfc1bd;
}

body[data-theme="violet"] {
  --accent: #6e4b8b;
  --accent-soft: #f0eaf6;
}

body[data-theme="indigo"] {
  --accent: #40598f;
  --accent-soft: #e9edf7;
}

body[data-theme="blue"] {
  --accent: #2f6f91;
  --accent-soft: #e7f2f7;
}

body[data-theme="green"] {
  --accent: #0f6f63;
  --accent-soft: #e8f5ef;
}

body[data-theme="yellow"] {
  --accent: #a5791d;
  --accent-soft: #fbf2d8;
}

body[data-theme="orange"] {
  --accent: #b66336;
  --accent-soft: #faece2;
}

body[data-theme="red"] {
  --accent: #a94747;
  --accent-soft: #f8e8e7;
}

body[data-category="Grounding"] {
  --category-accent: #a94747;
  --category-soft: #f8e8e7;
}

body[data-category="Ease"] {
  --category-accent: #90b85a;
  --category-soft: #eef6e4;
}

body[data-category="Creating"] {
  --category-accent: #b66336;
  --category-soft: #faece2;
}

body[data-subtype="awareness"],
body[data-subtype="self-trust"] {
  --subtype-accent: #2f6f91;
}

body[data-subtype="focus"],
body[data-subtype="initiate"] {
  --subtype-accent: #a94747;
}

body[data-subtype="sustaining"],
body[data-subtype="rhythm"],
body[data-subtype="rest"],
body[data-subtype="receiving"] {
  --subtype-accent: #90b85a;
}

body[data-subtype="courage"],
body[data-subtype="action"],
body[data-subtype="productivity"] {
  --subtype-accent: #b66336;
}

body[data-subtype="alignment"],
body[data-subtype="expansion"] {
  --subtype-accent: #6e4b8b;
}

body[data-subtype="abundance"] {
  --subtype-accent: #0f6f63;
}

body[data-shared="false"] {
  --category-accent: #7a7469;
  --category-soft: #efebe2;
  --subtype-accent: #7a7469;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(color-mix(in srgb, var(--category-accent) 11%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--category-accent) 11%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--surface-ground) 34%, #f7f1e5);
  background-size: 28px 28px;
}

.wallpaper-layer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8vw;
  pointer-events: none;
  opacity: 0;
  color: rgba(15, 111, 99, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1;
  text-align: center;
  transition: opacity 220ms ease;
  z-index: 0;
}

body.wallpaper-on .wallpaper-layer {
  opacity: 1;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 32px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.account-identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  max-width: min(340px, 46vw);
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
}

.account-identity[hidden] {
  display: none;
}

.account-initial {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.account-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.account-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.subhead {
  max-width: 580px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.38;
}

.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft) 78%, transparent);
  color: #143d35;
}

.collection-finder {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(260px, 1fr);
  gap: 12px 18px;
  align-items: end;
  margin: 14px 0 18px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection-finder-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.collection-search {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.collection-results {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 4px;
}

.collection-option {
  min-width: 170px;
  max-width: 260px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
  text-align: left;
}

.collection-option strong,
.collection-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-option span {
  color: var(--muted);
  font-size: 0.76rem;
}

.collection-option.active {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: var(--accent-soft);
}

.collection-empty-result {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf7;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.mode-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0 0 12px;
}

.handoff-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, auto);
  gap: 12px;
  align-items: end;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  background: rgba(251, 248, 239, 0.84);
}

.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
}

.handoff-actions input {
  width: min(100%, 240px);
  min-width: 190px;
}

.action-field {
  align-content: end;
}

.tester-auth-panel {
  margin-top: 18px;
}

.readiness-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.readiness-item {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--category-accent) 18%, var(--line));
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.76);
}

.readiness-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readiness-item strong {
  color: color-mix(in srgb, var(--category-accent) 70%, var(--ink));
  font-size: 1rem;
  line-height: 1.1;
}

.segmented-control,
.theme-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.86);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.mode-button.active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-swatch {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 253, 247, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.theme-swatch.active {
  box-shadow: 0 0 0 3px rgba(23, 33, 29, 0.18);
}

.theme-swatch.adobe {
  background: conic-gradient(#a94747, #b66336, #90b85a, #2f6f91, #6e4b8b, #a94747);
}

.theme-swatch.violet {
  background: #6e4b8b;
}

.theme-swatch.indigo {
  background: #40598f;
}

.theme-swatch.blue {
  background: #2f6f91;
}

.theme-swatch.green {
  background: #0f6f63;
}

.theme-swatch.yellow {
  background: #c99a2e;
}

.theme-swatch.orange {
  background: #d17a3f;
}

.theme-swatch.red {
  background: #b84a3d;
}

.phone-stage {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(430px, 1fr);
  gap: 18px;
  align-items: start;
}

.phone {
  width: min(100%, 302px);
  height: min(620px, calc(100vh - 178px));
  min-height: 540px;
  margin: 0 auto;
  padding: 13px;
  border: 1px solid #2a312d;
  border-radius: 36px;
  background:
    radial-gradient(circle at 28% 12%, color-mix(in srgb, var(--category-soft) 85%, white), transparent 28%),
    linear-gradient(165deg, var(--accent), #1c2522 58%, #111613);
  box-shadow: var(--shadow);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px 13px;
}

.notification-preview {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 4px solid var(--subtype-accent);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.notification-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
  color: #46504b;
  font-size: 0.77rem;
  font-weight: 750;
}

.app-dot {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: var(--category-accent);
}

.notification-preview p {
  margin: 8px 0 0;
  color: #111613;
  font-size: 0.94rem;
  line-height: 1.35;
}

.collection-preview {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.collection-preview h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  line-height: 1.05;
}

.collection-preview p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.3;
}

.collection-preview .card-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.card-workspace {
  display: grid;
  min-height: clamp(210px, 30vh, 285px);
  place-items: center;
}

.affirmation-card {
  position: relative;
  width: 100%;
  min-height: clamp(205px, 27vh, 260px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--subtype-accent) 28%, rgba(255, 255, 255, 0.54));
  border-top-color: color-mix(in srgb, var(--subtype-accent) 56%, rgba(255, 255, 255, 0.54));
  border-radius: 26px;
  background:
    linear-gradient(rgba(222, 213, 191, 0.42) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, opacity 180ms ease;
  touch-action: pan-y;
}

.heart-button {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(184, 74, 61, 0.18);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.82);
  color: rgba(184, 74, 61, 0.48);
  font-size: 1.35rem;
  line-height: 1;
}

.heart-button.is-favorite {
  background: #fff4f1;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
}

.affirmation-card.swipe-left {
  transform: translateX(-38px) rotate(-5deg);
  opacity: 0.68;
}

.affirmation-card.swipe-right {
  transform: translateX(38px) rotate(5deg);
  opacity: 0.86;
}

.card-kicker {
  margin: 0;
  color: var(--category-accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-text {
  margin: 20px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  line-height: 1.08;
}

.card-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.swipe-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.round-action {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.round-action.danger {
  color: var(--rose);
}

.round-action.keep {
  color: var(--accent);
}

.builder-panel,
.library {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 248, 239, 0.9);
}

.builder-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding: 16px;
}

.panel-heading {
  display: grid;
  gap: 2px;
}

.panel-heading.compact h2 {
  font-size: 1.22rem;
}

.builder-section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.handoff-workflow {
  border-top-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.compact-field {
  max-width: calc(50% - 8px);
}

.field,
.toggle-row {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 760;
}

textarea,
select,
input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #bfb399;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline-color: var(--teal);
  padding: 8px 0;
}

textarea {
  resize: vertical;
  min-height: 68px;
  line-height: 1.42;
}

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

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 650;
}

.toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
}

.preview-tools {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.preview-tools summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-weight: 760;
}

.preview-tools-content {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.ghost-button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--ink);
}

.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.status-text {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.library {
  margin-top: 28px;
  padding: 22px;
}

.operations-section {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding: 24px 0 4px;
  border-top: 1px solid var(--line);
}

.operations-heading {
  display: grid;
  gap: 2px;
}

.operations-section .mode-strip,
.operations-section .handoff-panel,
.operations-section .readiness-strip {
  margin-bottom: 0;
}

.operations-section .handoff-workflow {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 8px;
  background: rgba(251, 248, 239, 0.84);
}

.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.card-list li {
  position: relative;
  min-height: 120px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
}

.card-list li.is-favorite::after {
  content: "\2665";
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--accent);
}

.card-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--category-accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-list p {
  margin: 0;
  line-height: 1.35;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 22px, 520px);
    padding-top: 22px;
  }

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

  .hero-actions {
    justify-content: flex-start;
  }

  .account-identity {
    max-width: 100%;
  }

  h1 {
    font-size: 2.75rem;
  }

  .notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-finder {
    grid-template-columns: 1fr;
  }

  .collection-results {
    grid-column: 1;
  }

  .handoff-panel {
    grid-template-columns: 1fr;
  }

  .handoff-actions {
    justify-content: flex-start;
  }

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

  .compact-field {
    max-width: none;
  }

  .phone-stage,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(100%, 318px);
    height: 620px;
    min-height: 0;
  }

  .card-text {
    font-size: 1.9rem;
  }

  .card-list {
    grid-template-columns: 1fr;
  }
}

.user-preview-body {
  min-height: 100vh;
  background:
    linear-gradient(color-mix(in srgb, var(--category-accent) 11%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--category-accent) 11%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--surface-ground) 34%, #f7f1e5);
  background-size: 28px 28px;
}

.user-preview-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 360px);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: 18px 0;
}

.user-only-snapshot {
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 360px);
}

.user-preview-copy h1 {
  max-width: 560px;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1;
}

.preview-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.mode-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.preview-principles span {
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--category-accent) 28%, var(--line));
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.76);
  color: color-mix(in srgb, var(--category-accent) 65%, var(--ink));
  font-size: 0.9rem;
  font-weight: 700;
}

.user-preview-device {
  display: grid;
  gap: 12px;
  align-content: center;
}

.user-phone {
  width: min(100%, 340px);
  height: min(690px, calc(100dvh - 32px));
  min-height: 600px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #2a312d;
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(165deg, #151b18, #0b0f0d);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lock-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 16px 14px 16px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 26% 18%, color-mix(in srgb, var(--category-soft) 82%, white), transparent 26%),
    radial-gradient(circle at 80% 34%, color-mix(in srgb, var(--category-accent) 34%, transparent), transparent 28%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 86%, #202620), #171d19 54%, #0c100e);
}

.lock-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.user-status,
.lock-date,
.lock-time,
.user-lock-note,
.lock-bottom,
.user-settings-panel {
  position: relative;
  z-index: 1;
}

.user-status {
  padding: 0 8px 18px;
}

.lock-date,
.lock-time {
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.lock-date {
  font-size: 0.9rem;
  font-weight: 700;
}

.lock-time {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8.4vh, 5rem);
  line-height: 0.9;
}

.user-lock-note {
  margin-top: auto;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.76);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.user-lock-note p {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.18;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.soft-icon-button,
.soft-chip {
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--category-accent) 28%, var(--line));
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink);
}

.soft-icon-button {
  width: 38px;
  border-radius: 50%;
  color: rgba(184, 47, 93, 0.64);
  font-size: 1rem;
}

.soft-icon-button.active {
  background: #fff4f1;
  color: var(--accent);
}

body[data-shared="false"] .user-lock-note {
  opacity: 0.88;
}

.soft-chip {
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.lock-bottom {
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
}

.lock-bottom span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(10px);
}

.user-heart {
  left: auto;
  right: 18px;
}

.user-card-footer,
.user-settings-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.user-settings-panel {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--category-accent) 18%, transparent);
  border-radius: 8px;
  background: rgba(251, 248, 239, 0.92);
}

.follow-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--category-accent) 20%, var(--line));
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.68);
}

.follow-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.tester-feedback {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.mini-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.pill-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.86);
  color: var(--ink);
}

.pill-button.active {
  border-color: color-mix(in srgb, var(--category-accent) 34%, var(--line));
  background: var(--category-soft);
  color: color-mix(in srgb, var(--category-accent) 76%, #111613);
}

.user-settings-strip {
  margin-top: 0;
}

@media (max-width: 820px) {
  .user-preview-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    width: min(100% - 22px, 430px);
    padding-top: 16px;
  }

  .user-preview-copy h1 {
    font-size: 2.2rem;
  }

  .user-preview-copy {
    order: 2;
  }

  .user-phone {
    order: 1;
    width: min(100%, 340px);
    height: min(680px, calc(100dvh - 28px));
    min-height: 590px;
  }

  .user-preview-device {
    order: 1;
  }

  .lock-time {
    font-size: 4.35rem;
  }

  .user-lock-note p {
    font-size: 1.18rem;
  }
}
