/* polish.css — Round 143 */
:root[data-theme='dark'] { color-scheme: dark; }
:focus-visible { outline: 3px solid var(--color-primary, #D9411E); outline-offset: 2px; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 900; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--color-primary, #D9411E); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.to-top[hidden] { display: none; }
.read-progress { position: fixed; left: 0; top: 0; height: 4px; width: 0; z-index: 1000; background: var(--color-primary, #D9411E); transition: width .1s linear; }
.net-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; padding: 10px 16px; text-align: center; background: #2b2b2b; color: #fff; font-size: 14px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--color-border, #ddd); background: var(--color-surface, #fff); color: inherit; cursor: pointer; font: inherit; }
.palette { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.palette__box { width: min(520px, 92vw); background: var(--color-surface, #fff); color: var(--color-text, #222); border-radius: 12px; padding: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.palette__box input { width: 100%; min-height: 44px; padding: 0 12px; box-sizing: border-box; }
.palette__list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.palette__list li { border-radius: 8px; }
.palette__list li a { display: block; padding: 10px 12px; text-decoration: none; color: inherit; }
.palette__list li.is-sel { background: rgba(217,65,30,.14); }
@media (forced-colors: active) { .to-top, .share-btn { border: 1px solid ButtonText; } .read-progress { background: Highlight; } }
@media print {
  nav, header.nav, .nav, footer, .site-footer, .cookie-banner, .to-top, .read-progress, .net-banner, .share-btn, .admin-sidebar, .guide-popup, [data-no-print] { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 85%; word-break: break-all; }
  main, .container { max-width: 100% !important; padding: 0 !important; }
}

/* Round 145: "Finish your profile, earn coins" card */
.earn-card { background: linear-gradient(135deg, #fff8e8, #fff3e0); border: 1px solid #f1d9a8; border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; color: #5b3d08; }
.earn-card__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.earn-card__coin { width: 40px; height: 40px; border-radius: 50%; background: #f6c453; display: grid; place-items: center; flex-shrink: 0; color: #5b3d08; }
.earn-card__coin svg { width: 22px; height: 22px; }
.earn-card__txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.earn-card__txt strong { font-size: 15px; }
.earn-card__bar { height: 8px; border-radius: 8px; background: rgba(0,0,0,.08); margin: 10px 0; overflow: hidden; }
.earn-card__bar i { display: block; height: 100%; background: #e0a100; border-radius: 8px; }
.earn-card__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.earn-card__steps li { font-size: 12.5px; background: rgba(255,255,255,.7); border: 1px solid #f1d9a8; border-radius: 999px; padding: 3px 10px; }
.earn-card__steps li.is-done { opacity: .65; text-decoration: line-through; }
@media (prefers-color-scheme: dark) { .earn-card { background: var(--color-surface, #2A221E); border-color: rgba(255,255,255,.14); color: var(--color-text, #f3ece6); } .earn-card__steps li { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.14); } }

/* Round 146: one look for every item card (sale badge, big price + typical price, two-line title, star average) */
.pm-badge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; font-size: 12px; }
.pm-off { background: #cc0c39; color: #fff; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.pm-ends { color: #cc0c39; font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-price { margin: 4px 0 2px; line-height: 1.2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.pm-amt { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.pm-amt--sale { color: #cc0c39; }
.pm-unit { font-size: 13px; font-weight: 600; }
.pm-typ { font-size: 12.5px; color: var(--color-text-muted); }
.pm-typ s { color: var(--color-text-muted); }
.pm-free { font-size: 14px; font-weight: 700; color: #067d62; }
.pm-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.pm-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; margin: 4px 0; }
.pm-num { font-weight: 500; }
.pm-stars { display: inline-flex; letter-spacing: 1px; font-size: 15px; line-height: 1; }
.pm-stars i { font-style: normal; color: #d5d9d9; }
.pm-stars i.on { color: #de7921; }
.pm-stars i.half { background: linear-gradient(90deg, #de7921 50%, #d5d9d9 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-chev { color: var(--color-text-muted); font-size: 12px; }
.rate-widget { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; }
.rate-widget__stars button { background: none; border: 0; cursor: pointer; font-size: 24px; line-height: 1; color: #d5d9d9; padding: 0 1px; }
.rate-widget__stars button.on, .rate-widget__stars:hover button { color: #de7921; }
.rate-widget__stars button:hover ~ button { color: #d5d9d9; }
@media (prefers-color-scheme: dark) { .pm-stars i, .rate-widget__stars button { color: #4a4a4a; } .pm-stars i.on, .rate-widget__stars button.on, .rate-widget__stars:hover button { color: #f0a050; } .pm-stars i.half { background: linear-gradient(90deg, #f0a050 50%, #4a4a4a 50%); -webkit-background-clip: text; background-clip: text; color: transparent; } .pm-off { background: #e0305a; } .pm-ends, .pm-amt--sale { color: #ff6b88; } }

/* Round 148: profile steps collapse to four chips until asked */
.earn-card:not(.is-open) .earn-more { display: none; }
.earn-card.is-open .earn-toggle { display: none; }
.earn-toggle { list-style: none; }

/* Round 148: share menu */
.share-sheet { position: absolute; z-index: 60; margin-top: 8px; min-width: 210px; padding: 6px; display: grid; gap: 2px; background: var(--color-surface, #fff); border: 1px solid var(--color-border, #ddd); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.share-sheet__item { display: block; width: 100%; text-align: left; padding: 10px 12px; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.share-sheet__item:hover, .share-sheet__item:focus-visible { background: var(--color-bg, #f5f1ec); }
.share-sheet__url { width: 100%; margin-top: 4px; padding: 8px 10px; font-size: 12.5px; border: 1px solid var(--color-border, #ddd); border-radius: 8px; }
@media print { .share-sheet { display: none !important; } }

/* Round 151: promo-code box on member checkouts */
.promo-box { margin: 12px 0 4px; font-size: 14px; }
.promo-box__toggle { background: none; border: 0; padding: 4px 0; color: var(--color-primary, #D9411E); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-weight: 600; min-height: 36px; }
.promo-box__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.promo-box__row[hidden] { display: none; }
.promo-box__input { flex: 1 1 160px; min-width: 0; padding: 9px 12px; border: 1px solid var(--color-border, #d8d2cc); border-radius: 10px; font: inherit; text-transform: uppercase; letter-spacing: .04em; background: var(--color-surface, #fff); color: inherit; min-height: 44px; }
.promo-box .btn { min-height: 44px; }
.promo-box__msg { margin-top: 6px; min-height: 1.2em; line-height: 1.4; }
.promo-box__msg.is-good { color: #17684a; font-weight: 600; }
.promo-box__msg.is-bad { color: #b3261e; }
html[data-theme="dark"] .promo-box__msg.is-good { color: #7fd6a8; }
html[data-theme="dark"] .promo-box__msg.is-bad { color: #ff9b94; }
