/* ═══════════════════════════════════════════
   SHARED POST-ANSWER CSS
   Canonical source: home2v2/home2.css
   Used by: home2v2, ficha2
   ═══════════════════════════════════════════ */

/* ─── Dark mode overrides for shared components ─── */
[data-theme="dark"] .hints-trigger { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .hints-trigger:hover { background: hsl(250 10% 20%); }
[data-theme="dark"] .hints-ico { background: hsl(250 15% 18%); border-color: rgba(150,120,232,0.2); }
[data-theme="dark"] .hints-body { background: hsl(var(--card)); }
[data-theme="dark"] .hint-item { background: hsl(var(--secondary)); border-color: rgba(150,120,232,0.12); }
[data-theme="dark"] .hint-text { color: hsl(var(--foreground) / 0.88); }
[data-theme="dark"] .sol-trigger { background: hsl(250 28% 11%); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .sol-trigger:hover { background: hsl(250 30% 13%); }
[data-theme="dark"] .sol-label { color: hsl(var(--primary) / 0.85); }
[data-theme="dark"] .sol-body { background: hsl(250 22% 10%); border-color: rgba(113,84,232,0.18); }
[data-theme="dark"] .sol-insight { color: hsl(var(--primary) / 0.7); }
[data-theme="dark"] .sol-step { background: hsl(250 20% 13%); border-color: rgba(113,84,232,0.12); }
[data-theme="dark"] .sol-step strong { color: hsl(var(--primary) / 0.9); }
[data-theme="dark"] .sol-step p { color: hsl(252 20% 72%); }
[data-theme="dark"] .feedback-card {
  background: linear-gradient(180deg, hsl(242 12% 14%) 0%, hsl(242 10% 11%) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 8px 24px hsl(240 50% 3% / 0.45);
}
[data-theme="dark"] .feedback-card.correct  { background: linear-gradient(180deg, hsl(148 30% 12%), hsl(148 28% 9%)); border-color: rgba(34,197,94,0.3); }
[data-theme="dark"] .feedback-card.partial  { background: linear-gradient(180deg, hsl(38 32% 12%), hsl(38 30% 9%));  border-color: rgba(234,179,8,0.3); }
[data-theme="dark"] .feedback-card.incorrect{ background: linear-gradient(180deg, hsl(0 28% 12%), hsl(0 26% 9%));   border-color: rgba(239,68,68,0.26); }
[data-theme="dark"] .feedback-card.correct::before  { background: #4ade80; }
[data-theme="dark"] .feedback-card.partial::before  { background: #fbbf24; }
[data-theme="dark"] .feedback-card.incorrect::before{ background: #f87171; }
[data-theme="dark"] .feedback-card.correct  .fc-label { color: #6ee7a0; }
[data-theme="dark"] .feedback-card.correct  .fc-icon  { color: #6ee7a0; }
[data-theme="dark"] .feedback-card.partial  .fc-label { color: #fcd34d; }
[data-theme="dark"] .feedback-card.partial  .fc-icon  { color: #fcd34d; }
[data-theme="dark"] .feedback-card.incorrect .fc-label{ color: #fca5a5; }
[data-theme="dark"] .feedback-card.incorrect .fc-icon { color: #fca5a5; }
[data-theme="dark"] .fc-title { color: hsl(var(--foreground)); text-shadow: 0 0 0.5px rgba(255,255,255,0.1); }
[data-theme="dark"] .fc-text { color: hsl(var(--muted-foreground) / 0.88); }
[data-theme="dark"] .fc-footer                        { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.4); }
[data-theme="dark"] .feedback-card.correct  .fc-footer { background: hsl(148 22% 8%); border-color: rgba(34,197,94,0.18); }
[data-theme="dark"] .feedback-card.partial  .fc-footer { background: hsl(38 22% 8%);  border-color: rgba(234,179,8,0.18); }
[data-theme="dark"] .feedback-card.incorrect .fc-footer{ background: hsl(0 20% 8%);   border-color: rgba(239,68,68,0.18); }
[data-theme="dark"] .postnav-grid {
  background: linear-gradient(180deg, hsl(242 10% 12%) 0%, hsl(242 10% 10%) 100%);
  border-color: hsl(var(--border) / 0.5);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 8px 24px hsl(240 50% 3% / 0.4);
}
[data-theme="dark"] .postnav-tile { color: hsl(var(--foreground)); border-color: hsl(var(--border) / 0.4); }
[data-theme="dark"] .postnav-tile:hover { background: hsl(250 12% 18%); border-color: hsl(var(--primary) / 0.28); box-shadow: 0 0 8px rgba(113,84,232,0.15); }
[data-theme="dark"] .postnav-tile.active { background: hsl(250 14% 16%); box-shadow: inset 4px 0 0 hsl(var(--primary) / 0.7), 0 0 6px rgba(113,84,232,0.1); }
[data-theme="dark"] .postnav-header { color: hsl(var(--muted-foreground) / 0.7); }
[data-theme="dark"] .postnav-panel { background: hsl(var(--card)); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .postnav-panel-inner { background: hsl(var(--card)); }
[data-theme="dark"] .tile-copy strong { color: hsl(var(--foreground) / 0.95); }
[data-theme="dark"] .tile-copy em { color: hsl(var(--muted-foreground) / 0.82); }
[data-theme="dark"] .week-panel-premium .postnav-panel { background: linear-gradient(180deg, hsl(240 8% 11%) 0%, hsl(240 8% 10%) 100%); border-color: hsl(250 20% 22%); box-shadow: 0 16px 36px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.04) inset; }
[data-theme="dark"] .week-panel-premium .postnav-panel-inner { background: linear-gradient(180deg, hsl(240 8% 11% / 0.6) 0%, hsl(240 8% 10% / 0.9) 100%); }
[data-theme="dark"] .week-heading-premium { border-bottom-color: hsl(250 20% 20%); }
[data-theme="dark"] .week-row-premium { background: linear-gradient(180deg, hsl(240 8% 13%) 0%, hsl(240 8% 12%) 100%); border-color: hsl(250 15% 22%); box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.03) inset; color: hsl(var(--foreground)); }
[data-theme="dark"] .week-row-premium:hover { background: linear-gradient(180deg, hsl(240 8% 16%) 0%, hsl(240 8% 14%) 100%); border-color: hsl(250 50% 40%); box-shadow: 0 8px 24px rgba(113,84,232,0.18), 0 1px 0 rgba(255,255,255,0.04) inset; }
[data-theme="dark"] .week-row-premium.week-today { background: linear-gradient(135deg, hsl(250 40% 14%) 0%, hsl(240 8% 12%) 100%); border-color: hsl(250 60% 40%); box-shadow: 0 3px 12px rgba(113,84,232,0.15), 0 1px 0 rgba(255,255,255,0.03) inset, inset 3px 0 0 hsl(250 85% 55%); }
[data-theme="dark"] .week-row-premium.week-done { background: linear-gradient(135deg, hsl(155 30% 12%) 0%, hsl(240 8% 12%) 100%); border-color: hsl(155 40% 22%); box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.03) inset; }
[data-theme="dark"] .week-row-premium.week-today.week-done { border-color: hsl(155 45% 28%); background: linear-gradient(135deg, hsl(155 30% 12%) 0%, hsl(250 20% 13%) 50%, hsl(240 8% 12%) 100%); box-shadow: 0 3px 12px rgba(22,138,80,0.1), 0 1px 0 rgba(255,255,255,0.03) inset, inset 3px 0 0 #168a50; }
[data-theme="dark"] .week-row-premium.week-done .wip-title { color: hsl(155 50% 78%); }
[data-theme="dark"] .wip-title { color: hsl(250 10% 90%); }
[data-theme="dark"] .wip-level, [data-theme="dark"] .wip-theme, [data-theme="dark"] .wip-dot { color: hsl(var(--muted-foreground)); }
[data-theme="dark"] .wip-diff-dot { background: hsl(250 15% 28%); }
[data-theme="dark"] .wip-diff-dot.active { background: hsl(var(--primary) / 0.6); }
[data-theme="dark"] .week-row-premium.week-done .wip-diff-dot.active { background: hsl(155 50% 40% / 0.6); }
[data-theme="dark"] .wip-check-inline { stroke: #3dce7a; color: #3dce7a; }
[data-theme="dark"] .week-day-chip-premium { background: linear-gradient(145deg, hsl(250 25% 18%), hsl(250 20% 16%)); border-color: hsl(250 30% 28%); }
[data-theme="dark"] .week-day-chip-premium.wdc-today { background: linear-gradient(145deg, hsl(250 70% 42%), hsl(250 65% 36%)); border-color: hsl(250 70% 50%); box-shadow: 0 3px 12px rgba(113,84,232,0.35); }
[data-theme="dark"] .week-day-chip-premium.wdc-done { background: linear-gradient(145deg, hsl(155 35% 16%), hsl(155 30% 13%)); border-color: hsl(155 40% 26%); }
[data-theme="dark"] .week-day-chip-premium.wdc-today.wdc-done { background: linear-gradient(145deg, hsl(155 50% 24%), hsl(155 45% 20%)); border-color: hsl(155 50% 32%); box-shadow: 0 3px 12px rgba(22,138,80,0.3); }
[data-theme="dark"] .week-footer-link { background: linear-gradient(135deg, hsl(250 20% 15%), hsl(250 18% 13%)); border-color: hsl(250 25% 24%); color: hsl(var(--primary)); }
[data-theme="dark"] .week-footer-link:hover { background: linear-gradient(135deg, hsl(250 25% 18%), hsl(250 22% 16%)); border-color: hsl(var(--primary) / 0.3); }
[data-theme="dark"] .week-ring-svg circle:first-child { stroke: hsl(250 20% 18%); }
[data-theme="dark"] .tell-row { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.5); color: hsl(var(--foreground)); }
[data-theme="dark"] .tell-row:hover { background: hsl(250 12% 20%); }
[data-theme="dark"] .tell-form-field input, [data-theme="dark"] .tell-form-field textarea { background: hsl(var(--input)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
[data-theme="dark"] .subscribe-input { background: hsl(var(--input)); border-color: hsl(var(--border)); }
[data-theme="dark"] .subscribe-telegram-ultra { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.5); color: hsl(var(--foreground)); }
[data-theme="dark"] .sub-tg-text strong { color: hsl(var(--foreground)); }
[data-theme="dark"] .share-message-premium { background: hsl(var(--card)); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .share-message-header { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.3); }
[data-theme="dark"] .share-message-content { background: hsl(var(--secondary)); }
[data-theme="dark"] .share-message-text { color: hsl(var(--foreground)); }
[data-theme="dark"] .share-message-actions { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.3); }
[data-theme="dark"] .rating-stars button { color: hsl(var(--muted-foreground) / 0.4); }
[data-theme="dark"] .rating-stars button:hover { color: hsl(45 90% 60%); }
[data-theme="dark"] .rating-stars button.on { color: hsl(45 92% 58%); text-shadow: 0 0 8px rgba(251,191,36,0.4); }
[data-theme="dark"] .rating-module { border-top-color: hsl(var(--border) / 0.4); }
[data-theme="dark"] .rating-label { color: hsl(var(--muted-foreground) / 0.82); }
[data-theme="dark"] .rating-hint { color: hsl(45 80% 62%); }

/* Subscribe panel dark — text colors */
[data-theme="dark"] .subscribe-hero-text h3 { color: hsl(var(--foreground)); }
[data-theme="dark"] .subscribe-hero-text p { color: hsl(var(--muted-foreground) / 0.82); }
[data-theme="dark"] .subscribe-label { color: hsl(var(--foreground) / 0.75); }
[data-theme="dark"] .subscribe-consent { color: hsl(var(--muted-foreground) / 0.72); }
[data-theme="dark"] .subscribe-divider span { color: hsl(var(--muted-foreground) / 0.6); }

/* Share panel dark — text colors */
[data-theme="dark"] .share-hero-premium h3 { color: hsl(var(--foreground)); }
[data-theme="dark"] .share-hero-premium p { color: hsl(var(--muted-foreground) / 0.82); }
[data-theme="dark"] .share-message-title { color: hsl(var(--muted-foreground) / 0.7); }
[data-theme="dark"] .share-checkbox-control span { color: hsl(var(--muted-foreground) / 0.72); }
[data-theme="dark"] .share-divider-premium span { color: hsl(var(--muted-foreground) / 0.6); }

/* Tell panel dark — text colors */
[data-theme="dark"] .tell-heading strong { color: hsl(var(--foreground)); }
[data-theme="dark"] .tell-heading p { color: hsl(var(--muted-foreground) / 0.82); }
[data-theme="dark"] .tell-row strong { color: hsl(var(--foreground) / 0.92); }
[data-theme="dark"] .tell-row em { color: hsl(var(--muted-foreground) / 0.65); }
[data-theme="dark"] .tell-form-heading strong { color: hsl(var(--foreground)); }
[data-theme="dark"] .tell-form-heading p { color: hsl(var(--muted-foreground) / 0.75); }
[data-theme="dark"] .tell-form-field label { color: hsl(var(--foreground) / 0.75); }
[data-theme="dark"] .field-hint { color: hsl(var(--muted-foreground) / 0.6); }

/* Week panel dark — text colors */
[data-theme="dark"] .week-heading-premium strong { color: hsl(250 10% 92%); }
[data-theme="dark"] .wsc-done span { color: hsl(250 15% 60%); }
[data-theme="dark"] .wsc-separator { color: hsl(250 15% 35%); }
[data-theme="dark"] .wsc-pending { color: hsl(250 15% 48%); }
[data-theme="dark"] .wdc-date { color: hsl(250 15% 88%); }
[data-theme="dark"] .wrc-symbol { color: hsl(var(--muted-foreground) / 0.6); }

/* Postnav panel intro dark */
[data-theme="dark"] .postnav-panel-intro strong { color: hsl(var(--muted-foreground) / 0.7); }
[data-theme="dark"] .postnav-panel-intro p { color: hsl(var(--muted-foreground) / 0.8); }

/* Tell back btn dark */
[data-theme="dark"] .tell-back-btn { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.5); color: hsl(var(--primary)); }
[data-theme="dark"] .tell-back-btn:hover { background: hsl(250 12% 20%); border-color: hsl(var(--primary) / 0.3); }

/* Newsletter telegram dark */
[data-theme="dark"] .newsletter-telegram-btn { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.5); color: hsl(var(--foreground)); }
[data-theme="dark"] .newsletter-telegram-btn:hover { background: hsl(250 10% 20%); border-color: hsl(var(--border)); }

/* Solution module dark */
[data-theme="dark"] .solution-module .sol-body { background: hsl(250 18% 9%); border-color: rgba(113,84,232,0.16); }
[data-theme="dark"] .solution-module .sol-trigger { background: hsl(250 20% 11%); border-color: hsl(var(--border) / 0.4); }
[data-theme="dark"] .solution-module .sol-trigger:hover { background: hsl(250 22% 13%); }
[data-theme="dark"] .solution-module .sol-trigger.is-open { background: hsl(250 24% 12%); border-color: rgba(113,84,232,0.22); }
[data-theme="dark"] .solution-module .sol-ico { background: hsl(250 20% 16%); color: hsl(var(--primary) / 0.8); box-shadow: none; }
[data-theme="dark"] .solution-module .sol-trigger.is-open .sol-ico { background: hsl(250 30% 20%); color: hsl(var(--primary)); }
[data-theme="dark"] .v2-sol-prose p { color: hsl(252 18% 78%); }

/* Progress strip dark (white-on-dark already, improve pm-dot visibility) */
[data-theme="dark"] .pm-dot.done { background: hsl(252 70% 72%); box-shadow: 0 0 10px rgba(168,143,240,0.55); }
[data-theme="dark"] .pm-dot.today.done { background: hsl(155 60% 60%); box-shadow: 0 0 12px rgba(74,222,128,0.5); }
[data-theme="dark"] .pm-eyebrow { color: rgba(255,255,255,0.95); }
[data-theme="dark"] .pm-subtitle { color: rgba(255,255,255,0.62); }
[data-theme="dark"] .pm-days-label { color: rgba(255,255,255,0.42); }

/* Hints trigger labels */
[data-theme="dark"] .hints-label { color: hsl(var(--foreground) / 0.9); }
[data-theme="dark"] .hints-sub { color: hsl(var(--muted-foreground)); }

/* Week status badge */
[data-theme="dark"] .week-status-premium.done { background: linear-gradient(135deg, hsl(155 28% 14%), hsl(155 22% 11%)); border-color: rgba(22,138,80,0.25); color: hsl(155 60% 62%); box-shadow: none; }

/* Kimi disclosure dark */
[data-theme="dark"] .kimi-disclosure { background: linear-gradient(180deg, hsl(260 22% 11%) 0%, hsl(260 28% 8%) 100%); border-color: rgba(113,84,232,0.22); }
[data-theme="dark"] .kimi-disclosure .sol-kicker { color: hsl(var(--primary) / 0.9); }
[data-theme="dark"] .kimi-disclosure .sol-difficulty { color: hsl(var(--primary) / 0.55); }
[data-theme="dark"] .kimi-disclosure .sol-insight { color: hsl(252 20% 72%); border-bottom-color: rgba(113,84,232,0.15); }
[data-theme="dark"] .kimi-disclosure .sol-step-num { background: rgba(113,84,232,0.15); color: hsl(var(--primary) / 0.85); }
[data-theme="dark"] .kimi-disclosure .sol-step strong { color: hsl(var(--primary) / 0.92); }
[data-theme="dark"] .kimi-disclosure .sol-step p { color: hsl(252 20% 72%); }
[data-theme="dark"] .kimi-disclosure .v2-sol-prose p { color: hsl(252 18% 78%); }

/* Share preview box */
[data-theme="dark"] .share-preview-box { background: hsl(var(--card)); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .share-preview-text { color: hsl(var(--foreground) / 0.82); }
[data-theme="dark"] .share-actions { border-top-color: hsl(var(--border) / 0.4); }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes flowIn {
  from { opacity: 0; transform: translateY(10px) scale(0.988); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dotReveal {
  to { opacity: 1; transform: scale(1); }
}
@keyframes weekRingIn {
  from { stroke-dasharray: 0 100; }
}
@keyframes weekRowSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   RESULT — Feedback card (P2 style)
   ═══════════════════════════════════════════ */
.result-flow {
  margin-top: 1.15rem;
  animation: flowIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feedback-card {
  position: relative;
  border-radius: 15px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  overflow: hidden;
  transition: background-color 220ms ease, border-color 220ms ease;
}

/* Left accent bar 4px */
.feedback-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: rgba(113,84,232,0.5);
  transition: background 0.22s ease;
}

/* Semantic gradient backgrounds */
.feedback-card.correct {
  border-color: rgba(18,130,68,0.2);
  background: linear-gradient(170deg, hsl(142 60% 97%) 0%, hsl(142 30% 98.5%) 55%, hsl(var(--card)) 100%);
}
.feedback-card.correct::before { background: #168a50; }
.feedback-card.partial {
  border-color: rgba(155,105,20,0.2);
  background: linear-gradient(170deg, hsl(45 80% 97%) 0%, hsl(45 40% 99%) 55%, hsl(var(--card)) 100%);
}
.feedback-card.partial::before { background: #8b5f1b; }
.feedback-card.incorrect {
  border-color: rgba(160,56,48,0.22);
  background: linear-gradient(170deg, hsl(0 60% 97%) 0%, hsl(0 30% 99%) 55%, hsl(var(--card)) 100%);
}
.feedback-card.incorrect::before { background: #8e4038; }

/* Main body */
.fc-main { padding: 1.1rem 1.18rem 1.06rem 1.36rem; }

.fc-status {
  display: flex; align-items: center; gap: 0.38rem;
  margin-bottom: 0.62rem;
}

.fc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: hsl(var(--primary));
}
.feedback-card.correct .fc-icon { color: #168a50; }
.feedback-card.partial .fc-icon { color: #8b5f1b; }
.feedback-card.incorrect .fc-icon { color: #8e4038; }

.fc-label {
  font-size: 0.64rem; font-weight: 860;
  letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; color: hsl(var(--primary));
}
.feedback-card.correct .fc-label { color: #168a50; }
.feedback-card.partial .fc-label { color: #8b5f1b; }
.feedback-card.incorrect .fc-label { color: #8e4038; }

.fc-title {
  margin: 0 0 0.44rem;
  font-size: 1.3rem; font-weight: 900;
  letter-spacing: -0.044em; line-height: 1.11;
  color: hsl(var(--foreground));
}

.fc-text {
  margin: 0;
  font-size: 0.83rem; line-height: 1.6;
  color: hsl(var(--muted-foreground)); letter-spacing: -0.005em;
}

/* Tinted footer */
.fc-footer {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 0.76rem 1.18rem 0.82rem 1.36rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--secondary) / 0.6);
  transition: background 0.22s ease, border-color 0.22s ease;
}
.feedback-card.correct .fc-footer {
  background: linear-gradient(180deg, hsl(142 50% 96%), hsl(142 30% 97.5%));
  border-color: rgba(18,130,68,0.14);
}
.feedback-card.partial .fc-footer {
  background: linear-gradient(180deg, hsl(45 70% 94%), hsl(45 40% 96%));
  border-color: rgba(155,105,20,0.14);
}
.feedback-card.incorrect .fc-footer {
  background: linear-gradient(180deg, hsl(0 55% 95%), hsl(0 30% 97%));
  border-color: rgba(160,56,48,0.14);
}

.fc-ans-label {
  display: block;
  font-size: 0.5rem; font-weight: 960;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.7);
  margin-bottom: 0.24rem;
}
.fc-ans-text {
  margin: 0;
  font-size: 0.95rem; font-weight: 480;
  color: hsl(var(--foreground) / 0.85);
  line-height: 1.5; letter-spacing: -0.012em;
}

/* Feedback card actions row */
.fc-actions {
  display: flex; align-items: center; gap: 0.48rem;
  flex-shrink: 0; align-self: flex-start;
}

/* Hint pill in feedback card — amber */
.fc-hint-btn {
  height: 1.96rem; padding: 0 0.72rem;
  border: 1px solid rgb(245 158 11 / 0.28);
  border-radius: 999px;
  background: rgb(254 252 240 / 0.9);
  color: #92660d;
  display: inline-flex; align-items: center; gap: 0.28rem;
  font-size: 0.66rem; font-weight: 800; letter-spacing: -0.008em;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.fc-hint-btn:hover {
  border-color: rgb(245 158 11 / 0.5);
  background: rgb(254 249 232);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgb(245 158 11 / 0.12);
}
[data-theme="dark"] .fc-hint-btn {
  background: rgb(245 158 11 / 0.12);
  border-color: rgb(245 158 11 / 0.2);
  color: rgb(251 191 36);
}
[data-theme="dark"] .fc-hint-btn:hover {
  background: rgb(245 158 11 / 0.18);
  border-color: rgb(245 158 11 / 0.35);
}

/* Retry/Edit pill */
.fc-retry, .fc-edit {
  height: 1.96rem; padding: 0 0.76rem;
  border: 1px solid rgba(113,84,232,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #5b46cb;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.66rem; font-weight: 830; letter-spacing: -0.008em;
  white-space: nowrap;
  transition: border-color 0.12s ease, transform 0.1s ease, box-shadow 0.12s ease;
}
.fc-retry:hover, .fc-edit:hover { border-color: rgba(113,84,232,0.42); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(113,84,232,0.1); }
[data-theme="dark"] .fc-retry, [data-theme="dark"] .fc-edit { background: hsl(var(--card)); border-color: rgba(113,84,232,0.25); color: hsl(252 80% 78%); }
[data-theme="dark"] .fc-retry:hover, [data-theme="dark"] .fc-edit:hover { background: hsl(var(--secondary)); border-color: rgba(113,84,232,0.45); }

/* Inline hints inside feedback card — amber */
.fc-hints-inline {
  padding: 0.88rem 1.18rem 1rem 1.36rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  display: flex; flex-direction: column; gap: 0.56rem;
  animation: flowIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fc-hint-item {
  display: flex; align-items: flex-start; gap: 0.62rem;
  padding: 0.62rem 0.72rem;
  background: linear-gradient(180deg, rgb(254 252 240 / 0.7) 0%, rgb(255 251 235 / 0.55) 100%);
  border: 1px solid rgb(245 158 11 / 0.18);
  border-radius: 0.6rem;
}
.fc-hint-num {
  flex-shrink: 0;
  width: 1.38rem; height: 1.38rem;
  background: linear-gradient(145deg, rgb(245 158 11 / 0.18) 0%, rgb(245 158 11 / 0.1) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 800;
  color: #92660d;
}
.fc-hint-text {
  font-size: 0.82rem; line-height: 1.52;
  color: hsl(var(--foreground) / 0.88);
  letter-spacing: -0.01em;
}
[data-theme="dark"] .fc-hints-inline { border-top-color: hsl(var(--border) / 0.4); }
[data-theme="dark"] .fc-hint-item { background: rgb(245 158 11 / 0.08); border-color: rgb(245 158 11 / 0.15); }
[data-theme="dark"] .fc-hint-num { background: rgb(245 158 11 / 0.15); color: rgb(251 191 36); }
[data-theme="dark"] .fc-hint-text { color: hsl(var(--foreground) / 0.85); }

/* ═══════════════════════════════════════════
   HINTS PROGRESSIVE - ULTRA PROFESSIONAL
   ═══════════════════════════════════════════ */
.hints-progressive {
  margin-top: 1rem;
  animation: flowIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hints-trigger {
  width: 100%;
  border: 0;
  border-top: 1px solid hsl(var(--border) / 0.7);
  background: linear-gradient(180deg, #faf7ff 0%, #fdfcff 100%);
  padding: 1.08rem 1.18rem;
  display: grid;
  grid-template-columns: 2.6rem minmax(0,1fr) auto;
  align-items: center; column-gap: 0.82rem;
  text-align: left;
  border-radius: 0;
  transition: all 0.18s ease;
  cursor: pointer;
}
.hints-trigger:hover {
  background: linear-gradient(180deg, #f5f1fc 0%, #faf7ff 100%);
}
.hints-trigger.is-open {
  background: linear-gradient(180deg, #f0ebf8 0%, #f8f5ff 100%);
  border-color: rgba(113, 84, 232, 0.22);
}
.hints-ico {
  width: 2.6rem; height: 2.6rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #f3efff, #fdfcff);
  border: 1px solid rgba(113, 84, 232, 0.12);
  display: grid; place-items: center;
  color: hsl(var(--primary));
  box-shadow: 0 3px 10px rgba(113, 84, 232, 0.1),
              0 1px 0 rgba(255,255,255,0.9) inset;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hints-trigger:hover .hints-ico {
  background: linear-gradient(145deg, #ebe5f6, #f5f1fc);
  box-shadow: 0 4px 14px rgba(113, 84, 232, 0.14),
              0 1px 0 rgba(255,255,255,0.9) inset;
}
.hints-trigger.is-open .hints-ico {
  background: linear-gradient(135deg, hsl(var(--primary)), #9275ea);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(113, 84, 232, 0.24),
              0 1px 0 rgba(255,255,255,0.2) inset;
}
.hints-copy {
  display: grid; gap: 0.22rem;
}
.hints-label {
  display: block;
  font-size: 0.94rem; font-weight: 780;
  color: #2d2540; line-height: 1.18;
  letter-spacing: -0.016em;
}
.hints-sub {
  display: block;
  font-size: 0.72rem; font-weight: 640;
  color: #8174a0; line-height: 1.2;
  letter-spacing: -0.004em;
}
.hints-chevron {
  display: flex; align-items: center;
  color: #b8afd2;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease;
}
.hints-trigger.is-open .hints-chevron {
  transform: rotate(180deg);
  color: hsl(var(--primary));
}

.hints-body {
  padding: 1.08rem 1.18rem 1.18rem;
  background: linear-gradient(180deg, #fdfcff 0%, #fff 100%);
  animation: fadeIn 0.24s ease both;
  border-top: 1px solid rgba(113, 84, 232, 0.08);
}
.hint-item {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.82rem; align-items: start;
  margin-bottom: 0.92rem;
  padding: 0.92rem 1.02rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #faf8fe, #fff);
  border: 1px solid rgba(113, 84, 232, 0.08);
  box-shadow: 0 2px 8px rgba(113, 84, 232, 0.04);
}
.hint-item:last-child {
  margin-bottom: 0.72rem;
}
.hint-num {
  width: 2rem; height: 2rem; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(113, 84, 232, 0.12), rgba(113, 84, 232, 0.08));
  color: hsl(var(--primary));
  font-size: 0.74rem; font-weight: 860;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(113, 84, 232, 0.08);
}
.hint-text {
  margin: 0; font-size: 0.88rem; color: #3d3558;
  line-height: 1.68; letter-spacing: -0.003em;
  padding-top: 0.12rem;
  font-weight: 480;
}
.hint-reveal-btn {
  width: 100%; min-height: 2.92rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: #fff;
  font-size: 0.84rem; font-weight: 760;
  letter-spacing: -0.01em;
  border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.44rem;
  box-shadow: 0 5px 16px rgba(113, 84, 232, 0.22),
              0 2px 6px rgba(113, 84, 232, 0.14);
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 0;
}
.hint-reveal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(113, 84, 232, 0.28),
              0 3px 10px rgba(113, 84, 232, 0.18);
}

/* ═══════════════════════════════════════════
   SOLUTION — violet (post-answer)
   ═══════════════════════════════════════════ */
.solution-module { margin-top: 0.82rem; }

.sol-trigger {
  width: 100%;
  border: 0;
  border-top: 1px solid hsl(var(--border) / 0.7);
  background: linear-gradient(180deg, hsl(252 78% 99.2%) 0%, hsl(248 72% 97.5%) 100%);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 2.5rem minmax(0,1fr) auto;
  align-items: center; column-gap: 0.76rem;
  text-align: left;
  border-radius: 0;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.sol-trigger:hover { background: linear-gradient(180deg, hsl(248 72% 97.5%) 0%, hsl(252 78% 99.2%) 100%); }
.sol-trigger.is-open {
  background: linear-gradient(180deg, hsl(250 70% 96%) 0%, hsl(252 78% 98%) 100%);
  border-color: rgba(113, 84, 232, 0.2);
  box-shadow: inset 0 -1px 0 rgba(113, 84, 232, 0.08);
}

.sol-ico {
  width: 2.5rem; height: 2.5rem; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, hsl(252 75% 93%), hsl(250 70% 89%));
  color: hsl(250 65% 40%);
  box-shadow: 0 3px 10px rgba(113, 84, 232, 0.14), inset 0 1px 0 rgba(255,255,255,0.55);
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.sol-trigger.is-open .sol-ico {
  background: linear-gradient(145deg, #2d2458, #3d3070);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}

.sol-copy { display: grid; gap: 0.1rem; text-align: left; }
.sol-label { font-size: 0.94rem; font-weight: 880; letter-spacing: -0.022em; color: hsl(250 45% 22%); line-height: 1.1; }
.sol-sub { font-size: 0.6rem; color: hsl(var(--muted-foreground)); font-weight: 640; letter-spacing: 0.005em; line-height: 1.3; }
.sol-trigger.is-open .sol-label { color: hsl(250 65% 40%); }

.sol-chevron {
  display: flex; align-items: center;
  color: hsl(var(--muted-foreground));
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.16s ease;
}
.sol-chevron.flipped { transform: rotate(180deg); color: hsl(var(--primary)); }

/* Solution body violet */
.sol-body {
  margin-top: 0.52rem;
  border-radius: calc(var(--radius) + 5px);
  border: 1px solid rgba(113, 84, 232, 0.14);
  background: linear-gradient(180deg, hsl(252 78% 99.2%) 0%, hsl(248 72% 97.5%) 100%);
  padding: 1.1rem 1.1rem 1rem;
  animation: flowIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sol-kicker-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.62rem;
}
.sol-kicker {
  font-size: 0.54rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: hsl(250 65% 40%);
}
.sol-difficulty {
  font-size: 0.58rem; font-weight: 650;
  color: rgba(107, 84, 223, 0.55); letter-spacing: 0.03em;
}

.sol-insight {
  margin: 0 0 0.88rem;
  font-size: 0.86rem; color: hsl(250 45% 22%);
  line-height: 1.58; letter-spacing: -0.005em;
  padding-bottom: 0.82rem;
  border-bottom: 1px solid rgba(113, 84, 232, 0.1);
}

.sol-steps { display: grid; gap: 0.62rem; }
.sol-step {
  display: grid; grid-template-columns: 1.6rem minmax(0,1fr);
  gap: 0.56rem; align-items: start;
}
.sol-step-num {
  width: 1.6rem; height: 1.6rem; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(113, 84, 232, 0.1);
  color: hsl(250 65% 40%); font-size: 0.66rem; font-weight: 800;
}
.sol-step strong {
  display: block; font-size: 0.82rem; font-weight: 680;
  color: hsl(250 50% 18%); letter-spacing: -0.01em; margin-bottom: 0.14rem; line-height: 1.2;
}
.sol-step p {
  margin: 0; font-size: 0.8rem; color: hsl(250 30% 38%); line-height: 1.52;
}

.v2-sol-prose {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.05rem; line-height: 1.78;
  color: hsl(250 45% 22%);
  letter-spacing: -0.005em;
}
[data-theme="dark"] .v2-sol-prose { color: hsl(252 20% 80%); }
.v2-sol-prose p + p { margin-top: 0.7em; }
.v2-sol-prose strong { font-weight: 600; color: hsl(250 45% 18%); }
[data-theme="dark"] .v2-sol-prose strong { color: hsl(var(--primary) / 0.9); }
.v2-sol-prose .katex-display { margin: 0.8rem 0; overflow-x: auto; overflow-y: hidden; }

/* ═══════════════════════════════════════════
   PROGRESS — pm-* classes (WHITE ON DARK)
   ═══════════════════════════════════════════ */
.pm-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.3rem;
  align-items: center;
  margin-bottom: 1.38rem;
  position: relative;
  padding-bottom: 1.18rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pm-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.pm-eyebrow {
  font-size: 0.62rem; font-weight: 880;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  line-height: 1;
}
.pm-subtitle {
  font-size: 0.72rem; font-weight: 540;
  letter-spacing: -0.002em;
  color: rgba(255,255,255,0.58);
  line-height: 1.32;
}
.pm-days-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.42rem;
}
.pm-days-label {
  font-size: 0.52rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.36);
  line-height: 1;
}
.pm-days {
  display: flex; align-items: center; gap: 0.36rem;
}
.pm-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,0.1); flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.5);
  animation: dotReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pm-dot:nth-child(1) { animation-delay: 0.05s; }
.pm-dot:nth-child(2) { animation-delay: 0.1s; }
.pm-dot:nth-child(3) { animation-delay: 0.15s; }
.pm-dot:nth-child(4) { animation-delay: 0.2s; }
.pm-dot:nth-child(5) { animation-delay: 0.25s; }
.pm-dot:nth-child(6) { animation-delay: 0.3s; }
.pm-dot:nth-child(7) { animation-delay: 0.35s; }
.pm-dot.done {
  background: rgba(168, 155, 255, 0.78);
  box-shadow: 0 0 8px rgba(146, 130, 255, 0.5);
}
.pm-dot.today.done {
  background: linear-gradient(135deg, #a8edcd, #8ed9bd);
  box-shadow: 0 0 10px rgba(168, 237, 205, 0.64);
}
.pm-dot.today:not(.done) {
  background: rgba(255,255,255,0.28);
  box-shadow: 0 0 6px rgba(255,255,255,0.2);
}

/* Grid stats for better layout */
.pm-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.68rem;
}
.pm-stat {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.pm-stat strong {
  font-size: 2.18rem; font-weight: 900;
  color: rgba(255,255,255,0.96);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pm-stat span {
  font-size: 0.68rem; font-weight: 680;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.pm-caption {
  margin: 1.14rem 0 0;
  font-size: 0.72rem; color: rgba(255,255,255,0.56);
  line-height: 1.5; letter-spacing: -0.002em;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   RATING (centered vertical, large stars)
   ═══════════════════════════════════════════ */
.rating-module {
  margin-top: 1.06rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; padding: 1.14rem 0 1.2rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  text-align: center;
}
.rating-label {
  font-size: 0.8rem; font-weight: 760;
  color: hsl(var(--muted-foreground)); letter-spacing: -0.01em;
}
.rating-hint {
  margin: 0;
  font-size: 0.7rem; font-weight: 720;
  color: hsl(var(--primary)); letter-spacing: -0.005em;
  animation: flowIn 0.22s ease both;
}
.rating-stars { display: flex; gap: 0.08rem; }
.rating-stars button {
  position: relative;
  color: #d0c8de; font-size: 1.64rem;
  width: 1.86rem; height: 1.86rem; padding: 0;
  line-height: 1;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.14s ease;
  overflow: hidden;
}
.rating-stars button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, hsl(var(--primary) / 0.25) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.rating-stars button:active::after {
  opacity: 1;
  transform: scale(2.2);
}
.rating-stars button:hover { transform: translateY(-2px) scale(1.14); color: #9b88ec; }
.rating-stars button:focus-visible {
  outline: 2px solid hsl(var(--primary) / 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}
.rating-stars button.on { color: hsl(var(--primary)); }
.rating-stars button.on::after { background: radial-gradient(circle, hsl(var(--primary) / 0.3) 0%, transparent 70%); }

/* ═══════════════════════════════════════════
   POST-ACTIONS: Premium tiles
   ═══════════════════════════════════════════ */
.postnav {
  margin-top: 1.92rem;
  animation: flowIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.postnav-header {
  margin: 0 0 0.78rem;
  font-size: 0.56rem; font-weight: 820;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #9a92ad; text-align: center;
}

/* Fused container grid - FINAL PREMIUM */
.postnav-grid {
  border: 1px solid #e2dbea;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fdfcff 100%);
  box-shadow: 0 16px 36px rgba(48, 38, 75, 0.06),
              0 6px 14px rgba(113, 84, 232, 0.03),
              0 1px 0 rgba(255,255,255,0.98) inset;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.postnav-tile {
  position: relative;
  min-height: 88px;
  background: transparent;
  border: none;
  border-right: 1px solid #efe9f8;
  border-bottom: 1px solid #efe9f8;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.82rem;
  padding: 1.08rem 1.2rem;
  text-align: left;
  color: #453d53;
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.postnav-tile:nth-child(2n) { border-right: none; }
.postnav-tile:nth-child(3), .postnav-tile:nth-child(4) { border-bottom: none; }

.postnav-tile:hover {
  background: linear-gradient(135deg, #faf8fe 0%, #fcfbff 100%);
  transform: translateZ(0);
}
.postnav-tile.active {
  background: linear-gradient(135deg, #f5f1fc 0%, #faf8fe 100%);
  box-shadow: inset 4px 0 0 hsl(var(--primary));
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Icon styles per tile - REFINED */
.tile-continue .tile-icon {
  background: linear-gradient(145deg, #f3efff, #ebe5f6);
  color: #4a3e5c;
  box-shadow: 0 3px 10px rgba(74, 62, 92, 0.08);
}
.tile-subscribe .tile-icon {
  background: linear-gradient(145deg, #f1ecff, #e8e1f8);
  color: hsl(var(--primary));
  box-shadow: 0 3px 10px rgba(113, 84, 232, 0.12);
}
.tile-share .tile-icon {
  background: linear-gradient(145deg, #e8f7ee, #ddf2e6);
  color: #168a50;
  box-shadow: 0 3px 10px rgba(22, 138, 80, 0.1);
}
.tile-tell .tile-icon {
  background: linear-gradient(145deg, #fef6ea, #fdefd8);
  color: #a87435;
  box-shadow: 0 3px 10px rgba(168, 116, 53, 0.1);
}

.postnav-tile:hover .tile-icon {
  transform: translateY(-1px) scale(1.02);
}
.postnav-tile.active .tile-icon {
  transform: scale(1.04);
}

.tile-continue.active .tile-icon {
  background: linear-gradient(135deg, #3a3348, #564966);
  color: #fff;
  box-shadow: 0 6px 18px rgba(58, 51, 72, 0.24);
}
.tile-subscribe.active .tile-icon {
  background: linear-gradient(135deg, #6b54df, #8570ed);
  color: #fff;
  box-shadow: 0 6px 18px rgba(113, 84, 232, 0.28);
}
.tile-share.active .tile-icon {
  background: linear-gradient(135deg, #168a50, #2eaa65);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 138, 80, 0.24);
}
.tile-tell.active .tile-icon {
  background: linear-gradient(135deg, #8b6428, #b8873a);
  color: #fff;
  box-shadow: 0 6px 18px rgba(168, 116, 53, 0.24);
}

.tile-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}
.tile-copy strong {
  display: block;
  color: #2d2836;
  font-size: 0.88rem;
  line-height: 1.18;
  font-weight: 860;
  letter-spacing: -0.022em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-copy em {
  display: block;
  font-style: normal;
  color: #968fa1;
  font-size: 0.68rem;
  font-weight: 620;
  line-height: 1.24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Panels below grid */
.postnav-panel {
  margin-top: 0.72rem;
  border: 1px solid #e8e2f0;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fdfcff 100%);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(48, 38, 75, 0.06),
              0 6px 14px rgba(113, 84, 232, 0.03),
              0 1px 0 rgba(255,255,255,0.98) inset;
  animation: flowIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.postnav-panel-inner {
  padding: 1.2rem 1.3rem 1.3rem;
}
.postnav-panel-intro {
  margin-bottom: 0.82rem;
}
.postnav-panel-intro strong {
  display: block;
  margin: 0 0 0.22rem;
  color: #8174a0;
  font-size: 0.64rem;
  font-weight: 880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.postnav-panel-intro p {
  margin: 0;
  color: #746a80;
  font-size: 0.84rem;
  line-height: 1.42;
  font-weight: 520;
}

/* ═══════════════════════════════════════════
   WEEK PANEL PREMIUM
   ═══════════════════════════════════════════ */
.week-panel-premium .postnav-panel-inner {
  padding: 1.62rem 1.48rem 1.52rem;
  background: linear-gradient(180deg, rgba(250, 248, 254, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: inherit;
}
.week-heading-premium {
  margin-bottom: 1.48rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.3rem;
  align-items: center;
  padding-bottom: 1.32rem;
  border-bottom: 1px solid rgba(113, 84, 232, 0.06);
}
.week-heading-left {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}
.week-heading-premium strong {
  font-size: 1.08rem; font-weight: 880; color: #2d2836;
  letter-spacing: -0.024em; line-height: 1;
}
.week-stats-compact {
  display: flex;
  align-items: baseline;
  gap: 0.62rem;
}
.wsc-done {
  display: flex;
  align-items: baseline;
  gap: 0.24rem;
}
.wsc-done strong {
  font-size: 1.68rem;
  font-weight: 900;
  color: hsl(var(--primary));
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wsc-done span {
  font-size: 0.82rem;
  font-weight: 680;
  color: #968fa1;
}
.wsc-separator {
  font-size: 0.82rem;
  font-weight: 640;
  color: #cbc3dc;
  margin: 0 0.08rem;
}
.wsc-pending {
  font-size: 0.76rem;
  font-weight: 640;
  color: #b8afd2;
}
.week-progress-ring-compact {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.week-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.week-ring-progress {
  transition: stroke-dasharray 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: weekRingIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.week-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wrc-percent {
  font-size: 1.16rem;
  font-weight: 900;
  color: hsl(var(--primary));
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wrc-symbol {
  font-size: 0.62rem;
  font-weight: 800;
  color: #8174a0;
  line-height: 1;
  margin-top: 0.08rem;
}
.week-list-premium {
  display: grid; gap: 0.52rem; list-style: none;
}
.week-list-premium li {
  animation: weekRowSlide 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.week-list-premium li:nth-child(1) { animation-delay: 0.04s; }
.week-list-premium li:nth-child(2) { animation-delay: 0.08s; }
.week-list-premium li:nth-child(3) { animation-delay: 0.12s; }
.week-list-premium li:nth-child(4) { animation-delay: 0.16s; }
.week-list-premium li:nth-child(5) { animation-delay: 0.2s; }
.week-list-premium li:nth-child(6) { animation-delay: 0.24s; }
.week-list-premium li:nth-child(7) { animation-delay: 0.28s; }
.week-row-premium {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 2rem;
  align-items: center; gap: 0.92rem;
  width: 100%; min-height: 4rem; padding: 0.82rem 0.92rem 0.82rem 0.88rem;
  border: 1px solid rgba(226, 220, 238, 0.6);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fdfcff 100%);
  box-shadow: 0 2px 8px rgba(48, 38, 75, 0.03),
              0 1px 0 rgba(255,255,255,0.98) inset;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none; color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.week-row-premium:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 84, 232, 0.28);
  box-shadow: 0 8px 24px rgba(113, 84, 232, 0.1),
              0 2px 8px rgba(113, 84, 232, 0.06),
              0 1px 0 rgba(255,255,255,0.98) inset;
}
/* Today row: violet accent */
.week-row-premium.week-today {
  border-color: rgba(113, 84, 232, 0.25);
  background: linear-gradient(135deg, rgba(113, 84, 232, 0.04) 0%, rgba(166, 143, 240, 0.02) 50%, #fff 100%);
  box-shadow: 0 3px 12px rgba(113, 84, 232, 0.08),
              0 1px 0 rgba(255,255,255,0.98) inset,
              inset 3px 0 0 hsl(250 85% 60%);
}
.week-row-premium.week-today:hover {
  border-color: rgba(113, 84, 232, 0.38);
  box-shadow: 0 10px 28px rgba(113, 84, 232, 0.14),
              0 2px 8px rgba(113, 84, 232, 0.08),
              0 1px 0 rgba(255,255,255,0.98) inset,
              inset 3px 0 0 hsl(250 85% 60%);
}
/* Done row: green tint */
.week-row-premium.week-done {
  background: linear-gradient(135deg, rgba(22, 138, 80, 0.025) 0%, #fff 100%);
  border-color: rgba(22, 138, 80, 0.14);
}
.week-row-premium.week-done:hover {
  border-color: rgba(22, 138, 80, 0.28);
  box-shadow: 0 8px 24px rgba(22, 138, 80, 0.08),
              0 2px 8px rgba(22, 138, 80, 0.04),
              0 1px 0 rgba(255,255,255,0.98) inset;
}
/* Today + Done combined */
.week-row-premium.week-today.week-done {
  border-color: rgba(22, 138, 80, 0.2);
  background: linear-gradient(135deg, rgba(22, 138, 80, 0.03) 0%, rgba(113, 84, 232, 0.02) 50%, #fff 100%);
  box-shadow: 0 3px 12px rgba(22, 138, 80, 0.06),
              0 1px 0 rgba(255,255,255,0.98) inset,
              inset 3px 0 0 #168a50;
}
.week-day-chip-premium {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 3.2rem; height: 3.2rem; flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #f5f1fc, #fdfcff);
  border: 1px solid rgba(113, 84, 232, 0.12);
  box-shadow: 0 2px 6px rgba(113, 84, 232, 0.06);
  transition: all 0.22s ease;
}
.week-day-chip-premium.wdc-today {
  background: linear-gradient(145deg, hsl(250 85% 60%), hsl(250 75% 52%));
  border-color: hsl(250 85% 55%);
  box-shadow: 0 3px 10px rgba(113, 84, 232, 0.3);
}
.week-day-chip-premium.wdc-today .wdc-day {
  color: rgba(255, 255, 255, 0.85);
}
.week-day-chip-premium.wdc-today .wdc-date {
  color: #fff;
}
.week-day-chip-premium.wdc-done {
  background: linear-gradient(145deg, #e8f9ef, #f4fdf7);
  border-color: rgba(22, 138, 80, 0.18);
}
.week-day-chip-premium.wdc-done .wdc-day {
  color: #168a50;
}
.week-day-chip-premium.wdc-done .wdc-date {
  color: #14774a;
}
/* Today + Done: keep today's violet chip */
.week-day-chip-premium.wdc-today.wdc-done {
  background: linear-gradient(145deg, #168a50, #1a9d5a);
  border-color: #168a50;
  box-shadow: 0 3px 10px rgba(22, 138, 80, 0.3);
}
.week-day-chip-premium.wdc-today.wdc-done .wdc-day {
  color: rgba(255, 255, 255, 0.85);
}
.week-day-chip-premium.wdc-today.wdc-done .wdc-date {
  color: #fff;
}
.wdc-day {
  display: block; font-size: 0.62rem; font-weight: 860;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: hsl(var(--primary) / 0.8); line-height: 1;
}
.wdc-date {
  display: block; font-size: 0.96rem; font-weight: 880;
  color: #322d3a; font-variant-numeric: tabular-nums;
  margin-top: 0.28rem; line-height: 1;
}
.week-info-premium {
  display: flex; flex-direction: column; min-width: 0;
}
.wip-title {
  display: block; font-size: 0.92rem; font-weight: 720;
  color: #302a3a; line-height: 1.28; letter-spacing: -0.014em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 0.28rem;
}
.wip-meta {
  display: flex; align-items: center; gap: 0.42rem;
}
.wip-level {
  font-size: 0.68rem; font-weight: 680; color: #8174a0;
  text-transform: capitalize;
}
.wip-dot {
  font-size: 0.68rem; color: #d2c9e2; font-weight: 800;
}
.wip-theme {
  font-size: 0.68rem; font-weight: 640; color: #968fa1;
}
/* Difficulty dots */
.wip-diff-dots {
  display: inline-flex; align-items: center; gap: 2.5px;
}
.wip-diff-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(200, 192, 220, 0.5);
  transition: background 0.2s ease;
}
.wip-diff-dot.active {
  background: hsl(var(--primary) / 0.65);
}
.week-row-premium.week-done .wip-diff-dot.active {
  background: rgba(22, 138, 80, 0.5);
}
/* Inline check before title on done rows */
.wip-check-inline {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 0.32rem;
  opacity: 0.8;
}
.week-status-premium {
  width: 2rem; height: 2rem; border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
  transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-left: auto;
  justify-self: end;
}
.week-status-premium.done {
  background: linear-gradient(135deg, #e6f9ee, #f0fdf6);
  border: 1px solid rgba(22, 138, 80, 0.2);
  color: #168a50;
  box-shadow: 0 3px 10px rgba(22, 138, 80, 0.12),
              0 1px 0 rgba(255,255,255,0.8) inset;
}
.week-status-premium.pending {
  background: transparent;
  border: none;
  color: #b8afd2;
}
.week-row-premium:hover .week-status-premium.done {
  transform: scale(1.08);
}
.week-row-premium:hover .week-status-premium.pending {
  color: hsl(var(--primary) / 0.6);
  transform: translateX(2px);
}
.week-footer-link {
  width: 100%; margin-top: 1.1rem; min-height: 2.82rem;
  border-radius: 15px;
  background: linear-gradient(135deg, #faf8fe 0%, #f4efff 100%);
  border: 1px solid rgba(113, 84, 232, 0.14);
  color: hsl(var(--primary));
  font-size: 0.82rem; font-weight: 840; letter-spacing: -0.012em;
  display: flex; align-items: center; justify-content: center; gap: 0.48rem;
  box-shadow: 0 2px 8px rgba(113, 84, 232, 0.04),
              0 1px 0 rgba(255,255,255,0.96) inset;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}
.week-footer-link .wfl-icon {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.week-footer-link .wfl-arrow {
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.week-footer-link:hover {
  background: linear-gradient(135deg, #f1ecff, #ede6ff);
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(113, 84, 232, 0.1),
              0 1px 0 rgba(255,255,255,0.96) inset;
}
.week-footer-link:hover .wfl-icon { opacity: 1; }
.week-footer-link:hover .wfl-arrow { transform: translateX(2px); opacity: 0.8; }

/* ═══════════════════════════════════════════
   SUBSCRIBE PANEL ULTRA
   ═══════════════════════════════════════════ */
.subscribe-panel-ultra .postnav-panel-inner {
  padding: 1.5rem 1.3rem;
}
.subscribe-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid #f0ebf8;
}
.subscribe-hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 19px;
  background: linear-gradient(145deg, #f1ecff, #faf7ff);
  border: 1px solid #ebe5f6;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(113, 84, 232, 0.09),
              0 1px 0 rgba(255,255,255,0.88) inset;
}
.subscribe-hero-text h3 {
  margin: 0 0 0.32rem;
  font-size: 1.1rem;
  font-weight: 880;
  color: #2d2836;
  letter-spacing: -0.026em;
  line-height: 1.18;
}
.subscribe-hero-text p {
  margin: 0;
  font-size: 0.86rem;
  color: #746a80;
  line-height: 1.5;
  font-weight: 520;
}
.subscribe-form-ultra {
  display: grid;
  gap: 0.72rem;
  margin-bottom: 1.1rem;
}
.subscribe-input-group {
  display: grid;
  gap: 0.48rem;
}
.subscribe-label {
  font-size: 0.74rem;
  font-weight: 780;
  color: #4a4258;
  letter-spacing: 0.008em;
}
.subscribe-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.58rem;
}
.subscribe-input {
  min-height: 3rem;
  padding: 0 1rem;
  border: 1.5px solid #e2dbea;
  border-radius: 16px;
  background: #fff;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.subscribe-input:focus {
  border-color: hsl(var(--primary) / 0.48);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset,
              0 0 0 3px hsla(250, 85%, 60%, 0.1);
}
.subscribe-submit {
  min-height: 3rem;
  padding: 0 1.32rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 860;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: none;
  box-shadow: 0 8px 20px rgba(113, 84, 232, 0.2),
              0 2px 6px rgba(113, 84, 232, 0.14);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.16s ease;
}
.subscribe-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(113, 84, 232, 0.26),
              0 4px 10px rgba(113, 84, 232, 0.16);
}
.subscribe-submit:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.subscribe-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
  font-size: 0.7rem;
  color: #837b8f;
  line-height: 1.38;
  font-weight: 540;
}
.subscribe-consent input {
  margin-top: 0.12rem;
}
.subscribe-consent a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.subscribe-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.2rem 0 1rem;
  position: relative;
}
.subscribe-divider::before,
.subscribe-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: hsl(var(--border) / 0.5);
}
.subscribe-divider span {
  padding: 0 0.92rem;
  font-size: 0.72rem;
  font-weight: 640;
  color: #968fa1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.subscribe-telegram-ultra {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.76rem;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.76rem 0.88rem;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fcff, #fff);
  text-decoration: none;
  color: #2f293b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset,
              0 2px 8px rgba(0, 0, 0, 0.028);
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.subscribe-telegram-ultra:hover {
  transform: translateY(-2px);
  border-color: #b8ddf8;
  background: linear-gradient(135deg, #f0f8ff, #fff);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset,
              0 8px 20px rgba(34, 155, 214, 0.12);
}
.sub-tg-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e3f5ff, #ecf8ff);
  color: #229bd6;
  box-shadow: 0 2px 8px rgba(34, 155, 214, 0.1);
}
.sub-tg-text {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}
.sub-tg-text strong {
  font-size: 0.9rem;
  font-weight: 880;
  color: #2d2836;
  letter-spacing: -0.014em;
}
.sub-tg-text em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 650;
  color: #7d7488;
}
.sub-tg-arrow {
  color: #b8d9f0;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.16s ease;
}
.subscribe-telegram-ultra:hover .sub-tg-arrow {
  color: #229bd6;
  transform: translate(2px, -2px);
}

/* ═══════════════════════════════════════════
   SHARE PANEL ULTRA
   ═══════════════════════════════════════════ */
.share-panel-ultra .postnav-panel-inner {
  padding: 1.5rem 1.3rem;
}
.share-hero-premium {
  margin-bottom: 1.5rem;
}
.share-hero-premium h3 {
  margin: 0 0 0.32rem;
  font-size: 1.1rem;
  font-weight: 880;
  color: #2d2836;
  letter-spacing: -0.026em;
  line-height: 1.18;
}
.share-hero-premium p {
  margin: 0;
  font-size: 0.86rem;
  color: #837b8f;
  line-height: 1.5;
  font-weight: 520;
}

/* Message card */
.share-message-premium {
  border: 1px solid #ebe5f6;
  border-radius: 21px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: 0 4px 14px rgba(48, 38, 75, 0.04),
              0 1px 0 rgba(255,255,255,0.98) inset;
}
.share-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.96rem 1.12rem;
  background: linear-gradient(180deg, #fdfcff, #fff);
  border-bottom: 1px solid #f5f2fa;
}
.share-message-title {
  font-size: 0.72rem;
  font-weight: 860;
  color: #8174a0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.share-checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  cursor: pointer;
  user-select: none;
}
.share-checkbox-control input[type="checkbox"] {
  width: 1.16rem;
  height: 1.16rem;
  cursor: pointer;
  accent-color: hsl(var(--primary));
}
.share-checkbox-control span {
  font-size: 0.76rem;
  font-weight: 640;
  color: #6b6177;
  letter-spacing: -0.008em;
}
.share-message-content {
  padding: 1.32rem 1.2rem;
}
.share-message-text {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.72;
  color: #4a4258;
  letter-spacing: 0.002em;
  white-space: pre-wrap;
}
.share-message-actions {
  padding: 0.88rem 1.12rem;
  background: linear-gradient(180deg, #fafbff, #fff);
  border-top: 1px solid #f5f2fa;
}
.share-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.56rem;
  width: 100%;
  min-height: 3rem;
  padding: 0 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 860;
  letter-spacing: -0.012em;
  border: none;
  box-shadow: 0 6px 16px rgba(113, 84, 232, 0.18),
              0 2px 6px rgba(113, 84, 232, 0.12);
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.share-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(113, 84, 232, 0.24),
              0 4px 10px rgba(113, 84, 232, 0.14);
}

/* Divider */
.share-divider-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.2rem;
  position: relative;
}
.share-divider-premium::before,
.share-divider-premium::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ebe5f6 20%, #ebe5f6 80%, transparent);
}
.share-divider-premium span {
  padding: 0 1rem;
  font-size: 0.72rem;
  font-weight: 720;
  color: #968fa1;
  letter-spacing: 0.02em;
}

/* Platform cards */
.share-platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.82rem;
}
.share-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  padding: 0.6rem 0.5rem;
  border: none;
  background: transparent;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.share-platform-card:hover {
  transform: translateY(-3px);
}
.platform-card-icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.platform-card-label {
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: -0.012em;
  transition: all 0.16s ease;
}

/* Platform-specific styles */
.share-platform-card.whatsapp .platform-card-icon {
  background: linear-gradient(145deg, #e6f9ee, #f0fdf4);
  color: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.14),
              0 1px 0 rgba(255,255,255,0.48) inset;
}
.share-platform-card.whatsapp .platform-card-label {
  color: #2aa058;
}
.share-platform-card.whatsapp:hover .platform-card-icon {
  background: linear-gradient(145deg, #d4f5dd, #e6f9ee);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.22),
              0 1px 0 rgba(255,255,255,0.48) inset;
  transform: translateY(-2px) scale(1.06);
}
.share-platform-card.whatsapp:hover .platform-card-label {
  color: #25d366;
  transform: translateY(-1px);
}

.share-platform-card.telegram .platform-card-icon {
  background: linear-gradient(145deg, #e3f5ff, #f0f9ff);
  color: #229bd6;
  box-shadow: 0 4px 14px rgba(34, 155, 214, 0.14),
              0 1px 0 rgba(255,255,255,0.48) inset;
}
.share-platform-card.telegram .platform-card-label {
  color: #2a8ab8;
}
.share-platform-card.telegram:hover .platform-card-icon {
  background: linear-gradient(145deg, #ceeeff, #e3f5ff);
  box-shadow: 0 8px 22px rgba(34, 155, 214, 0.22),
              0 1px 0 rgba(255,255,255,0.48) inset;
  transform: translateY(-2px) scale(1.06);
}
.share-platform-card.telegram:hover .platform-card-label {
  color: #229bd6;
  transform: translateY(-1px);
}

.share-platform-card.x .platform-card-icon {
  background: linear-gradient(145deg, #f1f3f5, #f8f9fa);
  color: #14171a;
  box-shadow: 0 4px 14px rgba(20, 23, 26, 0.12),
              0 1px 0 rgba(255,255,255,0.48) inset;
}
.share-platform-card.x .platform-card-label {
  color: #3a3d42;
}
.share-platform-card.x:hover .platform-card-icon {
  background: linear-gradient(145deg, #e6e9ec, #f1f3f5);
  box-shadow: 0 8px 22px rgba(20, 23, 26, 0.18),
              0 1px 0 rgba(255,255,255,0.48) inset;
  transform: translateY(-2px) scale(1.06);
}
.share-platform-card.x:hover .platform-card-label {
  color: #14171a;
  transform: translateY(-1px);
}

.share-platform-card.more .platform-card-icon {
  background: linear-gradient(145deg, #f1ecff, #faf7ff);
  color: hsl(var(--primary));
  box-shadow: 0 4px 14px rgba(113, 84, 232, 0.14),
              0 1px 0 rgba(255,255,255,0.48) inset;
}
.share-platform-card.more .platform-card-label {
  color: #8570c8;
}
.share-platform-card.more:hover .platform-card-icon {
  background: linear-gradient(145deg, #e8e1f8, #f1ecff);
  box-shadow: 0 8px 22px rgba(113, 84, 232, 0.22),
              0 1px 0 rgba(255,255,255,0.48) inset;
  transform: translateY(-2px) scale(1.06);
}
.share-platform-card.more:hover .platform-card-label {
  color: hsl(var(--primary));
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   NEWSLETTER PANEL
   ═══════════════════════════════════════════ */
.newsletter-panel-form { display: grid; gap: 0.62rem; }
.newsletter-telegram-btn {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center; gap: 0.68rem;
  width: 100%; min-height: 3.2rem; padding: 0.68rem 0.82rem;
  border: 1px solid #dfe7f0; border-radius: 17px;
  background: linear-gradient(135deg, #f8fcff, #fff);
  text-align: left; color: #2f293b;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 2px 6px rgba(0,0,0,0.022);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.newsletter-telegram-btn:hover {
  transform: translateY(-1px);
  border-color: #c7daf0;
  background: linear-gradient(135deg, #f0f8ff, #fff);
}
.newsletter-telegram-ico {
  width: 42px; height: 42px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e3f5ff, #ecf8ff);
  color: #229bd6;
  box-shadow: 0 2px 6px rgba(34, 155, 214, 0.08);
}

/* ═══════════════════════════════════════════
   SHARE PREVIEW (alternate style)
   ═══════════════════════════════════════════ */
.share-preview-box {
  border: 1px solid #e2dbea; border-radius: 18px;
  background: #fff; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.028);
}
.share-preview-text {
  margin: 0; padding: 0.92rem 1rem;
  font: 520 0.74rem/1.58 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #3d3850; white-space: pre-wrap; letter-spacing: -0.012em;
}
.share-actions {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 0.62rem;
  padding: 0.72rem 0.78rem; border-top: 1px solid #ebe5f6;
  background: linear-gradient(180deg, #f9f6ff, #fbf9ff);
}
.share-targets {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.46rem; margin-top: 0.62rem;
}

/* ═══════════════════════════════════════════
   TELL PANEL
   ═══════════════════════════════════════════ */
.tell-list { display: grid; gap: 0.46rem; }
.tell-row {
  width: 100%; min-height: 3.2rem;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center; gap: 0.68rem;
  padding: 0.68rem 0.76rem; text-align: left;
  border: 1px solid #e2dbea; border-radius: 17px;
  background: linear-gradient(180deg, #fff, #fdfcff);
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 2px 6px rgba(0,0,0,0.022);
  transition: background 140ms ease, border-color 140ms ease, transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.tell-row:hover {
  background: linear-gradient(90deg, #f8f4ff, #fff);
  border-color: hsl(var(--primary) / 0.28);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 6px 16px rgba(113, 84, 232, 0.08);
}
.tell-row-icon {
  width: 36px; height: 36px; border-radius: 14px;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.tell-row strong {
  display: block; font-size: 0.84rem; font-weight: 860;
  color: #322d3d; line-height: 1.18; letter-spacing: -0.012em;
}
.tell-row em {
  display: block; margin-top: 0.14rem; font-style: normal;
  font-size: 0.66rem; color: #8b8398; line-height: 1.28; font-weight: 620;
}
.tell-row-arrow {
  color: #b8afd2; justify-self: end;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.14s ease;
}
.tell-row:hover .tell-row-arrow {
  color: hsl(var(--primary));
  transform: translateX(2px);
}

/* Tell form */
.tell-back-btn {
  display: inline-flex; align-items: center; gap: 0.42rem;
  margin-bottom: 0.92rem; padding: 0.46rem 0.78rem 0.46rem 0.58rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #f5f2fa, #faf8fd);
  border: 1px solid #ebe5f6;
  font-size: 0.78rem; font-weight: 760; color: #6b54df;
  letter-spacing: -0.008em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.tell-back-btn:hover {
  background: linear-gradient(135deg, #ede8ff, #f5f2fa);
  border-color: hsl(var(--primary) / 0.24);
  transform: translateX(-2px);
}

.tell-form-heading {
  display: grid; grid-template-columns: 48px minmax(0, 1fr);
  align-items: center; gap: 0.82rem;
  margin-bottom: 1.1rem; padding-bottom: 0.96rem;
  border-bottom: 1px solid hsl(var(--border) / 0.62);
}
.tell-form-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
              0 1px 0 rgba(255,255,255,0.32) inset;
}
.tell-form-heading strong {
  display: block; font-size: 1.04rem; font-weight: 880;
  color: #2d2836; letter-spacing: -0.024em; margin-bottom: 0.18rem;
}
.tell-form-heading p {
  margin: 0; font-size: 0.78rem; color: #7d7488; line-height: 1.42;
}

.tell-form { display: grid; gap: 0.88rem; }
.tell-form-field { display: grid; gap: 0.38rem; }
.tell-form-field label {
  font-size: 0.72rem; font-weight: 760;
  letter-spacing: 0.01em; color: #4a4258;
}
.tell-form-field input,
.tell-form-field textarea {
  width: 100%; padding: 0.78rem 0.92rem;
  border: 1.5px solid #e2dbea; border-radius: 15px;
  background: #fff; font-size: 0.88rem; color: hsl(var(--foreground));
  font-family: inherit; line-height: 1.5;
  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  resize: vertical;
}
.tell-form-field input:focus,
.tell-form-field textarea:focus {
  border-color: hsl(var(--primary) / 0.42);
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 0 0 3px hsla(250, 85%, 60%, 0.08);
}
.tell-form-field textarea {
  min-height: 120px;
}
.tell-form-submit {
  width: 100%; min-height: 2.96rem;
  border-radius: 16px; padding: 0 1.2rem;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: white; font-size: 0.88rem; font-weight: 860;
  letter-spacing: -0.012em;
  box-shadow: 0 8px 18px rgba(113, 84, 232, 0.18),
              0 2px 6px rgba(113, 84, 232, 0.12);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.16s ease;
}
.tell-form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(113, 84, 232, 0.22),
              0 4px 8px rgba(113, 84, 232, 0.14);
}
.tell-form-submit:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.field-hint {
  font-size: 0.68rem; color: #8b8398;
  font-weight: 540; margin-top: 0.24rem;
  display: block;
}
.tell-heading { margin-bottom: 0.82rem; }
.tell-heading strong {
  display: block; color: #302a3a; font-size: 1rem; font-weight: 890;
  letter-spacing: -0.024em; line-height: 1.1;
}
.tell-heading p {
  margin: 0.18rem 0 0; color: #746a80; font-size: 0.82rem;
  line-height: 1.42; font-weight: 500;
}

/* ═══════════════════════════════════════════
   WEEK PANEL — responsive
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .week-panel-premium .postnav-panel-inner { padding: 1.28rem 1.1rem 1.2rem; }
  .week-heading-premium { gap: 0.9rem; margin-bottom: 1.2rem; }
  .week-heading-premium strong { font-size: 1rem; }
  .week-stats-compact { gap: 0.44rem; }
  .wsc-done strong { font-size: 1.44rem; }
  .week-row-premium {
    grid-template-columns: 2.7rem minmax(0, 1fr) 1.8rem;
    gap: 0.72rem; min-height: 3.6rem;
    padding: 0.7rem 0.82rem 0.7rem 0.78rem; border-radius: 16px;
  }
  .week-day-chip-premium { width: 2.7rem; height: 2.7rem; border-radius: 12px; }
  .wdc-day { font-size: 0.56rem; }
  .wdc-date { font-size: 0.88rem; margin-top: 0.22rem; }
  .wip-title { font-size: 0.88rem; }
  .wip-meta { gap: 0.32rem; }
  .wip-dot, .wip-theme { font-size: 0.64rem; }
  .week-status-premium { width: 1.8rem; height: 1.8rem; }
  .wip-diff-dots { gap: 2px; }
  .wip-diff-dot { width: 4px; height: 4px; }
  .wip-check-inline { width: 10px; height: 10px; margin-right: 0.24rem; }
  .week-footer-link { min-height: 2.9rem; font-size: 0.84rem; border-radius: 13px; margin-top: 0.82rem; gap: 0.4rem; }
  .week-footer-link .wfl-icon { width: 13px; height: 13px; }
  .week-row-premium.week-today { padding-left: calc(0.78rem + 3px); }
  .week-row-premium.week-today.week-done { padding-left: calc(0.78rem + 3px); }
}
@media (max-width: 380px) {
  .week-row-premium {
    grid-template-columns: 2.4rem minmax(0, 1fr) 1.6rem;
    gap: 0.6rem; padding: 0.64rem 0.72rem; border-radius: 14px;
  }
  .week-row-premium.week-today { padding-left: calc(0.72rem + 3px); }
  .week-day-chip-premium { width: 2.4rem; height: 2.4rem; border-radius: 10px; }
  .wdc-date { font-size: 0.82rem; }
  .week-status-premium { width: 1.6rem; height: 1.6rem; }
  .week-panel-premium .postnav-panel-inner { padding: 1.1rem 0.9rem 1rem; }
  .wip-diff-dot { width: 3.5px; height: 3.5px; }
  .wip-check-inline { width: 9px; height: 9px; }
}

/* ═══════════════════════════════════════════
   KIMI DISCLOSURE (pre-answer solution panel)
   ═══════════════════════════════════════════ */
.kimi-disclosure {
  max-width: 42rem; margin: 0.6rem auto 0;
  border-radius: calc(var(--radius) + 5px);
  border: 1px solid rgba(113, 84, 232, 0.2);
  background: linear-gradient(180deg, hsl(260 60% 97%) 0%, hsl(260 40% 99%) 100%);
  padding: 1.1rem 1.1rem 1rem;
  animation: flowIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.kimi-disclosure .sol-kicker-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.62rem;
}
.kimi-disclosure .sol-kicker {
  font-size: 0.54rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: hsl(var(--primary));
}
.kimi-disclosure .sol-difficulty {
  font-size: 0.58rem; font-weight: 650;
  color: hsl(var(--primary) / 0.6); letter-spacing: 0.03em;
}
.kimi-disclosure .sol-insight {
  margin: 0 0 0.88rem;
  font-size: 0.86rem; color: hsl(var(--foreground) / 0.78);
  line-height: 1.58; letter-spacing: -0.005em;
  padding-bottom: 0.82rem;
  border-bottom: 1px solid rgba(113, 84, 232, 0.12);
}
.kimi-disclosure .sol-steps { display: grid; gap: 0.62rem; }
.kimi-disclosure .sol-step {
  display: grid; grid-template-columns: 1.6rem minmax(0,1fr);
  gap: 0.56rem; align-items: start;
}
.kimi-disclosure .sol-step-num {
  width: 1.6rem; height: 1.6rem; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(113, 84, 232, 0.1);
  color: hsl(var(--primary)); font-size: 0.66rem; font-weight: 800;
}
.kimi-disclosure .sol-step strong {
  display: block; font-size: 0.82rem; font-weight: 680;
  color: hsl(var(--foreground)); letter-spacing: -0.01em; margin-bottom: 0.14rem; line-height: 1.2;
}
.kimi-disclosure .sol-step p {
  margin: 0; font-size: 0.8rem; color: hsl(var(--foreground) / 0.72); line-height: 1.52;
}
.kimi-disclosure .v2-sol-prose p {
  margin: 0 0 0.58rem; font-size: 1.05rem; color: hsl(var(--foreground) / 0.8); line-height: 1.78;
}
.kimi-disclosure .v2-sol-prose p:last-child { margin-bottom: 0; }
[data-theme="dark"] .kimi-disclosure {
  background: linear-gradient(180deg, hsl(260 22% 11%) 0%, hsl(260 28% 8%) 100%);
  border-color: rgba(113,84,232,0.22);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 8px 20px hsl(260 50% 3% / 0.4);
}
[data-theme="dark"] .kimi-disclosure .sol-kicker { color: hsl(var(--primary) / 0.85); }
[data-theme="dark"] .kimi-disclosure .sol-insight { color: hsl(var(--primary) / 0.72); }
[data-theme="dark"] .kimi-disclosure .sol-step strong { color: hsl(var(--primary) / 0.92); }
[data-theme="dark"] .kimi-disclosure .sol-step p { color: hsl(252 20% 72%); }
[data-theme="dark"] .kimi-disclosure .v2-sol-prose p { color: hsl(252 18% 80%); }

/* ═══════════════════════════════════════════
   KIMI INLINE HINTS (below puzzle card)
   ═══════════════════════════════════════════ */
.hint-step {
  margin-top: 0.52rem;
}

.hint-content {
  margin-top: 0.38rem;
  border-radius: calc(var(--radius) + 4px);
  padding: 0.82rem 0.92rem;
}

.hint-content.hint-card-visible {
  border: 1px solid rgb(245 158 11 / 0.24);
  background: linear-gradient(180deg, rgb(245 158 11 / 0.08), rgb(245 158 11 / 0.13));
}

.hint-kimi-head {
  margin: 0 0 0.18rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.hint-kimi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: rgb(245 158 11);
}

.hint-kimi-icon svg {
  width: 0.92rem;
  height: 0.92rem;
}

.hint-kimi-label {
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 620;
  color: rgb(217 119 6);
}

.hint-kimi-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.56;
  color: hsl(var(--foreground) / 0.9);
}

.hint-kimi-body p + p {
  margin-top: 0.54rem;
}

[data-theme="dark"] .hint-content.hint-card-visible {
  border-color: rgb(245 158 11 / 0.18);
  background: linear-gradient(180deg, rgb(245 158 11 / 0.06), rgb(245 158 11 / 0.10));
}

[data-theme="dark"] .hint-kimi-label { color: rgb(245 180 60); }
[data-theme="dark"] .hint-kimi-body p { color: hsl(var(--foreground) / 0.88); }

/* ═══════════════════════════════════════════
   DONE BADGE (compact restore on page reload)
   ═══════════════════════════════════════════ */
.done-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  animation: flowIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.done-badge--correct  { background: hsl(143 40% 96%); }
.done-badge--partial  { background: hsl(38 50% 96%); }
.done-badge--incorrect { background: hsl(0 30% 96%); }

[data-theme="dark"] .done-badge--correct  { background: hsl(143 30% 10%); }
[data-theme="dark"] .done-badge--partial  { background: hsl(38 30% 10%); }
[data-theme="dark"] .done-badge--incorrect { background: hsl(0 20% 10%); }

.done-badge__icon {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.done-badge__label {
  flex: 1;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.75);
}
.done-badge__expand {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  background: none;
  border: none;
  padding: 0.2rem 0;
  font-size: 0.76rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.7);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s ease;
}
.done-badge__expand:hover {
  color: hsl(var(--primary));
}
.done-badge__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.25rem;
  margin-left: 0.1rem;
  border-radius: 5px;
  cursor: pointer;
  color: hsl(var(--muted-foreground) / 0.45);
  transition: color 0.12s ease, background 0.12s ease;
  flex: 0 0 auto;
}
.done-badge__dismiss:hover {
  color: hsl(var(--foreground) / 0.7);
  background: hsl(var(--foreground) / 0.06);
}
[data-theme="dark"] .done-badge__dismiss {
  color: hsl(var(--muted-foreground) / 0.35);
}
[data-theme="dark"] .done-badge__dismiss:hover {
  color: hsl(var(--foreground) / 0.6);
  background: hsl(var(--foreground) / 0.08);
}
.done-badge--partial .done-badge__label {
  font-weight: 600;
  color: hsl(38 55% 28%);
}
[data-theme="dark"] .done-badge--partial .done-badge__label {
  color: hsl(38 60% 62%);
}

/* ═══════════════════════════════════════════
   KIMI INLINE ACTIONS
   ═══════════════════════════════════════════ */
.kimi-inline-actions {
  max-width: 42rem;
  margin: 0.82rem auto 0.24rem;
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.kimi-text-action {
  display: inline-flex; align-items: center; gap: 0.32rem;
  background: none; border: none;
  padding: 0.3rem 0.8rem; min-height: 44px;
  cursor: pointer;
  font-size: 0.78rem; font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.58);
  transition: color 0.14s ease, transform 0.1s ease;
  line-height: 1; letter-spacing: 0.005em;
}
.kimi-text-action:hover { transform: translateY(-0.5px); }
.kimi-text-action svg { flex: 0 0 auto; opacity: 0.85; transition: opacity 0.14s ease; }
.kimi-text-action:hover svg { opacity: 1; }
.kimi-text-hint:hover, .kimi-text-hint.is-open { color: hsl(38 52% 36%); }
.kimi-text-sol:hover, .kimi-text-sol.is-open { color: hsl(var(--primary)); }
.kimi-text-action.is-open { font-weight: 600; }
.kimi-text-action .text { font-size: 0.78rem; line-height: 1; }
[data-theme="dark"] .kimi-text-action { color: hsl(var(--muted-foreground) / 0.45); }
[data-theme="dark"] .kimi-text-hint:hover, [data-theme="dark"] .kimi-text-hint.is-open { color: hsl(38 55% 60%); }
[data-theme="dark"] .kimi-text-sol:hover, [data-theme="dark"] .kimi-text-sol.is-open { color: hsl(var(--primary)); }
.kimi-text-sep { font-size: 0.5rem; color: hsl(var(--border)); user-select: none; line-height: 1; }
