.quote-card .card-bottom {
  position: absolute;
  right: 18px;
  bottom: 112px;
  width: auto;
  border-top: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  z-index: 3;
}

.quote-card .card-bottom .stats {
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.quote-card .card-bottom .action {
  flex-direction: column;
  gap: 3px;
  min-width: 34px;
}

.quote-card .card-bottom .views {
  margin-left: 0;
  font-size: 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: -.03em;
}

.quote-card .quote-main {
  padding-right: 58px;
}

.my-page-enhanced {
  min-height: 100svh;
  padding: 108px max(28px, calc((100vw - 1180px) / 2 + 28px)) 108px;
  color: #2d2a25;
  background: #f7f3ee;
}

.my-page-enhanced .my-profile-enhanced {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 26px;
}

.my-page-enhanced .my-avatar-enhanced {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #152035;
  background: #f4a04b;
  font-size: 21px;
  font-weight: 800;
}

.my-page-enhanced .my-kicker-enhanced {
  margin: 0 0 7px;
  color: #c77935;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.my-page-enhanced h1 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.08em;
}

.my-page-enhanced .my-sub-enhanced {
  margin: 5px 0 0;
  color: #928a81;
  font-size: 11px;
}

.my-page-enhanced .my-stat-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px;
  border: 1px solid #e8ded2;
  border-radius: 16px;
  background: #fffaf4;
}

.my-page-enhanced .my-stat-grid-enhanced div {
  text-align: center;
}

.my-page-enhanced .my-stat-value-enhanced {
  display: block;
  color: #2d2a25;
  font-size: 21px;
  font-weight: 800;
}

.my-page-enhanced .my-stat-label-enhanced {
  display: block;
  margin-top: 5px;
  color: #9b938b;
  font-size: 10px;
}

.my-page-enhanced .my-section-enhanced {
  margin: 30px 0 12px;
  font-size: 17px;
  font-weight: 800;
}

.my-page-enhanced .my-quote-enhanced {
  margin-bottom: 10px;
  padding: 17px;
  border: 1px solid #e8ded2;
  border-radius: 14px;
  background: #fffdf9;
}

.my-page-enhanced .my-quote-enhanced strong {
  display: block;
  color: #4d463e;
  font-family: "Noto Serif KR", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.my-page-enhanced .my-quote-enhanced small {
  display: block;
  margin-top: 9px;
  color: #9b938b;
  font-size: 10px;
}

.my-page-enhanced .my-empty-enhanced {
  padding: 48px 20px;
  border-radius: 14px;
  color: #9b938b;
  background: #fffdf9;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.my-page-enhanced .my-settings-enhanced {
  overflow: hidden;
  border: 1px solid #e8ded2;
  border-radius: 14px;
  background: #fffdf9;
}

.my-page-enhanced .my-settings-enhanced button,
.my-page-enhanced .my-version-enhanced {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #eee6dc;
  color: #4d463e;
  background: transparent;
  text-align: left;
}

.my-page-enhanced .my-settings-enhanced button:last-of-type,
.my-page-enhanced .my-version-enhanced {
  border-bottom: 0;
}

.my-page-enhanced .my-settings-enhanced button span,
.my-page-enhanced .my-version-enhanced span {
  display: grid;
  gap: 3px;
}

.my-page-enhanced .my-settings-enhanced strong,
.my-page-enhanced .my-version-enhanced strong {
  font-size: 13px;
  font-weight: 500;
}

.my-page-enhanced .my-settings-enhanced small {
  color: #aaa099;
  font-size: 10px;
}

.my-page-enhanced .my-settings-enhanced b {
  color: #b5aca2;
  font-size: 20px;
  font-weight: 400;
}

.my-page-enhanced .my-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 14, 24, .62);
}

.my-page-enhanced .my-info-overlay[hidden] {
  display: none;
}

.my-page-enhanced .my-info-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 20px;
  background: #fffaf4;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.my-page-enhanced .my-info-title {
  margin: 0;
  color: #2d2a25;
  font-family: "Noto Serif KR", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.08em;
}

.my-page-enhanced .my-info-body {
  margin: 22px 0 0;
  color: #5f574e;
  font-size: 13px;
  line-height: 2;
  white-space: pre-line;
}

.my-page-enhanced .my-info-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  color: #686057;
  background: transparent;
  font-size: 25px;
}

.my-page-enhanced .my-info-confirm {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #2e3a34;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .quote-card .card-bottom {
    right: 12px;
    bottom: 115px;
    gap: 13px;
  }

  .quote-card .card-bottom .stats {
    gap: 13px;
  }

  .quote-card .quote-main {
    padding-right: 48px;
  }

  .my-page-enhanced {
    padding: 92px 18px 94px;
  }
}

@media (min-width: 821px) {
  .app-shell {
    background: #0d0f12;
  }

  .page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    width: min(1240px, calc(100% - 64px));
    height: 100svh;
    margin: 0 auto;
  }

  .feed-column {
    min-width: 0;
  }

  .feed-list {
    height: 100svh;
    align-items: center;
      padding: 112px 0 120px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
      scroll-padding-top: 112px;
  }

  .quote-card {
      width: min(480px, calc((100svh - 154px) * .5625));
      min-width: min(480px, calc((100svh - 154px) * .5625));
      height: min(852px, calc(100svh - 154px));
      min-height: min(852px, calc(100svh - 154px));
    aspect-ratio: 9 / 16;
    margin: 0 auto 28px;
    padding: 48px 28px 72px;
    border-radius: 22px;
    scroll-snap-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  }

  .quote-card .quote-main {
    padding-right: 30px;
  }

  .quote-card .quote-main blockquote {
    font-size: clamp(25px, 2.5vw, 38px);
    line-height: 1.5;
  }

  .quote-card .quote-main p {
    font-size: 12px;
  }

  .quote-card .card-bottom {
    right: 15px;
    bottom: 104px;
  }

  .side-column {
    display: block;
    min-width: 0;
    padding: 118px 0 70px;
  }

  .side-column > .side-card,
  .side-column > .side-footer {
    display: none;
  }

  .desktop-comments-enhanced {
    display: flex;
    height: min(680px, calc(100svh - 190px));
    flex-direction: column;
    padding: 24px 22px 18px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 20px;
    color: #fff;
    background: rgba(24, 29, 35, .82);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .24);
    backdrop-filter: blur(20px);
  }

  .desktop-comments-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
  }

  .desktop-comments-head p {
    margin: 0 0 8px;
    color: #f4a04b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
  }

  .desktop-comments-head h2 {
    margin: 0;
    font-family: "Noto Serif KR", serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -.08em;
  }

  .desktop-comment-count {
    display: grid;
    min-width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    color: #172033;
    background: #f4a04b;
    font-size: 11px;
    font-weight: 800;
  }

  .desktop-comments-quote {
    display: -webkit-box;
    margin: 19px 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .68);
    font-family: "Noto Serif KR", serif;
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .desktop-comments-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .desktop-comments-list article {
    display: flex;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .desktop-comments-list article > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #b78062;
    font-size: 10px;
  }

  .desktop-comments-list article div {
    min-width: 0;
  }

  .desktop-comments-list strong {
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
  }

  .desktop-comments-list p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .desktop-comments-list small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .42);
    font-size: 9px;
  }

  .desktop-comments-empty {
    margin: auto 0;
    padding: 36px 0;
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
  }

  .desktop-comment-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 16px;
    padding: 13px 15px;
    border: 0;
    border-radius: 10px;
    color: #152035;
    background: #f4a04b;
    font-size: 12px;
    font-weight: 800;
  }

  .desktop-comment-button span {
    font-size: 17px;
  }
}

.page-grid.is-home,
.page-grid.is-account {
  display: block;
}

.page-grid.is-home .side-column,
.page-grid.is-account .side-column {
  display: none;
}

.home-insights-enhanced {
  min-height: 100svh;
  padding: 94px 18px 110px;
  color: #2d2a25;
  background: #f7f3ee;
}

.home-insights-header,
.home-insights-list {
  width: min(820px, 100%);
  margin: 0 auto;
}

.home-insights-header {
  padding-bottom: 28px;
}

.home-insights-kicker {
  margin: 0 0 10px;
  color: #b87842;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.home-insights-title {
  margin: 0;
  color: #2d2a25;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(25px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: 1.35;
}

.home-insights-sub {
  margin: 14px 0 0;
  color: #928a81;
  font-size: 12px;
  line-height: 1.8;
}

.home-insight-card {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid #e8ded2;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 12px 35px rgba(85, 69, 53, .07);
}

.home-insight-author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.home-insight-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b9784c;
  font-size: 14px;
  font-weight: 700;
}

.home-insight-author strong,
.home-insight-author small {
  display: block;
}

.home-insight-author strong {
  color: #4d463e;
  font-size: 13px;
}

.home-insight-author small {
  margin-top: 4px;
  color: #aaa099;
  font-size: 10px;
}

.home-insight-quote {
  margin: 21px 0 0;
  color: #403a34;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(18px, 2.3vw, 27px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.7;
}

.home-insight-explanation {
  margin-top: 17px;
  padding: 15px;
  border-radius: 12px;
  background: #f5ebdd;
}

.home-insight-label {
  margin: 0 0 7px;
  color: #b87842;
  font-size: 10px;
  font-weight: 800;
}

.home-insight-context {
  margin: 0;
  color: #6b5e51;
  font-size: 12px;
  line-height: 1.8;
}

.home-insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
}

.home-insight-reviews {
  min-width: 0;
}

.home-insight-reviews strong {
  color: #82786e;
  font-size: 11px;
}

.home-insight-reviews p {
  margin: 6px 0 0;
  overflow: hidden;
  color: #aaa099;
  font-size: 11px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-insight-comment {
  flex: 0 0 auto;
  padding: 11px 13px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #2e3a34;
  font-size: 11px;
  font-weight: 700;
}

.home-insight-comment span {
  margin-left: 7px;
  font-size: 15px;
}

.home-insights-empty {
  padding: 60px 20px;
  border: 1px solid #e8ded2;
  border-radius: 18px;
  color: #aaa099;
  background: #fffdf9;
  font-size: 13px;
  line-height: 2;
  text-align: center;
}

@media (min-width: 821px) {
  .home-insights-enhanced {
    padding: 118px 0 100px;
  }
}

/* Home insights is a document feed, so it must be allowed to grow beyond the viewport. */
html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.app-shell:has(.home-insights-enhanced) {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  background: #f7f3ee;
}

.page-grid.is-home {
  width: 100%;
  max-width: none;
  margin: 0;
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

.home-insights-enhanced {
  width: 100%;
  min-height: calc(100svh - 74px);
  padding-bottom: max(100px, env(safe-area-inset-bottom));
}

@media (max-width: 820px) {
  .home-insights-enhanced {
    min-height: calc(100svh - 62px);
    padding-bottom: max(118px, env(safe-area-inset-bottom));
  }
}
