/* Applied skill: mobile-design (skills.sh/manutej/luxor-claude-marketplace/mobile-design).
   Phone-sized navigation, 48px targets, safe areas, bottom sheets, one primary action. */
:root {
  --app-paper: #faf9f7;
  --app-surface: #fff;
  --app-ink: #303943;
  /* WCAG AA: #717782 → 본문 대비 4.28 → #5a6270 (5.84) */
  --app-muted: #5a6270;
  --app-line: #eeece9;
  /* WCAG AA: 흰 글자 대비 4.09 → #c23a52 (5.22) */
  --app-coral: #c23a52;
  --app-soft: #fff0ef;
  --app-mint: #eff5ee;
  --app-pink-ink: #8f3346;
}
[data-theme='dark'] {
  --app-paper: #181b20;
  --app-surface: #22262d;
  --app-ink: #f1f0ee;
  --app-muted: #adb3bd;
  --app-line: #343942;
  --app-coral: #ff8798;
  --app-soft: #3b282d;
  --app-mint: #27372c;
  --app-pink-ink: #ffb0bc;
}
html {
  background: #e9e8e5;
  scroll-padding-bottom: 100px;
}
body {
  background: var(--app-paper);
  color: var(--app-ink);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  font-family: inherit;
}
button:active {
  opacity: 0.8;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #6b9eff;
  outline-offset: 3px;
}
.app-shell {
  min-height: 100dvh;
  width: 100%;
  padding: 0;
}
.app-header {
  background: var(--app-paper);
  border: 0;
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.app-header-inner {
  max-width: none;
  min-height: 66px;
  padding: 9px 24px;
}
.app-header .logo {
  min-height: 48px;
  gap: 7px;
}
.app-header .logo-mark {
  width: 29px;
  height: 29px;
}
.wordmark {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -1px;
  color: var(--app-ink);
}
.app-header .btn-sm {
  height: 48px;
  width: 48px;
  padding: 0;
  border-radius: 50%;
  color: var(--app-muted);
}
.app-main,
.is-home .app-main {
  max-width: none;
  padding: 18px 24px calc(100px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}
.app-footer {
  display: none;
}
.bottom-nav {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(100%, 480px);
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 12px max(9px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  border-top: 1px solid var(--app-line);
  background: var(--app-surface);
  backdrop-filter: none;
}
.nav-item {
  min-height: 57px;
  min-width: 48px;
  padding: 6px 3px;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--app-muted);
  border-radius: 14px;
}
.nav-item.on {
  color: var(--app-coral);
}
.nav-item svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}
.nav-item.on svg {
  stroke-width: 2.1;
}
.toast {
  bottom: calc(95px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  max-width: calc(100% - 40px);
  font-size: 14px;
}
.app-greeting p {
  font-size: 13px;
  color: var(--app-muted);
  margin: 0 0 9px;
  line-height: 1.5;
}
.app-greeting h1 {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -1.2px;
  font-weight: 760;
}
.coral-dot {
  color: var(--app-coral);
}
.connection-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0 22px;
}
.paired-avatars {
  display: flex;
  flex-shrink: 0;
  padding-right: 1px;
}
.paired-avatars > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 3px solid var(--app-paper);
  border-radius: 50%;
  background: #ffdadd;
  color: #a34b5c;
  font-size: 12px;
  font-weight: 650;
}
.paired-avatars > span + span {
  margin-left: -8px;
  background: #e4ecfe;
  color: #5d7dba;
}
.paired-avatars svg {
  width: 14px;
  height: 14px;
}
.connection-strip > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.connection-strip strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
.connection-strip p {
  font-size: 10px;
  color: var(--app-muted);
  margin-top: 3px;
  line-height: 1.5;
}
.icon-button {
  display: grid;
  place-items: center;
  min-width: 48px;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: var(--app-muted);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}
.connection-strip .icon-button {
  margin-right: -15px;
}
.connection-strip .icon-button svg {
  width: 17px;
}
.today-mission {
  background: var(--app-soft);
  border-radius: 27px;
  padding: 22px 22px 18px;
  overflow: hidden;
  position: relative;
}
.mission-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mission-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--app-pink-ink);
  background: var(--app-surface);
  padding: 6px 10px;
  border-radius: 7px;
}
.mission-count {
  font-size: 12px;
  font-weight: 750;
  color: var(--app-pink-ink);
}
.mission-count span {
  color: var(--app-muted);
  font-weight: 500;
}
.mission-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 2px;
}
.mission-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: var(--app-surface);
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}
.mission-step i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--app-line);
  color: var(--app-muted);
  font-style: normal;
  font-size: 9px;
  flex-shrink: 0;
}
.mission-step.done {
  color: #526b55;
  background: var(--app-mint);
  border-color: #d6e1d4;
}
.mission-step.done i {
  background: #83aa91;
  color: #fff;
}
.mission-step.current {
  color: var(--app-pink-ink);
  border-color: #f1b8c1;
  background: #fff6f7;
}
.mission-step.current i {
  background: var(--app-coral);
  color: #fff;
}
.today-mission h2 {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.85px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.today-mission > p {
  font-size: 13px;
  color: var(--app-muted);
  line-height: 1.6;
}
.mission-illustration {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -10px 5px;
  overflow: hidden;
}
.mission-illustration img {
  height: 195px;
  width: 206px;
  object-fit: contain;
  transform: translateY(-7px);
}
.mission-footer > span {
  display: block;
  text-align: center;
  color: var(--app-muted);
  font-size: 11px;
  margin-bottom: 11px;
}
.mobile-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 15px;
  background: var(--app-coral);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 13px 15px;
  line-height: 1.5;
}
.mobile-primary svg {
  width: 17px;
  height: 17px;
}
.app-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 23px 0 30px;
}
.app-shortcuts button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  border: 0;
  background: none;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 550;
  padding: 0;
  min-height: 83px;
  cursor: pointer;
}
.shortcut-icon {
  width: 52px;
  height: 52px;
  border-radius: 19px;
  display: grid;
  place-items: center;
}
.shortcut-icon.pink {
  background: #ffebee;
  color: #bb566c;
}
.shortcut-icon.blue {
  background: #eaf0ff;
  color: #6185c7;
}
.shortcut-icon.mint {
  background: #e9f1e9;
  color: #6b9379;
}
.shortcut-icon svg {
  height: 23px;
  width: 23px;
}
.mobile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  gap: 12px;
}
.mobile-section-head h2 {
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.5px;
}
.mobile-section-head > span {
  font-size: 11px;
  color: var(--app-muted);
}
.conversation-card {
  background: var(--app-mint);
  border-radius: 23px;
  padding: 12px 21px 8px;
}
.conversation-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.conversation-top > span {
  color: #526b55;
  font-size: 11px;
  font-weight: 600;
}
.conversation-top .icon-button {
  color: #69816b;
  margin-right: -11px;
}
.conversation-top svg {
  width: 18px;
  height: 18px;
}
.conversation-card h3 {
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: -0.65px;
  font-weight: 650;
  max-width: 275px;
  margin: 0 0 17px;
}
.conversation-open {
  min-height: 49px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-top: 1px solid #d6e1d4;
  background: none;
  width: 100%;
  color: #4f6d54;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 0;
  cursor: pointer;
}
.conversation-open svg {
  width: 16px;
  height: 16px;
}
.preparation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 19px 0 3px;
  margin-top: 8px;
  border: 0;
  background: none;
  text-align: left;
  color: var(--app-ink);
  cursor: pointer;
}
.preparation-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: var(--app-surface);
  color: #8b8073;
  flex-shrink: 0;
}
.preparation-row > span:nth-child(2) {
  flex: 1;
}
.preparation-row strong {
  display: block;
  font-size: 13px;
}
.preparation-row small {
  display: block;
  font-size: 11px;
  color: var(--app-muted);
  margin-top: 6px;
}
.preparation-row > svg {
  width: 15px;
  flex-shrink: 0;
}
.tiny-ring {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 10px;
  color: var(--app-muted);
  background: radial-gradient(closest-side, var(--app-paper) 80%, transparent 83%), conic-gradient(#83aa91 var(--done), var(--app-line) 0);
}
.mobile-title {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.4;
  margin: 6px 0 8px;
}
.mobile-subtitle {
  font-size: 14px;
  color: var(--app-muted);
  line-height: 1.65;
}
.app-overline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--app-muted);
}
.space-summary {
  border-radius: 25px;
  padding: 26px;
  background: var(--app-soft);
  margin: 25px 0 18px;
}
.space-summary > span {
  display: grid;
  place-items: center;
  border-radius: 15px;
  width: 45px;
  height: 45px;
  background: var(--app-surface);
  color: var(--app-coral);
  margin-bottom: 15px;
}
.space-summary h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.space-summary p {
  font-size: 12px;
  color: var(--app-muted);
  margin: 10px 0 17px;
}
.space-progress {
  height: 5px;
  background: var(--app-surface);
  border-radius: 10px;
  overflow: hidden;
}
.space-progress i {
  display: block;
  height: 100%;
  background: #da697a;
}
.app-list {
  background: var(--app-surface);
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
}
.app-list > button {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--app-line);
  background: none;
  color: var(--app-ink);
  width: 100%;
  min-height: 82px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}
.app-list > button:last-child {
  border: 0;
}
.app-list > button > svg {
  width: 21px;
  flex-shrink: 0;
  color: var(--app-muted);
}
.app-list > button > svg:last-child {
  width: 15px;
}
.app-list > button > span {
  flex: 1;
}
.app-list strong {
  font-size: 14px;
  display: block;
}
.app-list small {
  font-size: 12px;
  display: block;
  color: var(--app-muted);
  margin-top: 5px;
}
.empty-notes {
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--app-line);
  border-radius: 20px;
  color: var(--app-muted);
  font-size: 13px;
}
.empty-notes > svg {
  margin-bottom: 12px;
}
.empty-notes button {
  min-height: 48px;
  background: none;
  border: 0;
  color: var(--app-coral);
  font-size: 13px;
}
.device-note {
  font-size: 11px;
  color: var(--app-muted);
  text-align: center;
  margin-top: 20px;
}
.saved-talk {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: var(--app-mint);
  padding: 18px;
  text-align: left;
  margin-bottom: 12px;
  color: var(--app-ink);
  cursor: pointer;
}
.saved-talk > span {
  font-size: 11px;
  color: var(--app-muted);
}
.saved-talk strong {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  margin: 7px 0;
}
.saved-talk p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  color: var(--app-muted);
}
body.sheet-open {
  overflow: hidden;
}
.talk-sheet {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 480px);
  max-width: 480px;
  max-height: calc(100dvh - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 20px);
  overflow-y: auto;
  border: 0;
  border-radius: 28px 28px 0 0;
  padding: 10px 24px calc(24px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  background: var(--app-surface);
  color: var(--app-ink);
  box-shadow: 0 -15px 60px #0002;
}
.talk-sheet[open] {
  animation: sheet-enter 0.22s ease-out;
}
.talk-sheet::backdrop {
  background: #20252a66;
}
.sheet-handle {
  width: 34px;
  height: 4px;
  background: var(--app-line);
  border-radius: 9px;
  margin: 0 auto 6px;
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--app-muted);
}
.sheet-heading .icon-button {
  margin-right: -10px;
}
.sheet-heading svg {
  width: 21px;
}
.talk-sheet h2 {
  font-size: 23px;
  line-height: 1.6;
  letter-spacing: -0.8px;
  margin: 10px 0 23px;
}
.talk-sheet label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.talk-sheet textarea {
  width: 100%;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-paper);
  padding: 15px;
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  color: var(--app-ink);
  resize: vertical;
  min-height: 140px;
}
.talk-sheet textarea:focus {
  outline: 2px solid #d94b62;
  outline-offset: 2px;
}
.sheet-hint {
  font-size: 11px;
  line-height: 1.7;
  color: var(--app-muted);
  margin: 12px 0 22px;
}
@keyframes sheet-enter {
  from {
    transform: translateY(25%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.input,
.textarea {
  font-size: 16px;
}
.btn,
.chip,
.back-btn {
  min-height: 48px;
}
.back-btn {
  min-width: 48px;
}
.card {
  border-radius: 20px;
}
.view-title {
  font-size: 27px;
}
.view-desc {
  font-size: 14px;
  line-height: 1.8;
}
.opt-card {
  min-height: 64px;
}
.set-link {
  min-height: 52px;
}
.app-main {
  animation: screen-enter 0.16s ease-out;
}
@keyframes screen-enter {
  from {
    opacity: 0.7;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
[data-theme='dark'] .conversation-top > span,
[data-theme='dark'] .conversation-open {
  color: #b2cdb3;
}
[data-theme='dark'] .conversation-open {
  border-color: #3a5140;
}
[data-theme='dark'] .shortcut-icon.pink {
  background: #422c34;
  color: #f39bb0;
}
[data-theme='dark'] .shortcut-icon.blue {
  background: #29354a;
  color: #a3bffc;
}
[data-theme='dark'] .shortcut-icon.mint {
  background: #2d3c32;
  color: #add2b5;
}
[data-theme='dark'] .mission-step.done {
  color: #b2cdb3;
  border-color: #3a5140;
}
[data-theme='dark'] .mission-step.current {
  background: #3b282d;
  border-color: #6b3a47;
}
@media (min-width: 600px) {
  body {
    box-shadow:
      0 0 0 1px #ddd9,
      0 15px 70px #36332d16;
  }
  html {
    min-height: 100%;
  }
  .app-header {
    border-bottom: 1px solid var(--app-line);
  }
}
@media (max-width: 359px) {
  .app-header-inner {
    padding-inline: 18px;
  }
  .app-main,
  .is-home .app-main {
    padding-inline: 18px;
  }
  .app-greeting h1 {
    font-size: 28px;
  }
  .connection-strip {
    gap: 7px;
  }
  .connection-strip strong {
    font-size: 11px;
  }
  .connection-strip p {
    font-size: 9px;
  }
  .today-mission {
    padding: 20px 18px 16px;
  }
  .today-mission h2 {
    font-size: 21px;
  }
  .mobile-primary {
    font-size: 13px;
  }
  .mobile-section-head > span {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-main,
  .talk-sheet[open] {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  .bottom-nav,
  .app-header {
    display: none;
  }
  body {
    max-width: none;
  }
  .app-main {
    padding: 0;
  }
}
.app-back {
  margin-left: -12px;
}
.app-screen-title {
  flex: 1;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin: 0 0 16px;
  padding: 14px 16px;
  text-align: left;
  background: var(--app-surface);
  color: var(--app-ink);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  cursor: pointer;
}
.draft-banner strong,
.draft-banner small {
  display: block;
}
.draft-banner small {
  margin-top: 5px;
  color: var(--app-muted);
}
.connection-import {
  margin: 16px 0;
}
.connection-import h3 {
  font-size: 17px;
}
.connection-import p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.connection-import label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.connection-import input {
  width: 100%;
  box-sizing: border-box;
}
.connection-import .home-secondary,
.connection-cancel {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.connection-preview {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
}
.connection-preview h4 {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.connection-preview > span,
.connection-hint {
  font-size: 12px;
  color: var(--app-muted);
}
.connection-cancel {
  color: var(--app-muted);
}
.partner-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 20px 16px;
}
.partner-summary .resume-info {
  grid-column: 2 / -1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.partner-summary > .btn {
  width: 100%;
  padding-inline: 8px;
}
.partner-summary > .btn:first-of-type {
  grid-column: 2;
}
.character-art {
  display: block;
  position: relative !important;
  overflow: hidden;
  aspect-ratio: 294/229;
  width: 100%;
  isolation: isolate;
  border-radius: 22px;
  background: #fff;
}
.character-art img {
  position: absolute;
  max-width: none !important;
  width: 462.9252%;
  height: auto;
}
.result-hero {
  padding: 24px 18px 18px;
  background: var(--app-surface);
  border-radius: 28px;
  overflow: hidden;
}
.result-hero::before {
  display: none;
}
.result-hero .char-name {
  font-size: 28px;
  line-height: 1.35;
  margin: 14px 0 20px;
  word-break: keep-all;
}
.result-hero .character-art {
  max-width: 294px;
  margin: 0 auto 20px;
}
.result-hero .char-quote {
  margin: 0;
  padding: 18px 14px;
  background: var(--app-paper);
  border: 1px solid var(--app-line);
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}
.result-hero .char-meta {
  gap: 8px;
  margin-top: 14px;
}
.similar-type {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--app-line);
  border-radius: 24px;
  background: var(--app-mint);
  color: var(--app-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.result-context {
  font-size: 12px;
  line-height: 1.8;
  color: var(--app-muted);
  margin: 16px 4px;
}
.result-takeaway {
  padding: 20px;
  background: var(--app-mint);
  border-radius: 20px;
  margin: 20px 0;
}
.result-takeaway > span {
  font-size: 12px;
  color: var(--app-muted);
}
.result-takeaway p {
  font-size: 16px;
  line-height: 1.7;
  margin: 8px 0 0;
  word-break: keep-all;
}
.result-page > .cta-col {
  margin-top: 0;
}
.result-details summary {
  min-height: 48px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 0;
}
.result-details[open] summary {
  margin-bottom: 20px;
}
.result-page .do-grid {
  grid-template-columns: 1fr;
}
.result-page .card-title {
  line-height: 1.5;
}
.type-card .character-art {
  margin-bottom: 12px;
  border-radius: 12px;
}
.type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.type-card {
  min-width: 0;
  padding: 12px;
}
.type-card .tc-name {
  word-break: keep-all;
  line-height: 1.5;
}
.similar-type:focus-visible,
.result-details summary:focus-visible {
  outline: 3px solid var(--app-coral);
  outline-offset: 4px;
}
.result-sharing {
  padding: 16px;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  margin: 16px 0;
}
.result-sharing p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--app-muted);
  margin: 0 0 8px;
}
.result-sharing .similar-type {
  width: 100%;
}
.result-page .do-col.do {
  background: var(--app-mint);
  color: var(--app-ink);
}
.result-page .do-col.dont {
  background: var(--app-soft);
  color: var(--app-ink);
}
.result-page .do-col h5 {
  color: var(--app-ink);
}
.result-page .note-box.warn {
  background: var(--app-soft);
  color: var(--app-ink);
}
.result-page .char-code {
  background: var(--app-soft);
  color: var(--app-pink-ink);
}
/* Home: characters lead the next action; supporting tools stay compact. */
.is-home .app-main {
  padding-top: 10px;
}
.app-greeting {
  margin-bottom: 22px;
}
.app-greeting h1 {
  font-size: 28px;
  line-height: 1.35;
}
.app-greeting p {
  font-size: 12px;
}
.today-mission {
  padding: 20px;
  background: linear-gradient(155deg, var(--app-soft), var(--app-surface) 74%);
  border: 1px solid var(--app-line);
  box-shadow: 0 8px 28px #30394305;
}
.mission-label {
  border-radius: 20px;
  font-size: 11px;
}
.today-mission h2 {
  font-size: 22px;
  word-break: keep-all;
}
.today-mission > p {
  font-size: 12px;
  word-break: keep-all;
}
.home-characters {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.home-character {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
}
.home-character .character-art {
  border-radius: 0;
}
.home-character figcaption {
  padding: 10px 6px 12px;
  text-align: center;
}
.home-character figcaption span {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--app-muted);
  margin-bottom: 3px;
}
.home-character figcaption strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  word-break: keep-all;
  color: var(--app-ink);
}
.home-characters.single .home-character {
  flex: 0 1 208px;
}
.home-characters.single {
  margin: 16px 0;
}
.mission-footer > span {
  font-size: 11px;
  margin-bottom: 12px;
}
.home-primary {
  min-height: 54px;
  box-shadow: 0 4px 12px #d94b6215;
}
.connection-strip {
  margin: 16px 0;
  padding: 10px 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 18px;
  gap: 10px;
}
.connection-strip .icon-button {
  margin-right: -8px;
  flex-shrink: 0;
}
.connection-strip strong {
  font-size: 12px;
}
.connection-strip p {
  font-size: 11px;
}
.paired-avatars > span {
  border-color: var(--app-surface);
}
.app-shortcuts {
  gap: 0;
  margin: 0 0 28px;
  padding: 16px 4px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 20px;
}
.app-shortcuts button {
  min-height: 76px;
  gap: 8px;
}
.app-shortcuts button + button {
  border-left: 1px solid var(--app-line);
}
.shortcut-icon {
  height: 42px;
  width: 42px;
  border-radius: 14px;
}
.shortcut-icon svg {
  height: 21px;
  width: 21px;
}
.conversation-card {
  border: 1px solid var(--app-line);
  padding-inline: 18px;
}
.conversation-card h3 {
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
}
.mobile-section-head h2 {
  font-size: 17px;
}
.preparation-row {
  padding: 18px 12px;
  margin-top: 16px;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  background: var(--app-surface);
}
.preparation-row strong {
  line-height: 1.5;
}
.preparation-row small {
  line-height: 1.5;
}
.tiny-ring {
  background: radial-gradient(closest-side, var(--app-surface) 80%, transparent 83%), conic-gradient(#83aa91 var(--done), var(--app-line) 0);
}
@media (max-width: 359px) {
  .today-mission {
    padding: 16px;
  }
  .home-characters {
    gap: 8px;
    margin: 16px 0;
  }
  .home-character figcaption strong {
    font-size: 11px;
  }
  .home-character figcaption {
    padding-inline: 4px;
  }
  .app-greeting h1 {
    font-size: 26px;
  }
  .connection-strip {
    gap: 6px;
  }
  .connection-strip p {
    font-size: 10px;
  }
  .preparation-row {
    gap: 8px;
  }
  .preparation-row strong {
    font-size: 12px;
  }
}
/* One app layout on every screen; browser is a phone-width preview. */
html {
  background: #e9e8e5;
}
body {
  max-width: 480px;
  box-shadow: 0 0 0 1px #3039430a;
}
.app-header-inner {
  padding-inline: 20px;
}
.bottom-nav {
  width: min(100%, 480px);
}
.app-shell:not(.is-home) .app-main {
  max-width: none;
}
.is-home .app-main {
  padding-inline: 16px;
}
.mobile-home {
  display: block;
}
.today-mission,
.home-support {
  min-width: 0;
}
.native-app body {
  max-width: none;
  box-shadow: none;
}
.native-app .bottom-nav {
  width: 100%;
}
.native-app .talk-sheet {
  width: 100%;
  max-width: none;
}
.native-app .app-main {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.character-carousel {
  margin: 20px -12px 18px;
}
.character-track {
  display: flex;
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 24px;
}
.character-track::-webkit-scrollbar {
  display: none;
}
.character-track:focus-visible {
  outline: 3px solid var(--app-coral);
  outline-offset: 3px;
}
.character-slide {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 12px;
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.carousel-label {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  padding: 6px 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 20px;
  color: var(--app-pink-ink);
  margin-bottom: 12px;
}
.character-slide .character-art {
  width: min(100%, 360px);
  margin: 0 auto 16px;
  border-radius: 24px;
}
.character-slide h3 {
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
  word-break: keep-all;
}
.character-slide > p {
  min-height: 48px;
  max-width: 390px;
  margin: 0 auto;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}
.carousel-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  background: none;
  border: 0;
  color: var(--app-pink-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.carousel-detail svg {
  width: 15px;
  height: 15px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 6px 0 4px;
}
.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--app-line);
  transition:
    width 0.2s ease,
    background-color 0.2s ease;
}
.carousel-dot.on {
  width: 16px;
  border-radius: 10px;
  background: var(--app-coral);
}
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}
.carousel-controls .icon-button {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  color: var(--app-ink);
}
.carousel-controls .icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}
#character-previous svg {
  transform: rotate(180deg);
}
#character-position {
  min-width: 56px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.carousel-hint {
  text-align: center;
  font-size: 11px;
  color: var(--app-muted);
  margin: 8px 0 0;
}
@media (max-width: 359px) {
  .character-slide h3 {
    font-size: 22px;
  }
  .character-slide > p {
    font-size: 13px;
  }
  .character-carousel {
    margin-inline: -8px;
  }
  .character-slide {
    padding-inline: 8px;
  }
}

/* Keep the character and main action together within a typical app viewport. */
.is-home .app-header-inner {
  min-height: 58px;
}
.app-greeting {
  margin-bottom: 16px;
}
.app-greeting h1 {
  font-size: 26px;
}
.today-mission {
  padding: 16px;
  border-radius: 24px;
}
.character-carousel {
  margin: 12px -16px 18px;
}
.character-slide {
  padding-inline: 0;
}
.character-slide .character-art {
  width: 100%;
  max-width: none;
  margin-bottom: 6px;
  border-radius: 0;
  background: transparent;
}
.character-art-cutout img {
  width: 400%;
}
.character-slide > p {
  box-sizing: border-box;
  padding-inline: 16px;
}
.character-slide h3 {
  font-size: 24px;
}
.carousel-label {
  margin-bottom: 8px;
}
.carousel-hint {
  margin-top: 6px;
}
.mission-footer > span {
  margin-bottom: 8px;
}

.is-home .app-greeting p {
  margin-bottom: 6px;
}
.is-home .app-greeting h1 {
  font-size: 24px;
  line-height: 1.25;
}
.is-home .character-slide > p {
  min-height: 40px;
  font-size: 13px;
}
.is-home .carousel-hint {
  display: none;
}

/* ---------- 생활 도구 (정산·분담·일정·체크인·갈등) ---------- */
.settle-hero {
  margin-top: 20px;
  padding: 24px 22px;
  border-radius: 24px;
  background: var(--app-soft);
}
.settle-hero.mint {
  background: var(--app-mint);
}
.settle-hero > span {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--app-muted);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.settle-hero > strong {
  display: block;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.4px;
  word-break: keep-all;
}
.settle-hero > p {
  font-size: 12px;
  color: var(--app-muted);
  margin-top: 10px;
}
.settle-month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 4px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--app-muted);
}
.settle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 4px;
  border-top: 1px solid var(--app-line);
}
.settle-cat {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 650;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--app-mint);
  color: var(--app-ink);
}
.settle-info {
  flex: 1;
  min-width: 0;
}
.settle-info strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settle-info small {
  display: block;
  font-size: 11px;
  color: var(--app-muted);
  margin-top: 3px;
}
.settle-amt {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.settle-row .item-del,
.settle-row .btn-danger-text {
  flex-shrink: 0;
}

.chore-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 13px 4px;
  border-top: 1px solid var(--app-line);
}
.chore-row:first-child {
  border-top: 0;
}
.chore-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 2px solid var(--app-line);
  border-radius: 50%;
  background: var(--app-surface);
  color: transparent;
  cursor: pointer;
  padding: 0;
}
.chore-check[aria-pressed='true'] {
  background: #83aa91;
  border-color: #83aa91;
  color: #fff;
}
.chore-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 550;
  word-break: keep-all;
}
.chore-row.done .chore-name {
  text-decoration: line-through;
  opacity: 0.55;
}
.chore-who {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--app-soft);
  color: var(--app-pink-ink);
}
.chore-who.you {
  background: var(--app-mint);
  color: #4a6b52;
}
.chore-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
}
.chore-next + .chore-next {
  border-top: 1px dashed var(--app-line);
}
.chore-next > span:last-child {
  font-weight: 650;
  color: var(--app-pink-ink);
}

.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 13px 4px;
  border-top: 1px solid var(--app-line);
}
.event-row.past {
  opacity: 0.55;
}
.event-date {
  display: grid;
  place-items: center;
  width: 46px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--app-mint);
}
.event-date b {
  font-size: 18px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.event-date i {
  font-style: normal;
  font-size: 10px;
  color: var(--app-muted);
}
.event-info {
  flex: 1;
  min-width: 0;
}
.event-info strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-info small {
  display: block;
  font-size: 11px;
  color: var(--app-muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-del {
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: none;
  color: var(--app-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.item-del:focus-visible {
  outline: 3px solid var(--app-coral);
  outline-offset: 2px;
}
.field-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--app-muted);
  pointer-events: none;
}
.field-group:has(.field-unit) {
  position: relative;
}
.field-group:has(.field-unit) .input {
  padding-right: 44px;
}
.rule-item-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rule-item-wrap .rule-item {
  flex: 1;
  min-width: 0;
}

.mood-row {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.mood-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 74px;
  padding: 10px 2px;
  border: 2px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-surface);
  font: inherit;
  cursor: pointer;
}
.mood-btn > span {
  font-size: 23px;
  line-height: 1;
}
.mood-btn > small {
  font-size: 9.5px;
  color: var(--app-muted);
  word-break: keep-all;
  text-align: center;
  line-height: 1.35;
}
.mood-btn.on {
  border-color: var(--app-coral);
  background: var(--app-soft);
}
.mood-btn.on > small {
  color: var(--app-pink-ink);
  font-weight: 650;
}
.mood-btn:focus-visible {
  outline: 3px solid var(--app-coral);
  outline-offset: 2px;
}
.checkin-hist {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--app-line);
}
.ch-emoji {
  font-size: 22px;
}
.checkin-hist strong {
  display: block;
  font-size: 13px;
}
.checkin-hist small {
  display: block;
  font-size: 11px;
  color: var(--app-muted);
  margin-top: 3px;
}
.checkin-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  background: var(--app-surface);
  color: var(--app-ink);
  text-align: left;
  cursor: pointer;
}
.checkin-banner > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--app-soft);
  color: var(--app-coral);
}
.checkin-banner > span:first-child svg {
  width: 19px;
  height: 19px;
}
.checkin-banner > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.checkin-banner strong {
  display: block;
  font-size: 13px;
}
.checkin-banner small {
  display: block;
  font-size: 11px;
  color: var(--app-muted);
  margin-top: 3px;
}
.checkin-banner > svg:last-child {
  width: 15px;
  flex-shrink: 0;
  color: var(--app-muted);
}

/* ---------- 갈등 가이드 ---------- */
.cg-steps {
  display: flex;
  gap: 5px;
  margin-top: 18px;
}
.cg-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: var(--app-muted);
  text-align: center;
  word-break: keep-all;
  line-height: 1.4;
}
.cg-step i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--app-line);
  background: var(--app-surface);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.cg-step.on {
  color: var(--app-pink-ink);
  font-weight: 650;
}
.cg-step.on i {
  border-color: var(--app-coral);
  color: var(--app-coral);
}
.cg-step.done i {
  border-color: #83aa91;
  background: #83aa91;
  color: #fff;
}
.cg-timer {
  display: block;
  font-size: 56px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--app-pink-ink);
  margin-top: 6px;
}
.conflict-pick {
  display: block;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  margin-top: 9px;
  border: 2px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-surface);
  color: var(--app-ink);
  font: inherit;
  cursor: pointer;
}
.conflict-pick strong {
  display: block;
  font-size: 14px;
  word-break: keep-all;
}
.conflict-pick small {
  display: block;
  font-size: 11.5px;
  color: var(--app-muted);
  margin-top: 5px;
}
.conflict-pick.on {
  border-color: var(--app-coral);
  background: var(--app-soft);
}
.conflict-pick:focus-visible {
  outline: 3px solid var(--app-coral);
  outline-offset: 2px;
}

/* ---------- 개인화 대화 · QR · 오프라인 · 튜토리얼 ---------- */
.personal-talk {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--app-soft);
}
.personal-talk .pt-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--app-pink-ink);
  letter-spacing: 0.4px;
  margin-bottom: 7px;
}
.personal-talk p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  word-break: keep-all;
}
.personal-talk small {
  display: block;
  font-size: 11.5px;
  color: var(--app-muted);
  line-height: 1.6;
  margin-top: 8px;
}
.app-shortcuts.life {
  grid-template-columns: repeat(4, 1fr);
  margin-top: -14px;
}
.app-shortcuts.life button {
  min-height: 70px;
}

.qr-card {
  margin-top: 16px;
  text-align: center;
}
.qr-box {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}
.qr-svg {
  width: min(100%, 240px);
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 18px #30394312;
}
.qr-card .caption {
  margin: 0;
}

.update-diff {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--app-paper);
}
.update-diff p {
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0 0;
}
.diff-arrow {
  display: inline-block;
  margin: 0 7px;
  color: var(--app-coral);
  font-weight: 700;
}

.offline-bar {
  padding: 9px 16px;
  background: var(--app-soft);
  color: var(--app-pink-ink);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #30394366;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tutorial-card {
  width: min(100%, 380px);
  padding: 26px 22px;
  border-radius: 26px;
  background: var(--app-surface);
  box-shadow: 0 20px 60px #30394326;
}
.tutorial-card .app-overline {
  display: block;
  text-align: center;
  margin-bottom: 18px;
}
.tut-slide {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.tut-slide + .tut-slide {
  border-top: 1px solid var(--app-line);
}
.tut-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--app-mint);
  color: var(--app-ink);
}
.tut-icon svg {
  width: 20px;
  height: 20px;
}
.tut-slide strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  word-break: keep-all;
}
.tut-slide p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--app-muted);
  margin: 0;
  word-break: keep-all;
}
.tutorial-card .mobile-primary {
  width: 100%;
  margin-top: 18px;
}

/* ---------- 정산 분할 · 같이 살 것 · 러브맵 ---------- */
.split-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.split-input .input {
  flex: 1;
  min-width: 0;
}
.split-input .field-unit {
  position: static;
  transform: none;
  white-space: nowrap;
  font-size: 12px;
}
.cta-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cta-row .mobile-primary {
  flex: 1;
}
.cta-row .btn {
  flex-shrink: 0;
}
.chore-who.shop {
  background: var(--app-mint);
  color: #4a6b52;
  font-size: 10px;
  padding: 5px 8px;
}

.talk-follow {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--app-soft);
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
}
.talk-follow span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--app-pink-ink);
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.lovemap-card {
  margin-top: 16px;
  padding: 24px 20px;
  border-radius: 22px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  text-align: center;
  box-shadow: 0 6px 20px #30394312;
}
.lovemap-card h3 {
  font-size: 18px;
  line-height: 1.55;
  word-break: keep-all;
  margin: 10px 0 8px;
}
.lovemap-no {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--app-coral);
  background: var(--app-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.lovemap-bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 99px;
  background: #ffffffa0;
  overflow: hidden;
}
.lovemap-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--app-coral), #ffb3ba);
  transition: width 0.4s ease;
}
.lovemap-card + .cta-row {
  margin-top: 16px;
}

/* ---------- 공유 카드 (DOM → PNG) ---------- */
.share-card-dom {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 540px;
  height: 675px;
  padding: 34px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: inherit;
  background: linear-gradient(165deg, #fff5f4 0%, #fdeef4 45%, #eef3ff 100%);
  color: var(--app-ink, #1c1c1c);
}
.share-card-dom .sc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #333;
}
.share-card-dom .sc-art {
  margin: 16px 0 6px;
  height: 210px;
  display: flex;
  align-items: flex-end;
}
.share-card-dom .sc-art .character-art {
  height: 200px;
  width: auto;
  display: block;
}
.share-card-dom .sc-art .character-art picture,
.share-card-dom .sc-art .character-art img {
  height: 100%;
}
.share-card-dom .sc-code {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--app-coral, #ff6b7a);
  background: #ffe9ec;
  padding: 5px 14px;
  border-radius: 999px;
}
.share-card-dom .sc-name {
  font-size: 30px;
  font-weight: 800;
  margin: 12px 0 6px;
  letter-spacing: -0.5px;
}
.share-card-dom .sc-quote {
  font-size: 14px;
  color: #525252;
  line-height: 1.6;
  margin: 0 6px 16px;
  word-break: keep-all;
}
.share-card-dom .sc-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.share-card-dom .sc-bar span {
  display: block;
  font-size: 11.5px;
  color: #525252;
  text-align: left;
  margin-bottom: 5px;
}
.share-card-dom .sc-bar i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #ffffffb0;
  overflow: hidden;
}
.share-card-dom .sc-bar b {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--app-coral, #ff6b7a);
}
.share-card-dom .sc-bar b.blue {
  background: #6b9eff;
}
.share-card-dom .sc-foot {
  margin: 16px 0 0;
  font-size: 11px;
  color: #9a9a9a;
}
.share-card-dom .mc-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.share-card-dom .mc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  background: #ffffffb0;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13.5px;
}
.share-card-dom .mc-row strong {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.share-card-dom .mc-row small {
  font-size: 10.5px;
  font-weight: 600;
  color: #8a8a8a;
}

/* ---------- driver.js 투어 팝오버 ---------- */
.mateon-driver-pop {
  border-radius: 18px;
  font-family: inherit;
}
.mateon-driver-pop .driver-popover-title {
  font-size: 15px;
  font-weight: 800;
}
.mateon-driver-pop .driver-popover-description {
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 큰 글자 모드 ---------- */
[data-font='large'] {
  font-size: 18px;
}
[data-font='large'] .mobile-subtitle,
[data-font='large'] .body-md {
  font-size: 16px;
}
[data-font='large'] .app-list strong {
  font-size: 16px;
}
[data-font='large'] .app-list small,
[data-font='large'] .saved-talk p {
  font-size: 14px;
}
[data-font='large'] .settle-info strong,
[data-font='large'] .event-info strong,
[data-font='large'] .chore-name {
  font-size: 16px;
}
[data-font='large'] .caption,
[data-font='large'] .checkin-banner small,
[data-font='large'] .settle-info small {
  font-size: 13px;
}
[data-font='large'] .view-title {
  font-size: 30px;
}
[data-font='large'] .conversation-card h3 {
  font-size: 20px;
}

/* ---------- 정산 월 이동 · 월별 요약 · 고정비 ---------- */
.settle-monthnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
}
.settle-monthnav strong {
  font-size: 15px;
  font-weight: 800;
  min-width: 96px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.settle-monthnav .chip[disabled] {
  opacity: 0.35;
}
.month-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.month-stats div {
  background: var(--app-soft);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.month-stats span {
  display: block;
  font-size: 11px;
  color: var(--app-muted);
}
.month-stats strong {
  display: block;
  font-size: 14px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.cat-bars {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-bar {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.cat-bar span {
  color: var(--app-muted);
}
.cat-bar i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--app-coral);
}
.cat-bar b {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--app-muted);
  cursor: pointer;
}
.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--app-coral);
}

/* ---------- 최근 활동 피드 ---------- */
.activity-feed {
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 8px;
  background: var(--app-soft);
}
.feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--app-line);
}
.feed-row:last-child {
  border-bottom: none;
}
.feed-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--app-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--app-ink);
}
.feed-icon svg {
  width: 14px;
  height: 14px;
}
.feed-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--app-ink);
}
.feed-row time {
  font-size: 11px;
  color: var(--app-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---- Round 3: 달력 월 뷰 / 기념일 D-day / 예산 / 미션·기분 차트 / 동기화 상태 ---- */
.cal-grid-wrap {
  padding: 16px;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-nav strong {
  font-size: 14px;
  font-weight: 750;
  color: var(--app-ink);
}
.cal-nav .chip {
  min-width: 36px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 15px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.cal-dow {
  font-size: 10px;
  font-weight: 700;
  color: var(--app-muted);
  padding: 5px 0;
}
.cal-dow.sun {
  color: #e0717f;
}
.cal-dow.sat {
  color: #5e8fbf;
}
.cal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--app-ink);
  border-radius: 9px;
}
.cal-cell.empty {
  background: none;
}
.cal-cell.today {
  background: var(--app-soft);
  color: var(--app-pink-ink);
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px var(--app-coral);
}
.cal-cell.has i {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--app-coral);
}

.dday-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #fff3f5, var(--app-surface));
  border: 1px solid #f3cdd3;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.dday-banner:active {
  transform: scale(0.985);
}
.dday-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--app-pink-ink);
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.dday-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dday-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--app-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dday-text small {
  font-size: 11px;
  color: var(--app-muted);
}
.dday-banner svg {
  color: var(--app-pink-ink);
  flex-shrink: 0;
}

.budget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.budget-row > span {
  width: 56px;
  font-size: 12px;
  font-weight: 650;
  color: var(--app-ink);
  flex-shrink: 0;
}
.budget-in {
  flex: 1;
  min-height: 38px;
  font-size: 13px;
  text-align: right;
}
.budget-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--app-line);
  overflow: hidden;
  margin-top: 6px;
}
.budget-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--app-mint);
  transition: width 0.3s;
}
.budget-bar.over i {
  background: #e0717f;
}
.budget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--app-muted);
  margin-top: 4px;
}
.budget-meta .over {
  color: #d94b62;
  font-weight: 700;
}

.mood-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  margin: 12px 0 4px;
  padding: 0 2px;
}
.mood-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  height: 100%;
}
.mood-col i {
  display: block;
  width: 100%;
  max-width: 22px;
  border-radius: 5px 5px 2px 2px;
  background: var(--app-coral);
  opacity: 0.85;
  min-height: 4px;
  transition: height 0.3s;
}
.mood-col small {
  font-size: 9px;
  color: var(--app-muted);
  white-space: nowrap;
}

.sync-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sync-stat::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-mint);
  flex-shrink: 0;
}
.sync-stat.sync-bad::before {
  background: #e0717f;
}
.sync-bad {
  color: #c2455a !important;
}

/* ---- Round 4: 112개 개선 — 정산/달력/UX/접근성 ---- */
/* 지출 추이 바 */
.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 52px;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px dashed var(--app-line);
}
.trend-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
  min-width: 0;
}
.trend-bar i {
  display: block;
  width: 100%;
  max-width: 26px;
  border-radius: 5px 5px 2px 2px;
  background: var(--app-mint);
  min-height: 3px;
}
.trend-bar:last-child i {
  background: var(--app-coral);
}
.trend-bar span {
  font-size: 9px;
  color: var(--app-muted);
}
.warn-tag {
  color: var(--app-coral);
  font-weight: 750;
}
.warn-tag.warn {
  color: #c98a1b;
}
.amt-hint {
  display: block;
  margin-top: 4px;
  color: var(--app-pink-ink);
  font-weight: 600;
}
.exp-q-wrap {
  position: relative;
}
.exp-q-wrap .exp-q {
  padding-right: 40px;
}
.exp-q-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--app-muted);
  font-size: 13px;
  cursor: pointer;
  border-radius: 50%;
}
.exp-q-clear:active {
  background: var(--app-soft);
}
.exp-rcpt-x {
  border: 0;
  background: none;
  color: var(--app-coral);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
  padding: 2px 4px;
}
.chip-sm {
  min-height: 34px !important;
  padding: 5px 12px;
  font-size: 11px;
}

/* 토스트 액션/타입 */
.toast-action {
  border: 0;
  background: none;
  color: var(--app-pink-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-left: 12px;
  padding: 4px 6px;
  text-decoration: underline;
}
.toast-warn {
  background: #4a3420 !important;
}
.toast-good {
  background: #1e3d2b !important;
}
[data-theme='dark'] .toast-warn {
  background: #3a2b1c !important;
}
[data-theme='dark'] .toast-good {
  background: #1d3328 !important;
}

/* 오늘 할 일 카드 · 관계 온도 */
.today-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.today-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
}
.today-row .t-ic {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 15px;
  flex-shrink: 0;
  background: var(--app-soft);
}
.today-row .t-tx {
  flex: 1;
  min-width: 0;
}
.today-row .t-tx strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--app-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-row .t-tx small {
  font-size: 10px;
  color: var(--app-muted);
}
.today-row .t-act {
  flex-shrink: 0;
}

.rel-temp {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rel-temp .temp-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--app-pink-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.rel-temp .temp-meta {
  flex: 1;
  min-width: 0;
}
.rel-temp .temp-meta strong {
  display: block;
  font-size: 13px;
  color: var(--app-ink);
}
.rel-temp .temp-meta small {
  font-size: 11px;
  color: var(--app-muted);
  line-height: 1.5;
}
.temp-gauge {
  height: 6px;
  border-radius: 99px;
  background: var(--app-line);
  margin-top: 8px;
  overflow: hidden;
}
.temp-gauge i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--app-coral), var(--app-pink-ink));
  transition: width 0.4s;
}

/* 주간 분담률 바 */
.chore-share {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 4px;
  background: var(--app-line);
}
.chore-share i {
  display: block;
  height: 100%;
}
.chore-share .me {
  background: var(--app-coral);
}
.chore-share .you {
  background: var(--app-mint);
}
.chore-share-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--app-muted);
}

/* 달력 셀 버튼화 + 선택 상태 */
.cal-cell {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.cal-cell.sel {
  background: var(--app-mint);
  color: var(--app-ink);
  box-shadow: inset 0 0 0 1.5px var(--app-mint);
}
.cal-cell:focus-visible {
  outline: 2px solid var(--app-coral);
  outline-offset: 1px;
}
.cal-day-detail {
  margin-top: 12px;
  border-top: 1px dashed var(--app-line);
  padding-top: 10px;
}
.cal-day-detail h5 {
  font-size: 12px;
  margin: 0 0 8px;
  color: var(--app-ink);
}
.cal-day-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--app-ink);
  padding: 5px 0;
}
.cal-day-item .k {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-day-item .k.event {
  background: var(--app-coral);
}
.cal-day-item .k.anniv {
  background: var(--app-pink-ink);
}

/* 스켈레톤 홈 */
.skel {
  border-radius: 14px;
  background: linear-gradient(90deg, var(--app-surface) 25%, var(--app-soft) 50%, var(--app-surface) 75%);
  background-size: 200% 100%;
  animation: skel-shine 1.4s infinite;
}
@keyframes skel-shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skel-hero {
  height: 120px;
  margin-bottom: 14px;
}
.skel-card {
  height: 64px;
  margin-bottom: 10px;
}
.skel-line {
  height: 14px;
  margin-bottom: 10px;
}

/* 홈 FAB */
.fab {
  position: fixed;
  right: 16px;
  bottom: 86px;
  z-index: 40;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  background: var(--app-coral);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(224, 113, 127, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.fab:active {
  transform: scale(0.94);
}

/* 설치 배너 */
.install-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.install-banner .ib-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--app-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.install-banner .ib-tx {
  flex: 1;
  min-width: 0;
}
.install-banner .ib-tx strong {
  display: block;
  font-size: 12px;
  color: var(--app-ink);
}
.install-banner .ib-tx small {
  font-size: 10px;
  color: var(--app-muted);
}
.install-banner button {
  flex-shrink: 0;
}

/* 응원 메시지 */
.cheer-card {
  background: linear-gradient(135deg, #fff8e7, var(--app-surface));
  border: 1px solid #f0ddba;
}
.cheer-msg {
  font-size: 13px;
  font-weight: 650;
  color: var(--app-ink);
  line-height: 1.6;
}
.cheer-meta {
  font-size: 10px;
  color: var(--app-muted);
  margin-top: 6px;
}
[data-theme='dark'] .cheer-card {
  background: linear-gradient(135deg, #2e2a20, var(--app-surface));
  border-color: #4d4230;
}

/* 응원 칩 */
.cheer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* 미션 진행 */
.mission-progress {
  height: 5px;
  border-radius: 99px;
  background: var(--app-line);
  overflow: hidden;
  margin-top: 8px;
}
.mission-progress i {
  display: block;
  height: 100%;
  background: var(--app-mint);
}

/* 대화 즐겨찾기 별 */
.fav-star {
  border: 0;
  background: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  color: var(--app-muted);
  line-height: 1;
}
.fav-star.on {
  color: #e8b53a;
}

/* 갈등 타이머 */
.cg-timer {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--app-pink-ink);
  text-align: center;
  margin: 8px 0;
}

/* 포커스 링 통일 */
.btn:focus-visible,
.chip:focus-visible,
.icon-button:focus-visible,
.mobile-primary:focus-visible,
.set-link:focus-visible,
.item-del:focus-visible {
  outline: 2px solid var(--app-coral);
  outline-offset: 2px;
}

/* 고대비 모드 */
@media (prefers-contrast: more) {
  :root {
    --app-muted: #4a5058;
    --app-line: #5a616b;
  }
  [data-theme='dark'] {
    --app-muted: #c9ced6;
    --app-line: #8a919c;
  }
  .badge,
  .chip,
  .field-hint {
    border-width: 1.5px;
  }
}

/* 화면리더 전용 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chore-last {
  display: block;
  font-size: 10px;
  color: var(--app-muted);
  font-weight: 400;
  margin-top: 1px;
}
.shop-qty {
  width: 56px;
  flex-shrink: 0;
  text-align: center;
}
.exp-filter .chip-row {
  margin-top: 8px;
}

/* 관계 온도 카드 */
.temp-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 16px;
  margin: 0 20px 20px;
}
.temp-face {
  font-size: 34px;
  line-height: 1;
}
.temp-info {
  flex: 1;
  min-width: 0;
}
.temp-info strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--app-ink);
}
.temp-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--app-line);
  overflow: hidden;
  margin: 6px 0;
}
.temp-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffb36b, #ff7e9d);
}
.temp-info p {
  font-size: 12px;
  color: var(--app-muted);
  margin: 0;
}

/* 주간 리포트 */
.week-report {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 20px 20px;
}
.wr-item {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}
.wr-item strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--app-ink);
}
.wr-item small {
  font-size: 10px;
  color: var(--app-muted);
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff3e0;
  color: #e65100;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  margin: 12px 20px 0;
}
.mission-rate {
  font-size: 12px;
  color: var(--app-muted);
  font-weight: 600;
  margin-left: 4px;
}
.lm-next {
  margin: 10px 0 0;
  text-align: center;
  color: var(--app-muted);
}

/* 플로팅 빠른 추가 버튼 */
.fab-wrap {
  position: fixed;
  right: 16px;
  bottom: calc(96px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--app-coral);
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fab:active {
  transform: scale(0.94);
}
.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.fab-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--app-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.fab-menu button:active {
  background: var(--app-line);
}

/* 오늘 할 일 */
.today-tasks {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  margin: 14px 20px;
  padding: 14px;
}
.today-tasks h2 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--app-ink);
}
.today-tasks h2 span {
  font-size: 11px;
  color: var(--app-muted);
  font-weight: 600;
  margin-left: 6px;
}
.tt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--app-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
}
.tt-row small {
  color: var(--app-muted);
  font-weight: 500;
}
.tt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tt-dot.ev {
  background: #7e9dff;
}
.tt-dot.ch {
  background: #5ec4a0;
}
.tt-dot.sh {
  background: #ffb36b;
}

/* 풀투리프레시 인디케이터 */
.ptr-ind {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translate(-50%, -60px);
  background: var(--app-ink);
  color: var(--app-paper);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 99px;
  z-index: 80;
  transition: transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.ptr-ind.show {
  transform: translate(-50%, 0);
}

/* 키보드 포커스 링 */
:focus-visible {
  outline: 2.5px solid var(--app-coral);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus:not(:focus-visible) {
  outline: none;
}

/* 최소 터치 타겟 */
.icon-button {
  min-width: 44px;
  min-height: 44px;
}
.chip {
  min-height: 44px;
}
.chip-sm {
  min-height: 36px;
}
.cal-cell {
  min-height: 44px;
}

/* 부트 스켈레톤 */
.skel-boot {
  padding: 24px 20px;
}
.skel-bar {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--app-line) 25%, var(--app-paper) 50%, var(--app-line) 75%);
  background-size: 200% 100%;
  animation: skel-sh 1.2s infinite;
  margin-bottom: 14px;
}
.skel-bar.w60 {
  width: 60%;
}
.skel-bar.w40 {
  width: 40%;
}
.skel-card {
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--app-line) 25%, var(--app-paper) 50%, var(--app-line) 75%);
  background-size: 200% 100%;
  animation: skel-sh 1.2s infinite;
  margin-bottom: 14px;
}
.skel-card.short {
  height: 72px;
}
@keyframes skel-sh {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skel-bar,
  .skel-card {
    animation: none;
  }
}

/* 백업 미리보기 */
.bk-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0;
  max-height: 50vh;
  overflow-y: auto;
}
.bk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.bk-row:active {
  background: var(--app-line);
}
.bk-row input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--app-coral);
}
.bk-row span {
  flex: 1;
}
.bk-row small {
  color: var(--app-muted);
}

/* 변경 노트 */
.changelog {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--app-ink);
}
.changelog li::marker {
  color: var(--app-coral);
}

/* 유통기한 관리 */
.pantry-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--app-line);
}
.pantry-row:last-child {
  border-bottom: 0;
}
.pantry-loc {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--app-line);
  color: var(--app-muted);
}
.pantry-loc.냉장 {
  background: var(--app-mint);
  color: #3e7d54;
}
.pantry-loc.냉동 {
  background: #e3ecf7;
  color: #4a6f9e;
}
.pantry-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pantry-info strong {
  font-size: 14px;
}
.pantry-info small {
  font-size: 11.5px;
  color: var(--app-muted);
}
.pantry-d {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 10px;
}
.pantry-d.expired {
  background: #fbe4e6;
  color: #c04a58;
}
.pantry-d.soon {
  background: #fbe4e6;
  color: #c04a58;
}
.pantry-d.week {
  background: #fdf0dd;
  color: #a06a2c;
}
.pantry-d.ok {
  background: var(--app-mint);
  color: #3e7d54;
}

/* 러브 쿠폰 */
.coupon-ticket {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  margin-top: 8px;
  border: 1.5px dashed var(--app-coral);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--app-soft), var(--app-surface));
}
.coupon-face {
  font-size: 20px;
}
.coupon-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.coupon-info strong {
  font-size: 14px;
}
.coupon-info small {
  font-size: 11.5px;
  color: var(--app-muted);
}
.coupon-used {
  text-decoration: line-through;
  opacity: 0.7;
  margin-top: 6px;
}

/* 룰렛 */
.roulette-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--app-soft);
  text-align: center;
  font-size: 16px;
}

/* 빌려준 돈 */
.debt-amt {
  max-width: 110px;
}
[dir='rtl'] .debt-amt {
  max-width: none;
}

/* 앱 잠금 화면 */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-paper);
  padding: 24px;
}
.lock-card {
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--app-surface);
  box-shadow: 0 8px 32px rgba(30, 27, 24, 0.12);
}
.lock-ic {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
}
.lock-card h2 {
  font-size: 19px;
  margin: 0 0 6px;
}
.lock-input {
  text-align: center;
  font-size: 20px;
  letter-spacing: 8px;
  margin: 16px 0 14px;
}

/* 데모 배너 */
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fdf0dd;
  color: #7a5a24;
  font-size: 13px;
  font-weight: 600;
}
.demo-end {
  border: 1px solid #d9b36a;
  background: #fff;
  color: #7a5a24;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
}

/* 전역 검색 */
.gs-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(30, 27, 24, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 16px;
}
.gs-card {
  width: 100%;
  max-width: 460px;
  background: var(--app-surface);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 48px rgba(30, 27, 24, 0.25);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.gs-head {
  display: flex;
  gap: 8px;
  align-items: center;
}
.gs-head .input {
  flex: 1;
}
.gs-results {
  overflow-y: auto;
  margin-top: 10px;
}
.gs-hint {
  padding: 18px 8px;
  text-align: center;
  color: var(--app-muted);
  font-size: 13px;
}
.gs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid var(--app-line);
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--app-ink);
}
.gs-row:last-child {
  border-bottom: 0;
}
.gs-ic {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.gs-tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.gs-tx strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-tx small {
  font-size: 11.5px;
  color: var(--app-muted);
}
.gs-row svg {
  flex-shrink: 0;
  width: 16px;
  color: var(--app-muted);
}

/* 태블릿 (768px+) — 폭 넓히고 그리드를 다단으로 */
@media (min-width: 768px) {
  body {
    max-width: 780px;
  }
  .app-main,
  .is-home .app-main {
    padding-inline: 28px;
  }
  .type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .album-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .cal-grid {
    gap: 6px;
  }
  .cal-cell {
    min-height: 46px;
    font-size: 15px;
  }
  .ll-choice {
    flex-direction: row;
  }
  .ll-opt {
    flex: 1;
  }
  .badge-cell {
    padding: 14px 6px;
  }
  .badge-cell span {
    font-size: 24px;
  }
  .badge-cell small {
    font-size: 11px;
  }
  .gs-card {
    max-width: 560px;
  }
  .talk-sheet {
    border-radius: 28px;
    margin-bottom: 24px;
    max-height: 82dvh;
  }
}
@media (min-width: 1024px) {
  body {
    max-width: 940px;
  }
  .type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .album-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---- Round 6: 카테고리 도넛 / 고정비 제안 / 쇼핑 그룹 / 메모 핀 / 커스텀 체크인 ---- */
/* 카테고리 도넛 차트 */
.cat-donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--app-line);
}
.cat-donut {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-donut::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--app-surface);
}
.cat-donut span {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  color: var(--app-muted);
}
.cat-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--app-ink);
  min-width: 0;
}
.cat-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.cat-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* 고정비 자동 감지 제안 */
.fx-suggest {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--app-soft);
  border: 1px dashed var(--app-line);
  font-size: 12px;
  color: var(--app-ink);
}
.fx-suggest > span:first-child {
  flex: 1;
  min-width: 0;
}
.fx-suggest-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* 쇼핑 카테고리 그룹 헤더 */
.shop-group-t {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 2px;
  font-size: 11px;
  font-weight: 750;
  color: var(--app-muted);
}
.shop-group-t span {
  font-weight: 600;
  color: var(--app-muted);
}

/* 지출 행의 영수증 연결 버튼 */
.exp-rcpt-add {
  opacity: 0.45;
  font-size: 10px;
}
.exp-rcpt-add:hover,
.exp-rcpt-add:focus-visible {
  opacity: 1;
}

/* 우리만의 체크인 질문 행 */
.ciq-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--app-line);
}
.ciq-row:last-of-type {
  border-bottom: 0;
}
.ciq-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--app-ink);
  width: 38%;
  flex-shrink: 0;
  word-break: keep-all;
}
.ciq-in {
  flex: 1;
  min-height: 36px;
  font-size: 12px;
}

/* 메모 핀 버튼·고정 행 */
.memo-pin {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.5;
  border-radius: 50%;
}
.memo-pin[aria-pressed='true'] {
  opacity: 1;
  background: var(--app-soft);
}
.memo-row.pinned {
  background: var(--app-soft);
  border-radius: 12px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 2px -8px;
  border-bottom-color: transparent;
}

/* ---- Round 6B: 쿠폰 승인 / 기분 캘린더 / 미션 카테고리 / 합의서 템플릿 ---- */
/* 쿠폰 승인 대기 상태 */
.coupon-ticket.pending {
  border-style: dashed;
  opacity: 0.85;
}
.coupon-ticket.pending .coupon-info small {
  color: #c98a1b;
  font-weight: 700;
}

/* 달력 주별 기분 색 (체크인 무드 1~5) */
.cal-cell.m1 {
  background: #fde8ea;
  color: #8f2f3d;
}
.cal-cell.m2 {
  background: #fdf0e3;
  color: #8a5a1f;
}
.cal-cell.m3 {
  background: #f2f4f7;
  color: #5b6572;
}
.cal-cell.m4 {
  background: #e8f3ec;
  color: #3d6b4f;
}
.cal-cell.m5 {
  background: #dcf0e6;
  color: #245c42;
}
.cal-cell.m1,
.cal-cell.m2,
.cal-cell.m3,
.cal-cell.m4,
.cal-cell.m5 {
  font-weight: 650;
}
.cal-cell.m1.sel,
.cal-cell.m2.sel,
.cal-cell.m3.sel,
.cal-cell.m4.sel,
.cal-cell.m5.sel {
  box-shadow: inset 0 0 0 1.5px var(--app-coral);
}
.cal-mood-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--app-line);
  flex-wrap: wrap;
}
.cal-mood-key {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.cal-mood-key.m1 {
  background: #fde8ea;
}
.cal-mood-key.m2 {
  background: #fdf0e3;
}
.cal-mood-key.m3 {
  background: #f2f4f7;
}
.cal-mood-key.m4 {
  background: #e8f3ec;
}
.cal-mood-key.m5 {
  background: #dcf0e6;
}

/* 미션 카테고리 배지 */
.msn-cat {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  font-weight: 700;
  color: var(--app-muted);
  background: var(--app-soft);
  padding: 2px 7px;
  border-radius: 99px;
  vertical-align: middle;
}

/* 합의서 템플릿 카드 */
.agree-tpls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.agree-tpl {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--app-surface);
  cursor: pointer;
}
.agree-tpl:active {
  transform: scale(0.985);
}
.agree-tpl strong {
  font-size: 13px;
  font-weight: 750;
  color: var(--app-ink);
}
.agree-tpl small {
  font-size: 11px;
  color: var(--app-muted);
}

/* 인쇄 — 합의서·체크리스트를 문서로 출력 */
@media print {
  .app-header,
  .bottom-nav,
  .fab,
  .fab-menu,
  .tutorial-overlay,
  .lock-screen,
  .gs-overlay,
  .demo-bar,
  .offline-bar,
  .toast,
  .app-toast,
  .back-btn,
  .cta-col,
  .cta-row,
  .icon-button,
  .item-del,
  .btn-danger-text {
    display: none !important;
  }
  html,
  body {
    background: #fff !important;
  }
  .app-main {
    padding: 0 !important;
    max-width: none !important;
  }
  .card,
  .agree-doc,
  .check-cat {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  .check-cat {
    margin-top: 14px;
  }
  * {
    color: #222 !important;
  }
}

/* ---- 알림 센터 ---- */
.notif-btn {
  position: relative;
}
.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger, #e5484d);
  box-shadow: 0 0 0 2px var(--surface, #fff);
}
.notif-overlay .gs-card {
  max-height: 72vh;
}
.gs-title {
  font-size: 15px;
  font-weight: 700;
  margin-right: auto;
}
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.notif-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  background: none;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.notif-row:hover,
.notif-row:active {
  background: var(--surface2, rgba(0, 0, 0, 0.04));
}
.notif-row.is-new {
  background: var(--brand-soft, rgba(99, 102, 241, 0.07));
}
.notif-ico {
  font-size: 17px;
  flex: none;
}
.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notif-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text, #1c1c21);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notif-ts {
  font-size: 11px;
  color: var(--muted, #8a8f98);
}
.notif-new-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand, #6366f1);
  flex: none;
}
.notif-tabs {
  display: flex;
  gap: 6px;
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--line);
}
.notif-tab {
  border: 0;
  background: var(--bg-soft, #f5f4f2);
  color: var(--tx-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.notif-tab i {
  font-style: normal;
  opacity: 0.65;
  font-size: 11px;
}
.notif-tab.on {
  background: var(--brand, #7c6ff0);
  color: #fff;
}
.notif-tab.on i {
  opacity: 0.85;
}
.notif-empty {
  text-align: center;
  color: var(--muted, #8a8f98);
  font-size: 13px;
  padding: 28px 12px;
}
/* 롱프레스 컨텍스트 메뉴 — 하단 바텀시트 */
.ctx-overlay {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(10, 10, 14, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.14s ease;
}
.ctx-sheet {
  width: 100%;
  max-width: 430px;
  background: var(--card, #fff);
  border-radius: 20px 20px 0 0;
  padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: sheetUp 0.18s ease;
}
@keyframes sheetUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.ctx-grip {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--line, #e5e2de);
  margin: 4px auto 10px;
}
.ctx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: none;
  padding: 13px 10px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--tx);
  cursor: pointer;
  text-align: left;
}
.ctx-item small {
  margin-left: auto;
  color: var(--muted, #8a8f98);
  font-size: 11px;
}
.ctx-item:active {
  background: var(--bg-soft, #f5f4f2);
}
.ctx-item .ctx-ic {
  width: 22px;
  text-align: center;
  flex: none;
}
.ctx-item.danger {
  color: var(--danger, #dc4a4a);
}
.notif-empty {
  line-height: 1.7;
}
.notif-empty small {
  font-size: 11px;
}

/* ---- 인앱 리뷰 프롬프트 ---- */
.rate-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft, rgba(99, 102, 241, 0.08)), rgba(255, 193, 7, 0.1));
  border: 1px solid var(--line, #eceef1);
}
.rate-star {
  font-size: 22px;
  flex: none;
}
.rate-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rate-body strong {
  font-size: 13px;
}
.rate-body small {
  font-size: 11px;
  color: var(--muted, #8a8f98);
}
.rate-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
