:root {
  --bg: #eee3d3;
  --surface: #fffdf8;
  --surface-soft: #f9f3ea;
  --nav: #b89667;
  --nav-dark: #8c6a3f;
  --text: #2f271f;
  --muted: #817263;
  --line: #e2d5c3;
  --gold: #f4c95d;
  --rose: #f3b9b5;
  --sage: #a8b79d;
  --shadow: 0 18px 48px rgba(98, 73, 43, 0.13);
  --type-display: 32px;
  --type-title: 20px;
  --type-title-compact: 18px;
  --type-list-title: 17.5px;
  --type-panel-title: 16px;
  --type-section-title: 15px;
  --type-body: 14px;
  --type-body-sm: 13px;
  --type-caption: 12px;
  --type-caption-sm: 11.5px;
  --type-micro: 10px;
  --weight-regular: 500;
  --weight-strong: 700;
  --weight-bold: 800;
  --weight-heavy: 900;
  --font-logo: var(--type-display);
  --font-screen-title: var(--type-title);
  --font-card-title: var(--type-title-compact);
  --font-tab: var(--type-list-title);
  --font-subtitle: var(--type-body-sm);
  --font-body: var(--type-body-sm);
  --font-meta: var(--type-caption);
  --font-button: var(--type-body-sm);
  --font-input: var(--type-title);
  --font-nav: var(--type-body);
  --font-watermark: 30px;
  --app-height: 100svh;
  --nav-height: 68px;
  --home-gap: 10px;
  --home-pad-x: 16px;
  --home-pad-top: 18px;
  --home-pad-bottom: 10px;
  --habit-gap: 9px;
  --habit-card-height: 92px;
  --home-verse-card-height: 300px;
  --leading-title: 1.18;
  --leading-body: 1.38;
  --leading-meta: 1.3;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR",
    system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.5), transparent 32%),
    linear-gradient(180deg, #f4ecdf 0%, var(--bg) 42%, #e7d8c5 100%);
}

button {
  font: inherit;
}

input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: 100%;
  height: var(--app-height);
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
}

.phone-frame {
  width: min(100%, 430px);
  height: var(--app-height);
  min-height: 0;
  max-height: var(--app-height);
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--nav-height);
  overflow: hidden;
  border: 1px solid rgba(139, 104, 61, 0.22);
  border-radius: 0;
  background: linear-gradient(180deg, #f2e7d8 0%, #eadbc7 100%);
  box-shadow: var(--shadow);
}

.content {
  min-height: 0;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: var(--home-gap);
  padding: var(--home-pad-top) var(--home-pad-x) var(--home-pad-bottom);
  overscroll-behavior: contain;
}

.page-view {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.home-view {
  grid-template-rows: auto var(--home-verse-card-height) minmax(0, 1fr);
  align-content: stretch;
}

.app-shell.is-list-open .list-view {
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding-top: 18px;
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 40px;
}

h1 {
  margin: 0;
  color: #3a2d21;
  font-size: var(--font-logo);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

h1 span {
  color: var(--nav-dark);
}

.hand-border {
  position: relative;
  border: 1px solid rgba(117, 86, 50, 0.1);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(118, 88, 52, 0.1);
}

.hand-border::before {
  display: none;
}

.verse-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: var(--home-verse-card-height);
  min-height: 0;
  padding: 14px 14px 13px;
}

.verse-card.long-verse {
  padding-block: 12px 11px;
}

.verse-top {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 9px;
  color: #3b3026;
  font-size: var(--font-card-title);
  font-weight: 850;
}

.verse-top strong {
  padding: 6px 9px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--nav-dark);
}

.highlight-bar {
  appearance: none;
  cursor: pointer;
  width: min(100%, 68px);
  height: 28px;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7d979, var(--gold));
  box-shadow: inset 0 0 0 1px rgba(125, 88, 25, 0.12);
}

.highlight-bar:focus-visible,
.circle-control:focus-visible,
.back-button:focus-visible,
.trail-back:focus-visible,
.category-pill:focus-visible,
.memory-card:focus-visible,
.check-box:focus-visible,
.metric-field input:focus-visible,
.reading-plan-button:focus-visible {
  outline: 3px solid rgba(140, 106, 63, 0.36);
  outline-offset: 3px;
}

.sun-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 50%, #fff9db 0 21%, transparent 22%),
    conic-gradient(from 0deg, #d9a83d 0 12%, transparent 12% 25%, #d9a83d 25% 37%, transparent 37% 50%, #d9a83d 50% 62%, transparent 62% 75%, #d9a83d 75% 87%, transparent 87%),
    #ffe8a1;
}

.sun-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid #7d5b20;
  border-radius: 50%;
}

.verse-body {
  align-self: stretch;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  min-height: 0;
  margin-top: 12px;
}

.verse-card.long-verse .verse-body {
  margin-top: 8px;
}

.circle-control {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff1b8;
  box-shadow: inset 0 0 0 1px rgba(129, 94, 31, 0.12);
  position: relative;
}

.circle-control::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 10px;
  height: 10px;
  border: solid var(--nav-dark);
  border-width: 0 0 3px 3px;
}

.circle-control.left::after {
  left: 13px;
  transform: rotate(45deg);
}

.circle-control.right::after {
  right: 13px;
  transform: rotate(-135deg);
}

.verse-copy,
.verse-lines {
  align-self: center;
  display: grid;
  gap: 4px;
  min-height: 0;
}

.verse-card.long-verse .verse-copy,
.verse-measure.long-verse-measure {
  gap: 3px;
}

.verse-copy p {
  margin: 0;
}

.verse-meta {
  color: var(--nav-dark);
  font-size: var(--font-meta);
  font-weight: 850;
  line-height: var(--leading-meta);
}

.verse-topic {
  color: #362c23;
  font-size: var(--font-card-title);
  font-weight: 900;
  line-height: var(--leading-title);
}

.verse-ref {
  color: var(--nav-dark);
  font-size: var(--font-subtitle);
  font-weight: 850;
  line-height: 1.2;
}

.verse-note {
  color: var(--muted);
  font-size: var(--font-body);
  font-weight: 700;
  line-height: var(--leading-body);
}

.verse-card.long-verse .verse-note,
.verse-measure.long-verse-measure .verse-note {
  line-height: 1.3;
}

.verse-measure {
  position: absolute;
  left: -10000px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}

.verse-lines span,
.under-line {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #eadfce;
}

.verse-lines span:first-child {
  width: 88%;
}

.verse-lines span:last-child {
  width: 100%;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-header {
  display: grid;
  gap: 4px;
}

.page-header p,
.page-header h2,
.placeholder-panel h3,
.panel-title strong,
.panel-title span {
  margin: 0;
}

.page-header p {
  color: var(--nav-dark);
  font-size: var(--font-meta);
  font-weight: 850;
}

.page-header h2 {
  color: #3a2d21;
  font-size: var(--font-screen-title);
  font-weight: 950;
  line-height: var(--leading-title);
}

.placeholder-panel {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 18px;
}

.placeholder-panel h3 {
  color: #3a2d21;
  font-size: var(--font-screen-title);
  font-weight: 950;
}

.profile-scroll {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 2px;
  scrollbar-width: none;
}

.profile-scroll::-webkit-scrollbar {
  display: none;
}

.profile-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title strong {
  color: #342a21;
  font-size: var(--font-card-title);
  font-weight: 950;
}

.panel-title span {
  color: var(--muted);
  font-size: var(--font-meta);
  font-weight: 800;
}

.weekly-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.weekly-summary article {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-radius: 14px;
  padding: 10px 8px;
  background: var(--surface-soft);
  color: var(--muted);
}

.weekly-summary span {
  font-size: var(--font-meta);
  font-weight: 850;
}

.weekly-summary strong {
  color: #342a21;
  font-size: var(--font-card-title);
  font-weight: 950;
  line-height: 1;
}

.weekly-summary b {
  font: inherit;
}

.weekly-summary small {
  overflow: hidden;
  color: var(--nav-dark);
  font-size: var(--font-meta);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.week-day {
  min-width: 0;
  display: grid;
  gap: 5px;
  border-radius: 13px;
  padding: 8px 4px;
  background: #fbf7ef;
  color: var(--muted);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(117, 86, 50, 0.08);
}

.week-day.today {
  background: #fff4cf;
  color: #75571c;
}

.week-day strong {
  color: inherit;
  font-size: var(--font-meta);
  font-weight: 950;
}

.week-day span {
  display: grid;
  place-items: center;
  min-height: 17px;
  border-radius: 999px;
  background: rgba(184, 150, 103, 0.13);
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: 900;
}

.week-day span.done {
  background: #f1d579;
  color: #5f4717;
}

.settings-grid {
  display: grid;
  gap: 9px;
}

.settings-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 42px;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 9px 10px;
  background: var(--surface-soft);
  color: var(--muted);
}

.settings-grid span {
  color: #342a21;
  font-size: var(--font-body);
  font-weight: 900;
}

.settings-grid input {
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 12px;
  padding: 4px 9px;
  background: #fffaf1;
  box-shadow: inset 0 0 0 1px rgba(117, 86, 50, 0.14);
  color: #332920;
  font-size: var(--font-input);
  font-weight: 900;
  text-align: right;
}

.settings-grid em {
  color: var(--nav-dark);
  font-size: var(--font-meta);
  font-style: normal;
  font-weight: 900;
}

.list-header p,
.list-header h2 {
  margin: 0;
}

.list-header p {
  color: var(--nav-dark);
  font-size: var(--font-meta);
  font-weight: 800;
}

.list-header h2 {
  margin-top: 3px;
  color: #3a2d21;
  font-size: var(--font-screen-title);
  letter-spacing: 0;
  line-height: var(--leading-title);
}

.back-button {
  appearance: none;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: #fffaf1;
  color: var(--nav-dark);
  box-shadow: inset 0 0 0 1px rgba(117, 86, 50, 0.12);
  cursor: pointer;
  font-size: var(--font-button);
  font-weight: 850;
}

.memory-list {
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.memory-trail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: var(--font-meta);
  font-weight: 800;
  line-height: var(--leading-meta);
}

.trail-back {
  appearance: none;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-soft);
  color: var(--nav-dark);
  cursor: pointer;
  font-size: var(--font-button);
  font-weight: 900;
}

.memory-trail span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-note {
  border-radius: 16px;
  padding: 12px 13px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: var(--font-body);
  font-weight: 750;
  line-height: var(--leading-body);
}

.memory-items {
  max-height: min(560px, calc(100dvh - 230px));
  overflow: auto;
  display: grid;
  gap: 9px;
  padding-right: 2px;
}

.section-overview {
  height: 100%;
  max-height: none;
  overflow: hidden;
  grid-template-rows: repeat(5, minmax(112px, 1fr));
  gap: 9px;
  padding-right: 0;
}

.section-group {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  border-radius: 20px;
  padding: 11px;
  background: #fbf7ef;
  box-shadow: inset 0 0 0 1px rgba(117, 86, 50, 0.08);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.section-heading span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #efe4d5;
  color: var(--nav-dark);
  font-size: var(--font-button);
  font-weight: 900;
}

.section-heading strong {
  min-width: 0;
  overflow: hidden;
  color: #322820;
  font-size: var(--font-subtitle);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.category-pill {
  appearance: none;
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  padding: 16px 8px 10px;
  background: #fffdf8;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(117, 86, 50, 0.08),
    0 5px 14px rgba(118, 88, 52, 0.06);
}

.category-pill:hover {
  background: #fff8ea;
}

.category-watermark {
  position: absolute;
  left: 10px;
  top: 6px;
  color: rgba(184, 150, 103, 0.2);
  font-size: var(--font-watermark);
  font-weight: 950;
  line-height: 1;
}

.category-pill strong {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  color: #332920;
  font-size: var(--font-button);
  font-weight: 900;
  line-height: var(--leading-title);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-pill em {
  display: none;
}

.verse-card-list {
  max-height: min(620px, calc(100dvh - 214px));
  gap: 10px;
}

.memory-card {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 18px;
  padding: 13px;
  background: #fbf7ef;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(117, 86, 50, 0.08);
  transition:
    background-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.verse-list-card {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  padding: 15px 13px;
}

.memory-card:hover {
  background: #fffaf2;
  box-shadow:
    inset 0 0 0 1px rgba(117, 86, 50, 0.13),
    0 7px 18px rgba(118, 88, 52, 0.08);
  transform: translateY(-1px);
}

.memory-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #efe4d5;
  color: var(--nav-dark);
  font-size: var(--font-button);
  font-weight: 900;
}

.memory-card-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.memory-card-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #322820;
  font-size: var(--font-card-title);
  font-weight: 900;
  white-space: nowrap;
}

.memory-card-copy small {
  color: var(--nav-dark);
  font-size: var(--font-subtitle);
  font-weight: 900;
}

.memory-card-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--font-body);
  font-style: normal;
  font-weight: 750;
  line-height: var(--leading-body);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.verse-list-card .memory-card-copy em {
  display: block;
  -webkit-line-clamp: unset;
}

.memory-card-count {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff4cf;
  color: #77581d;
  font-size: var(--font-meta);
  font-weight: 900;
  white-space: nowrap;
}

.habit-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--habit-gap);
  min-height: 0;
}

.habit-card {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 10px 12px 10px 0;
}

.habit-card.tall {
  min-height: 0;
}

.habit-card.compact {
  min-height: 0;
}

.habit-tab {
  align-self: stretch;
  display: grid;
  place-items: center;
  margin-left: 10px;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--nav-dark);
  font-size: var(--font-tab);
  font-weight: 900;
}

.habit-main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  min-width: 0;
  padding: 0 12px;
  color: #322820;
  font-size: var(--font-card-title);
  font-weight: 850;
}

.habit-main span {
  display: block;
}

.habit-main strong {
  font-weight: 900;
}

.habit-main.align-end {
  justify-items: end;
}

.input-main {
  justify-items: end;
  gap: 9px;
}

.goal-hint {
  justify-self: end;
  color: var(--muted);
  font-size: var(--font-meta);
  font-weight: 800;
}

.input-main .reading-plan-button + .goal-hint {
  margin-top: -4px;
}

.qt-main {
  gap: 4px;
}

.qt-main strong {
  font-size: var(--font-card-title);
  line-height: var(--leading-title);
}

.qt-main span {
  color: var(--nav-dark);
  font-size: var(--font-subtitle);
  font-weight: 850;
}

.qt-preview {
  display: -webkit-box;
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: var(--font-body);
  font-weight: 700;
  line-height: var(--leading-body);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.metric-field {
  display: grid;
  grid-template-columns: minmax(52px, 80px) auto;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: var(--nav-dark);
  font-size: var(--font-input);
  font-weight: 900;
}

.metric-field input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 12px;
  padding: 4px 10px;
  background: #fffaf1;
  color: #332920;
  box-shadow: inset 0 0 0 1px rgba(117, 86, 50, 0.14);
  font-size: var(--font-input);
  font-weight: 900;
  text-align: right;
}

.metric-field input::-webkit-outer-spin-button,
.metric-field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.reading-plan-button {
  appearance: none;
  justify-self: end;
  border: 0;
  border-radius: 12px;
  padding: 6px 11px;
  background: #ffe59b;
  color: #6d511a;
  cursor: pointer;
  font-size: var(--font-button);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(123, 91, 28, 0.12);
}

.check-box {
  appearance: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: #fffaf1;
  box-shadow: inset 0 0 0 1px rgba(117, 86, 50, 0.16);
  cursor: pointer;
  position: relative;
  transform: none;
}

.check-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: 15px;
  height: 9px;
  border: solid #5b3632;
  border-width: 0 0 3px 3px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.check-box.checked {
  background: linear-gradient(180deg, #fff2bd, #f3d27a);
  box-shadow:
    inset 0 0 0 1px rgba(123, 91, 28, 0.16),
    0 6px 16px rgba(126, 91, 33, 0.1);
}

.check-box.checked::after {
  opacity: 1;
}

.bottom-nav {
  height: var(--nav-height);
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: 0.9fr 0.78fr 1.52fr 0.9fr 0.9fr 0.9fr;
  border-top: 1px solid rgba(102, 73, 39, 0.18);
  background: linear-gradient(180deg, #c5a375, var(--nav));
  box-shadow: 0 -12px 28px rgba(112, 79, 41, 0.1);
}

.nav-cell {
  appearance: none;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 7px 3px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: #fffaf1;
  cursor: pointer;
  font-size: var(--font-nav);
  font-weight: 850;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(78, 53, 27, 0.16);
}

.nav-cell.active {
  background: rgba(255, 250, 241, 0.13);
}

.nav-cell:last-child {
  border-right: 0;
}

.home-icon,
.profile-icon {
  position: relative;
}

.home-icon::before {
  content: "";
  width: 31px;
  height: 27px;
  border: 4px solid #fffaf1;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  transform: translateY(7px);
}

.home-icon::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border-left: 4px solid #fffaf1;
  border-top: 4px solid #fffaf1;
  border-radius: 4px 0 0 0;
  transform: translateY(-10px) rotate(45deg);
}

.profile-icon::before {
  content: "";
  width: 21px;
  height: 21px;
  border: 4px solid #fffaf1;
  border-radius: 50%;
  transform: translateY(-12px);
}

.profile-icon::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 31px;
  border: 4px solid #fffaf1;
  border-radius: 50% 50% 12px 12px;
  border-top: 0;
  transform: translateY(16px);
}

@media (min-width: 760px) {
  :root {
    --type-display: 36px;
    --type-title: 22px;
    --type-title-compact: 20px;
    --type-list-title: 18.5px;
    --type-panel-title: 17px;
    --type-section-title: 16px;
    --type-body: 15px;
    --type-body-sm: 14px;
    --type-caption: 13px;
    --type-caption-sm: 12px;
    --font-nav: var(--type-body);
    --nav-height: 72px;
    --home-gap: 12px;
    --home-pad-x: 28px;
    --home-pad-top: 26px;
    --home-pad-bottom: 16px;
    --habit-gap: 10px;
    --font-watermark: 34px;
  }

  .app-shell {
    padding: 18px;
  }

  .phone-frame {
    width: min(92vw, 540px);
    height: min(900px, calc(var(--app-height) - 36px));
    max-height: calc(var(--app-height) - 36px);
    border-radius: 34px;
  }

  .content {
    padding-inline: 38px;
  }
}

@media (max-width: 390px) {
  .phone-frame {
    border-radius: 0;
  }

  .content {
    padding-inline: 14px;
  }

  .verse-card {
    padding-inline: 16px;
  }

  .habit-card {
    grid-template-columns: 58px minmax(0, 1fr) 42px;
  }

  .habit-tab {
    margin-left: 10px;
    border-radius: 18px;
  }

  .check-box {
    width: 32px;
    height: 32px;
  }

  .check-box::after {
    width: 14px;
    height: 8px;
  }

  .bottom-nav {
    grid-template-columns: 0.82fr 0.72fr 1.58fr 0.82fr 0.82fr 0.82fr;
  }

  .nav-cell {
    padding-inline: 2px;
  }
}
