#promotion-details { padding: 0 14px 14px; color: #333d4b; font-size: 14px; line-height: 1.6; }
.utility-action-icon:has(svg)::before { display: none; }
html body .topbar-row1 #notices-btn {position:relative;display:grid;place-items:center;min-width:40px;height:44px;padding:0;border:0;background:transparent;color:#536579;box-shadow:none}
#notices-btn[data-unread="true"]::after { content: ''; position: absolute; width: 5px; height: 5px; top: 7px; right: 6px; border-radius: 50%; background: #f04452; }
html body #notices-modal > .notices-content::before { display: none; }
html body :is(#notices-modal,#ranking-modal).modal > .current-ranking-content {padding:0!important;display:flex;flex-direction:column;overflow:hidden;--dialog-card-overflow-y:hidden}
.notices-content .current-ranking-heading {position:static;flex-shrink:0}
html body #notices-modal #notices-title {font-size:20px;line-height:1.3;text-align:left}
.notices-list { padding: 0 20px calc(20px + env(safe-area-inset-bottom,0px)); text-align:left;min-height:0;overflow-y:auto; }
.notices-list article {padding:12px 0 8px;border-bottom:1px solid #f2f4f6}
.notices-list time {color:#8b95a1;font-size:13px}
.notices-list h3 {margin:8px 0 16px;color:#191f28;font-size:18px;line-height:1.45;font-weight:700;word-break:keep-all;overflow-wrap:anywhere}
.notice-copy {margin-bottom:12px;color:#4e5968;font-size:15px;line-height:1.65;word-break:keep-all}
.utility-action-icon:has(svg) { display: grid; place-items: center; }
:is(#ranking-modal,#notices-modal) .current-ranking-content { background: #fff; color: #191f28; width: min(100%, 440px); max-height: min(88dvh, 800px); overflow-y: auto; padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px)); border-radius: 24px; }
.current-ranking-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; height:56px;box-sizing:border-box;padding: 6px 10px 6px 20px; border-bottom: 1px solid #e5e8eb; background: #fff; flex-shrink:0; }
#ranking-modal .ranking-scroll-body {min-height:0;overflow-y:auto;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
html body :is(#ranking-modal,#notices-modal) .current-ranking-heading :is(#ranking-title,#notices-title) {margin:0!important;padding:0;font-size:20px;line-height:1.2;font-weight:850}
:is(#ranking-modal,#notices-modal) .current-ranking-content :is(#ranking-close-btn,#notices-close-btn) { display: grid; place-items: center; align-self: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; background: transparent; color: #4e5968; border: 0; border-radius: 0; box-shadow: none; }
html body #feature-panel-shell #feature-panel-close { background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #4e5968; padding: 0; }
.current-ranking-nickname-action { padding: 18px 20px 6px; }
#ranking-modal .ranking-scopes {display:flex;flex-shrink:0;margin:0 20px;border-bottom:1px solid #e5e8eb}
html body #ranking-modal.modal .modal-content .ranking-scopes button {flex:1;min-height:48px;margin:0;padding:12px 4px;border:0;border-bottom:2px solid transparent;border-radius:0!important;background:transparent;box-shadow:none;color:#8b95a1;font:inherit;font-size:16px;font-weight:700}
html body #ranking-modal.modal .modal-content .ranking-scopes button[aria-pressed="true"] {color:#191f28;border-bottom-color:#191f28}
.current-ranking-nickname-action:has([hidden]) { display: none; }
#current-ranking-nickname-btn { width: 100%; min-height: 44px; margin: 0; padding: 10px 16px; color: #3182f6; background: #f0f6ff; border: 0; border-radius: 12px; font-size: 14px; font-weight: 700; }
#current-ranking-nickname-btn[hidden] { display: none; }
#current-ranking-list { padding-top: 12px; }
#ranking-modal .ranking-browser { padding: 12px 0 0; }
#ranking-modal :is(.ranking-browser,#ranking-browser-content,#current-ranking-list)[hidden] { display: none; }
#ranking-modal .ranking-expand { display: flex; justify-content: center; align-items: center; gap: 8px; width: calc(100% - 40px); margin: 0 20px 12px; min-height: 44px; border: 0; background: #f2f4f6; color: #4e5968; border-radius: 12px; font-size: 14px; font-weight: 700; }
#ranking-modal .ranking-search { display: flex; gap: 8px; margin: 0 20px; }
#ranking-modal .ranking-expand svg { display: block; flex: 0 0 16px; transition: transform .16s ease; }
#ranking-modal .ranking-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
#ranking-modal .ranking-search input { box-sizing: border-box; min-width: 0; flex: 1; width: 0; height: 48px; margin: 0; padding: 0 12px; border: 1px solid #e5e8eb; border-radius: 12px; background: #f9fafb; color: #191f28; font-size: 16px; }
#ranking-modal .ranking-search button { box-sizing: border-box; flex: 0 0 56px; height: 48px; min-height: 48px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: #3182f6; color: white; font-size: 14px; }
#ranking-modal .ranking-result-status { margin: 12px 20px 4px; color: #6b7684; font-size: 13px; text-align: left; }
#ranking-modal .ranking-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 20px 0; font-size: 14px; color: #6b7684; }
#ranking-modal .ranking-pages button { min-height: 44px; padding: 8px 16px; background: #f2f4f6; border: 0; border-radius: 12px; color: #4e5968; font-size: 14px; }
#ranking-modal .ranking-pages button:disabled { opacity: .4; }
.current-ranking-row { display: grid; grid-template-columns: 28px 36px minmax(0,1fr); align-items: center; gap: 10px; min-height: 52px; padding: 4px 20px; }
.current-ranking-row.is-me { background: #f0f6ff; }
.current-ranking-row > b { text-align: center; color: #6b7684; font-size: 16px; font-weight: 600; }
.current-ranking-row.is-me > b { color: #3182f6; }
.current-ranking-row img { width: 36px; height: 40px; object-fit: contain; background: #f2f4f6; border-radius: 10px; }
#ranking-modal[data-ranking-expanded="true"] .current-ranking-nickname-action { display: none; }
.current-ranking-person { min-width: 0; display: grid; gap: 2px; text-align:left; }
.current-ranking-person span { color: #6b7684; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.current-ranking-person strong { color: #191f28; font-size: clamp(16px,4.6vw,20px); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; letter-spacing: -.4px; }
.current-ranking-gap { color: #b0b8c1; height:16px;line-height:16px;padding-left:31px;text-align:left; }
#panel-bank :is(.bank-projection, .bank-empty-hint)[hidden] { display: none; }
#promotion-conditions { white-space: pre-line; margin: 8px 0; text-align: left; font-size: 13px; font-weight: 500; line-height: 1.6; color: #4e5968; }
#promotion-milestones { margin: 8px 0; padding: 0; list-style: none; text-align: left; }

body[data-platform="toss"] #app {
  background: linear-gradient(180deg, #f4f9ff 0 170px, #fff 170px 284px, #f2f4f6 284px 100%) !important;
}

body[data-platform="toss"][data-active-panel="home"] :is(#main-screen, #panel-home, #home-control-deck) {
  background-color: #f2f4f6 !important;
}

.boost-choice-status:empty { display: none; }
/* A visible waiting state without rebuilding the label or shifting the sheet. */
html body #bonus-confirm-action-btn[aria-busy="true"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding-inline: 8px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  cursor: wait;
}
html body #bonus-confirm-action-btn[aria-busy="true"]::before {
  content: '' !important;
  display: block !important;
  position: static !important;
  box-sizing: border-box;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  background: transparent;
  animation: reward-action-spin .8s linear infinite;
}
@keyframes reward-action-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html body #bonus-confirm-action-btn[aria-busy="true"]::before { animation: none; }
}
html body #boost-choice-modal .boost-choice-option { background: #fff; }
html body #boost-choice-modal .dialog-actions { margin-top: 16px; }
html body #share-reward-modal .share-reward-steps li { text-align: left; }
html body #pc-phone-stage #share-reward-modal :is(#share-reward-step-share,#share-reward-step-start,#share-reward-note) {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 21px !important;
  color: #191f28 !important;
  overflow-wrap: anywhere;
}
html body #share-reward-modal .share-reward-content h2 > strong {
  font-size: clamp(19px, 5.5vw, 25px);
  line-height: 1.35;
  white-space: nowrap;
}
html body #share-reward-modal .share-reward-intro { display: none; }
html body #boost-choice-modal .boost-choice-copy strong { font-size: 17px; }
.bonus-confirm-scene { position: relative; min-width: 0; }
html body #bonus-confirm-modal.has-balanced-reward-spacing .bonus-confirm-content { gap: 12px !important; }
html body #bonus-confirm-modal.has-balanced-reward-spacing :is(.bonus-confirm-scene,.bonus-confirm-visual,.bonus-confirm-benefit,.dialog-actions) { margin: 0 !important; }
html body #bonus-confirm-modal.has-balanced-reward-spacing .bonus-confirm-benefit { padding-block: 0 !important; }
html body #bonus-confirm-modal.has-boost-estimate .story-image-actor {
  left: 3% !important;
  width: 30% !important;
}
html body #bonus-confirm-modal.has-boost-estimate .bonus-confirm-content { gap: 8px !important; }
html body #bonus-confirm-modal.has-boost-estimate .bonus-confirm-copy { margin-bottom: 0 !important; }
html body #bonus-confirm-modal.has-boost-estimate .bonus-confirm-visual { margin: 0 !important; }
html body #bonus-confirm-modal.has-boost-estimate .bonus-confirm-benefit { display: none; }
html body #pc-phone-stage #bonus-confirm-modal #bonus-confirm-estimate:not(.hidden) {
  box-sizing: border-box;
  position: absolute;
  z-index: 5;
  top: 16%;
  left: 50%;
  width: 45%;
  margin: 0 !important;
  padding: 12px 10px !important;
  border: 1px solid #d1d6db;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 8px #191f2814;
  color: #191f28 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  text-align: center;
  word-break: keep-all;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.boost-estimate-speech::after {
  content: none;
}

@media (max-width: 350px) {
  html body #pc-phone-stage #bonus-confirm-modal #bonus-confirm-estimate:not(.hidden) {
    padding-inline: 8px !important;
    font-size: 13px !important;
  }
}
.reward-receipt-check.boost-status-icon::after { content: none; }
.boost-status-icon { font-size: 24px; font-weight: 800; }
.boost-choice-status:not(:empty) {
  display: grid !important;
  margin: 0 !important;
  text-align: left;
}
.boost-choice-status strong {
  color: #191f28;
  font-size: 14px;
  font-weight: 850;
  line-height: 20px;
}
.boost-choice-status em {
  color: #1769e5;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Keep the active boost indicator and chevrons centered, including phone-frame PC. */
html body #boost-choice-modal .boost-choice-option { border-radius: 0 !important; box-shadow: none !important; }
html body #boost-choice-modal .boost-choice-arrow { align-self: center !important; line-height: 1 !important; transform: none !important; }
html body #boost-choice-modal .boost-status-icon { display: flex !important; align-items: center !important; justify-content: center !important; align-self: center !important; font-size: 17px !important; line-height: 38px !important; padding: 0 !important; transform: none !important; }
html body #boost-choice-modal .boost-choice-status { border-radius: 12px; box-shadow: none; }
.boost-paid-offers { display: grid; gap: 12px; min-width: 0; }
.boost-paid-offers h3 { margin: 0; font-size: 16px; color: #191f28; }
.boost-paid-offer { display: grid; gap: 8px; padding: 16px; border: 1px solid #e5e8eb; border-radius: 0; background: #fff; min-width: 0; text-align: left; }
.boost-paid-offer strong { font-size: 16px; color: #191f28; }
.boost-paid-offer small { color: #1769e5; font-weight: 700; }
.boost-paid-offer p { margin: 0; color: #333d4b; font-size: 13px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
#sell-reward-modal:has(#liquidation-revival-offer:not(.hidden)) .modal-content { max-height: calc(100dvh - 24px); overflow-y: auto; }
html body #boost-choice-modal .boost-paid-offer p { margin: 0; font-size: 13px; line-height: 1.5; color: #333d4b; word-break: keep-all; overflow-wrap: anywhere; }
html body #boost-choice-modal .boost-choice-content { max-height: calc(100dvh - 40px); overflow-y: auto; background: #fff !important; }
html body #boost-choice-modal .boost-paid-offer p { font-size: 13px !important; line-height: 1.5 !important; }
html body #sell-reward-modal #sell-reward-double-btn:not(.hidden) { display: flex !important; }
html body #sell-reward-modal .dialog-actions { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }

.reward-receipt-layer {
  position: fixed;
  z-index: 12000;
  top: var(--reward-receipt-anchor-top);
  left: 50%;
  width: min(calc(100vw - 24px), 372px);
  transform: translateX(-50%);
  pointer-events: none;
}

.reward-receipt-layer.hidden { display: none !important; }

.reward-receipt-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #d8e9fb;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 34px rgba(25, 31, 40, .2), inset 0 1px rgba(255, 255, 255, .9);
  pointer-events: auto;
}

.reward-receipt-layer.is-entering .reward-receipt-card {
  animation: reward-receipt-enter .3s cubic-bezier(.2, .9, .25, 1.15) both;
}

.reward-receipt-check {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #4d9cff, #1769e5);
  box-shadow: 0 6px 14px rgba(49, 130, 246, .28);
}

.reward-receipt-check::after {
  width: 12px;
  height: 6px;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  content: "";
  transform: translateY(-2px) rotate(-45deg);
}

.reward-receipt-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.reward-receipt-copy > strong {
  overflow: hidden;
  color: #191f28;
  font-size: 14px;
  font-weight: 850;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-receipt-copy > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  color: #6b7684;
  font-size: 11px;
  font-weight: 700;
}

.reward-receipt-copy em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.reward-receipt-copy b { color: #1769e5; font-size: 13px; font-weight: 900; white-space: nowrap; }
.reward-receipt-card > button {
  min-width: 45px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: #1769e5;
  background: #edf5ff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

#ranking-modal.modal > .toss-ranking-content.dialog-card {
  box-sizing: border-box;
  display: grid;
  width: min(calc(100vw - 24px), 390px);
  height: auto;
  max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))) !important;
  grid-template-rows: none;
  align-content: start;
  gap: 12px;
  padding: 18px 16px 16px;
  overflow: auto;
  border: 1px solid #e5e8eb;
  border-radius: 22px;
  background: #fff !important;
  box-shadow: 0 22px 48px rgba(25, 31, 40, .24);
  text-align: left;
}

#ranking-modal .toss-ranking-content::before { display: none; }
#ranking-modal .toss-ranking-content .ranking-header { display: grid; gap: 3px; padding: 0; }
#ranking-modal .toss-ranking-content .ranking-header .dialog-title {
  margin: 0;
  color: #191f28;
  font-size: 25px;
  font-weight: 900;
  line-height: 32px;
}

#ranking-modal .toss-ranking-content .ranking-header p {
  margin: 0;
  color: #6b7684;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 18px;
  word-break: keep-all;
}

.toss-ranking-kicker {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #1769e5;
  background: #edf5ff;
  font-size: 10px;
  font-weight: 850;
  line-height: 14px;
}

.toss-ranking-record {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #d8e9fb;
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
}

.toss-ranking-medal {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(49, 130, 246, .13);
  font-size: 23px;
}

.toss-ranking-record-copy { display: grid; min-width: 0; gap: 1px; }
.toss-ranking-record-copy small { color: #6b7684; font-size: 11px; font-weight: 750; line-height: 16px; }
#ranking-modal .toss-ranking-record-copy #ranking-summary-worth {
  overflow: hidden;
  color: #1769e5;
  font-size: 21px;
  font-weight: 900;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.toss-ranking-guide {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 10px 11px;
  border-radius: 11px;
  color: #4e5968;
  background: #f7f8fa;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 17px;
  word-break: keep-all;
}

.toss-ranking-guide > span {
  width: 8px;
  height: 8px;
  border-top: 2px solid #3182f6;
  border-right: 2px solid #3182f6;
  transform: rotate(45deg);
}
#ranking-modal .toss-ranking-content .dialog-actions { display: grid; gap: 8px; margin: 0; }
#ranking-modal .toss-ranking-content :is(#ranking-native-open-btn, #ranking-close-btn) {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 850;
}

@keyframes reward-receipt-enter {
  from { opacity: 0; transform: translateY(-14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 380px) {
  body[data-platform="toss"] #app {
    background: linear-gradient(180deg, #f4f9ff 0 156px, #fff 156px 270px, #f2f4f6 270px 100%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reward-receipt-layer.is-entering .reward-receipt-card { animation: none; }
}
