/* VCUBE Portal v2.01: styles for v2 parts. Uses the portal's colour variables, so light and dark mode both work. */

/* Security checkup score */
.v2-score { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.v2-ring { --val: 0; width: 104px; height: 104px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#047857 calc(var(--val) * 1%), var(--surface-3, #eef0f6) 0); }
.v2-ring span { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: var(--surface, #fff); font-size: 22px; font-weight: 800; }
.v2-score-text { flex: 1; min-width: 240px; }
.v2-score-text h2 { margin: 0 0 10px; font-size: 19px; }
.v2-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v2-checks li { display: flex; gap: 10px; align-items: flex-start; }
.v2-checks strong { display: block; font-size: 14.5px; }
.v2-checks small { display: block; font-size: 13px; color: var(--muted, #5a6a80); }
.v2-check-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.v2-checks .ok .v2-check-ic { background: var(--success-bg, #ecfdf5); color: #047857; }
.v2-checks .todo .v2-check-ic { background: var(--warning-bg, #fffbeb); color: #b45309; }
:root[data-theme="dark"] .v2-checks .ok .v2-check-ic { color: #34d399; }
:root[data-theme="dark"] .v2-checks .todo .v2-check-ic { color: #fbbf24; }

/* 2-step setup */
.v2-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; line-height: 1.55; }
.v2-qr-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.v2-qr { width: 184px; height: 184px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--border, #e6e8f0); }
.v2-qr svg { width: 100%; height: 100%; display: block; }
.v2-key { font-size: 15px; font-weight: 700; letter-spacing: .04em; word-break: break-all; }
.v2-otp { font-size: 22px !important; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.v2-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding-left: 22px; font-size: 15px; font-weight: 700; }
.v2-codes-card { border: 2px solid #b45309; }

/* Password strength meter */
.v2-meter { margin-top: 6px; }
.v2-meter[hidden] { display: none; }
.v2-meter-bar { height: 6px; border-radius: 99px; background: var(--surface-3, #eef0f6); overflow: hidden; }
.v2-meter-bar span { display: block; height: 100%; width: 10%; border-radius: inherit; background: #b91c1c; transition: width .25s, background .25s; }
.v2-meter[data-level="2"] .v2-meter-bar span { background: #b45309; }
.v2-meter[data-level="3"] .v2-meter-bar span { background: #1d4ed8; }
.v2-meter[data-level="4"] .v2-meter-bar span { background: #047857; }
.v2-meter-text { margin: 4px 0 0; font-size: 13px; color: var(--muted, #5a6a80); }

@media (max-width: 480px) { .v2-codes { grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .v2-meter-bar span { transition: none; } }

/* ---------- Phase 2: birthdays and special days ---------- */
.v2-celebrate { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px 52px 18px 18px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #be185d 0%, #7c3aed 55%, #1d4ed8 100%); box-shadow: 0 20px 40px -20px rgba(124, 58, 237, .7); overflow: hidden; }
.v2-celebrate::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.v2-celebrate h2 { margin: 0; font-size: 20px; color: #fff; }
.v2-celebrate p { margin: 2px 0 0; font-size: 14.5px; color: #fff; opacity: .95; }
.v2-celebrate-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .18); }
.v2-ask .v2-celebrate-ic { background: var(--violet-bg, #f5f3ff); color: var(--violet, #6d28d9); }
.v2-celebrate-ic svg { width: 28px; height: 28px; }
.v2-celebrate-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.v2-celebrate-x { position: absolute; z-index: 1; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.v2-celebrate-x:hover { background: rgba(255, 255, 255, .15); }
.v2-celebrate svg, .v2-ask svg, .v2-week svg, .v2-days-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.v2-ask { margin-bottom: 20px; }
.v2-ask-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.v2-ask-head h3 { margin: 0; font-size: 17px; }
.v2-date-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.v2-ask-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.v2-ask-actions a { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; }
.v2-date { border: 0; margin: 0; padding: 0; }
.v2-date legend { font-weight: 700; font-size: 15px; padding: 0; }
.v2-date .hint { margin: 2px 0 8px; font-size: 13px; color: var(--muted, #5a6a80); }

.v2-week { margin-bottom: 20px; }
.v2-week .card-head h3 svg { width: 20px; height: 20px; }
.v2-week .list-item a.title { color: inherit; }
.v2-week .v2-today { background: var(--warning-bg, #fffbeb); }
.v2-week .btn-wa { min-height: 44px; }
.v2-days-btn { margin-top: 12px; min-height: 44px; }
.v2-days-btn svg { width: 16px; height: 16px; }

.v2-confetti { position: fixed; inset: 0; z-index: 130; pointer-events: none; overflow: hidden; }
.v2-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation-name: v2-fall; animation-timing-function: cubic-bezier(.3, .6, .4, 1); animation-fill-mode: forwards; }
@keyframes v2-fall { to { top: 105%; transform: rotate(720deg) translateX(40px); opacity: .9; } }
@media (max-width: 480px) { .v2-celebrate { padding: 16px 48px 16px 14px; } .v2-celebrate h2 { font-size: 18px; } }
@media print { .v2-celebrate, .v2-ask, .v2-confetti { display: none !important; } }
.v2-celebrate .v2-also { margin-top: 6px; font-size: 13.5px; font-weight: 650; }

/* ---------- Phase 3: seasons and festivals ---------- */
/* Seasonal tint of the page background (behind the cards), light and dark */
html.v2-fx-on.v2-theme-sun { --bg-accent: radial-gradient(900px 520px at 100% -8%, rgba(251, 191, 36, .16), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(249, 115, 22, .08), transparent 60%); }
html.v2-fx-on.v2-theme-rain { --bg-accent: radial-gradient(900px 520px at 100% -8%, rgba(14, 165, 233, .14), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(20, 184, 166, .10), transparent 60%); }
html.v2-fx-on.v2-theme-snow { --bg-accent: radial-gradient(900px 520px at 100% -8%, rgba(147, 197, 253, .20), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(196, 181, 253, .12), transparent 60%); }
html.v2-fx-on.v2-theme-lights { --bg-accent: radial-gradient(900px 520px at 100% -8%, rgba(245, 158, 11, .16), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(236, 72, 153, .09), transparent 60%); }
html.v2-fx-on.v2-theme-colours { --bg-accent: radial-gradient(800px 480px at 100% -8%, rgba(236, 72, 153, .12), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(34, 197, 94, .10), transparent 60%), radial-gradient(600px 400px at 40% 120%, rgba(59, 130, 246, .08), transparent 60%); }
html.v2-fx-on.v2-theme-tricolour { --bg-accent: radial-gradient(900px 480px at 100% -8%, rgba(249, 115, 22, .12), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(22, 163, 74, .10), transparent 60%); }
html.v2-fx-on.v2-theme-flowers { --bg-accent: radial-gradient(900px 520px at 100% -8%, rgba(245, 158, 11, .16), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(234, 88, 12, .09), transparent 60%); }

/* A thin seasonal line under the top bar */
html.v2-fx-on .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
html.v2-fx-on.v2-theme-sun .topbar::after { background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b); }
html.v2-fx-on.v2-theme-rain .topbar::after { background: linear-gradient(90deg, #0ea5e9, #14b8a6, #0ea5e9); }
html.v2-fx-on.v2-theme-snow .topbar::after { background: linear-gradient(90deg, #93c5fd, #c4b5fd, #93c5fd); }
html.v2-fx-on.v2-theme-lights .topbar::after { background: linear-gradient(90deg, #f59e0b, #ec4899, #f59e0b); }
html.v2-fx-on.v2-theme-colours .topbar::after { background: linear-gradient(90deg, #ec4899, #f59e0b, #22c55e, #3b82f6, #a855f7); }
html.v2-fx-on.v2-theme-tricolour .topbar::after { background: linear-gradient(90deg, #f97316 33%, #ffffff 33% 66%, #16a34a 66%); }
html.v2-fx-on.v2-theme-flowers .topbar::after { background: linear-gradient(90deg, #f59e0b, #ea580c, #f59e0b); }

/* Season chip in the top bar (hidden on phones, where space is short) */
.v2-season-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 650;
  background: var(--surface-2, #f8f9fc); border: 1px solid var(--border, #e6e8f0); color: var(--text-2, #334155); white-space: nowrap; }
.v2-season-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.v2-season-summer .v2-season-chip svg { color: #b45309; }
.v2-season-rainy .v2-season-chip svg { color: #0369a1; }
.v2-season-winter .v2-season-chip svg { color: #4338ca; }
.v2-season-festive .v2-season-chip svg { color: #be185d; }
:root[data-theme="dark"] .v2-season-chip svg { color: #fcd34d; }
@media (max-width: 900px) { .v2-season-chip { display: none; } }
.v2-fx-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 14px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.v2-fx-toggle:hover { background: var(--surface-3, #eef0f6); }
.v2-fx-toggle svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Moving effects: behind every card and text (z-index -1), never clickable */
.v2-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.v2-fx i { position: absolute; top: -24px; display: block; animation-iteration-count: infinite; animation-timing-function: linear; will-change: transform; }
.v2-fx-snow i { width: calc(8px * var(--s)); height: calc(8px * var(--s)); border-radius: 50%; background: #a5b4fc; opacity: .55; animation-name: v2-snow; }
:root[data-theme="dark"] .v2-fx-snow i { background: #e2e8f0; opacity: .45; }
.v2-fx-rain i { width: 1.5px; height: calc(22px * var(--s)); background: linear-gradient(transparent, rgba(14, 165, 233, .55)); animation-name: v2-rain; }
:root[data-theme="dark"] .v2-fx-rain i { background: linear-gradient(transparent, rgba(125, 211, 252, .5)); }
.v2-fx-sun i { top: auto; bottom: -12px; width: calc(6px * var(--s)); height: calc(6px * var(--s)); border-radius: 50%; background: #fbbf24; opacity: .5; box-shadow: 0 0 10px #fbbf24; animation-name: v2-rise; }
.v2-fx-sun .v2-sun { position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .28), transparent 65%); animation: v2-glow 6s ease-in-out infinite alternate; }
.v2-fx-lights i { width: calc(7px * var(--s)); height: calc(7px * var(--s)); border-radius: 50%; animation-name: v2-twinkle; animation-timing-function: ease-in-out; }
.v2-fx-lights i[data-c="0"], .v2-fx-lights i[data-c="3"] { background: #f59e0b; box-shadow: 0 0 12px #f59e0b; }
.v2-fx-lights i[data-c="1"], .v2-fx-lights i[data-c="4"] { background: #fb923c; box-shadow: 0 0 12px #fb923c; }
.v2-fx-lights i[data-c="2"] { background: #f472b6; box-shadow: 0 0 12px #f472b6; }
.v2-fx-colours i { width: calc(12px * var(--s)); height: calc(12px * var(--s)); border-radius: 50%; filter: blur(1px); opacity: .55; animation-name: v2-snow; }
.v2-fx-colours i[data-c="0"] { background: #ec4899; }
.v2-fx-colours i[data-c="1"] { background: #f59e0b; }
.v2-fx-colours i[data-c="2"] { background: #22c55e; }
.v2-fx-colours i[data-c="3"] { background: #3b82f6; }
.v2-fx-colours i[data-c="4"] { background: #a855f7; }
.v2-fx-tricolour i, .v2-fx-flowers i { width: calc(9px * var(--s)); height: calc(12px * var(--s)); border-radius: 60% 0 60% 0; opacity: .7; animation-name: v2-snow; }
.v2-fx-tricolour i[data-c="0"], .v2-fx-tricolour i[data-c="3"] { background: #f97316; }
.v2-fx-tricolour i[data-c="1"], .v2-fx-tricolour i[data-c="4"] { background: #16a34a; }
.v2-fx-tricolour i[data-c="2"] { background: #cbd5e1; }
.v2-fx-flowers i { border-radius: 50%; }
.v2-fx-flowers i[data-c="0"], .v2-fx-flowers i[data-c="2"], .v2-fx-flowers i[data-c="4"] { background: #f59e0b; }
.v2-fx-flowers i[data-c="1"], .v2-fx-flowers i[data-c="3"] { background: #ea580c; }
@keyframes v2-snow { 0% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(24px, 55vh, 0) rotate(160deg); } 100% { transform: translate3d(-8px, 110vh, 0) rotate(320deg); } }
@keyframes v2-rain { to { transform: translate3d(-60px, 112vh, 0); } }
@keyframes v2-rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: .55; } 100% { transform: translate3d(30px, -105vh, 0); opacity: 0; } }
@keyframes v2-twinkle { 0%, 100% { opacity: .15; transform: scale(.8); } 50% { opacity: .85; transform: scale(1.1); } }
@keyframes v2-glow { to { transform: scale(1.08); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .v2-fx { display: none; } }

/* Festival greeting banner (dark gradients keep white text above 4.5:1) */
.v2-festival { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px 52px 18px 18px; border-radius: 20px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #9a3412, #be185d); box-shadow: 0 20px 40px -20px rgba(154, 52, 18, .6); }
.v2-festival h2 { margin: 0; font-size: 19px; color: #fff; }
.v2-festival p { margin: 2px 0 0; font-size: 14px; color: #fff; opacity: .95; }
.v2-festival svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-festival-colours { background: linear-gradient(135deg, #6d28d9, #be185d); }
.v2-festival-tricolour { background: linear-gradient(135deg, #1e3a8a, #1e40af); padding-left: 26px; }
.v2-festival-tricolour::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(#f97316 33%, #fff 33% 66%, #16a34a 66%); }
.v2-festival-snow { background: linear-gradient(135deg, #1e3a8a, #0e7490); }
.v2-festival-flowers { background: linear-gradient(135deg, #9a3412, #b45309); }

/* Owner page: Seasons & festivals */
.v2-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.v2-mode { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border, #e6e8f0); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.v2-mode:has(input:checked) { border-color: var(--brand-1, #4f46e5); background: var(--brand-soft, rgba(79, 70, 229, .08)); }
.v2-mode input { width: 18px; height: 18px; accent-color: var(--brand-1, #4f46e5); }
.v2-try { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin: 4px 6px 0 0; border: 1px solid var(--border, #e6e8f0); border-radius: 99px; font-weight: 600; text-decoration: none; }
.v2-fest { margin: 0; padding: 12px 16px 14px; border: 1px solid var(--border, #e6e8f0); border-radius: 14px; min-width: 0; }
.v2-fest legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.v2-fest-new { border-style: dashed; }
.v2-fest-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px 12px; }
.v2-fest-wide { grid-column: 1 / -1; }
.v2-fest-grid > * { min-width: 0; }
.v2-fest-grid input, .v2-fest-grid select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.v2-fest .check { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 720px) { .v2-fest-grid { grid-template-columns: 1fr 1fr; } .v2-fest-grid > .field:first-child, .v2-fest-grid > .field:nth-child(4) { grid-column: 1 / -1; } }
@media print { .v2-fx, .v2-festival, .v2-season-chip { display: none !important; } }

/* ---------- Phase 4: Today home screens ---------- */
.v2-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v2-today-head h1 { font-size: clamp(24px, 3vw, 32px); }
.v2-next { --tone: #4f46e5; --tone-bg: var(--brand-soft); display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px;
  background: linear-gradient(135deg, var(--tone-bg), var(--surface) 70%); border: 1px solid var(--border); border-left: 5px solid var(--tone); box-shadow: var(--shadow-sm); }
.v2-next-success { --tone: #047857; --tone-bg: var(--success-bg); }
.v2-next-danger { --tone: #b91c1c; --tone-bg: var(--danger-bg); }
.v2-next-warning { --tone: #b45309; --tone-bg: var(--warning-bg); }
.v2-next-info { --tone: #1d4ed8; --tone-bg: var(--info-bg); }
.v2-next-violet { --tone: #6d28d9; --tone-bg: rgba(139, 92, 246, .12); }
.v2-next-ic { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--tone); color: #fff; }
.v2-next-ic .icon { width: 26px; height: 26px; }
.v2-next-text { flex: 1; min-width: 0; }
.v2-next-text h2 { font-size: clamp(18px, 2.2vw, 22px); }
.v2-next-text p:last-child { margin: 4px 0 0; color: var(--text-2); }
.v2-next-btn { flex: none; background: var(--tone); color: #fff; border-color: transparent; --btn-bg: var(--tone); --btn-fg: #fff; --btn-bd: transparent; }
.v2-next-btn:hover { filter: brightness(1.08); background: var(--tone); color: #fff; }
[data-v2-slot]:not(:empty) { margin: 16px 0; }
.v2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.v2-kpi { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); color: inherit; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.v2-kpi:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.v2-kpi-n { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.v2-kpi-l { font-size: 13px; font-weight: 600; color: var(--muted); }
.v2-kpi-alert .v2-kpi-n { color: var(--danger); }
@media (max-width: 720px) {
  .v2-next { flex-direction: column; align-items: flex-start; padding: 18px; }
  .v2-next-btn { width: 100%; justify-content: center; }
  .v2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-today-head .actions { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .v2-kpi { transition: none; } .v2-kpi:hover { transform: none; } }

/* ---------- Phase 5: requests, announcements, roadmap, calendar, feedback ---------- */
.v2-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-weight: 650; font-size: 14px; text-decoration: none !important; }
.v2-filter.is-on { background: var(--brand-soft); border-color: transparent; color: var(--brand-text, var(--brand-1)); }
.v2-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.v2-kinds legend { margin-bottom: 8px; }
.v2-kind { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.v2-kind:has(input:checked) { border-color: var(--brand-1); background: var(--brand-soft); }
.v2-kind input { accent-color: var(--brand-1); width: 18px; height: 18px; }

.v2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.v2-steps li { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.v2-steps li span { color: var(--muted); }
.v2-steps li.is-done { border-color: var(--success-bd); background: var(--success-bg); }
.v2-steps li.is-done strong { color: var(--success); }
.v2-steps li.is-now { border-color: var(--brand-1); box-shadow: 0 0 0 3px var(--brand-soft); }

.v2-thread { display: flex; flex-direction: column; gap: 14px; }
.v2-msg { max-width: 86%; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.v2-msg.is-mine { align-self: flex-end; background: var(--brand-soft); border-color: transparent; }
.v2-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; flex-wrap: wrap; }
.v2-msg-body { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.v2-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; max-height: 220px; overflow: auto; padding: 4px 2px; }
.v2-pick .check, fieldset .check { min-height: 44px; display: flex; align-items: center; gap: 8px; }

.v2-road { list-style: none; margin: 0; padding: 0; }
.v2-road-item { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.v2-road-item:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--border); }
.v2-road-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--surface); color: #fff; }
.v2-road-item.is-done .v2-road-dot { background: #047857; border-color: #047857; }
.v2-road-item.is-late .v2-road-dot { border-color: #b45309; }
.v2-road-body { min-width: 0; flex: 1; }
.v2-road-body h3 { font-size: 15.5px; }
.v2-nextms { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.v2-nextms span { flex: 1; min-width: 180px; }

.v2-month { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-month .btn { min-width: 44px; min-height: 44px; justify-content: center; }
.v2-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.v2-cal th { padding: 10px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.v2-cal td { height: 108px; vertical-align: top; padding: 6px; border: 1px solid var(--border); border-width: 0 1px 1px 0; }
.v2-cal td:last-child { border-right: 0; }
.v2-cal td.is-out { background: var(--surface-2); }
.v2-cal td.is-today .v2-cal-d { background: #4f46e5; color: #fff; }
.v2-cal-d { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.v2-post { display: block; margin-top: 4px; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 650; line-height: 1.3; color: var(--text); background: var(--surface-2);
  border-left: 3px solid #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; }
.v2-pf-instagram { border-left-color: #db2777; }
.v2-pf-facebook { border-left-color: #1d4ed8; }
.v2-pf-youtube { border-left-color: #dc2626; }
.v2-pf-linkedin { border-left-color: #0369a1; }
.v2-pf-google { border-left-color: #16a34a; }
.v2-pf-whatsapp { border-left-color: #15803d; }
.v2-pf-website { border-left-color: #7c3aed; }
.v2-cal-list { border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .v2-cal { display: none; } /* phones: the list below is easier to read */
  .v2-cal-list { border-top: 0; }
  .v2-steps { grid-template-columns: 1fr; }
  .v2-msg { max-width: 100%; }
}

.v2-score { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.v2-score small { font-size: 18px; color: var(--muted); font-weight: 700; margin-left: 4px; }
.v2-bars { flex: 1; min-width: 260px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; }
.v2-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 12px; }
.v2-bar span { width: 100%; max-width: 40px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #6366f1, #4f46e5); }
.v2-bar b { font-weight: 700; }
.v2-bar i { font-style: normal; color: var(--muted); }
.v2-stars { color: #b45309; letter-spacing: 1px; }
:root[data-theme="dark"] .v2-stars { color: #fbbf24; }
.v2-low { background: var(--danger-bg); }

.v2-ann { position: relative; display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding: 16px 52px 16px 16px; border-radius: 18px;
  border: 1px solid var(--info-bd); background: var(--info-bg); color: var(--text); }
.v2-ann h2 { font-size: 16px; margin: 0; }
.v2-ann p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); white-space: pre-line; }
.v2-ann-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #1d4ed8; color: #fff; }
.v2-ann-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-ann-success { border-color: var(--success-bd); background: var(--success-bg); }
.v2-ann-success .v2-ann-ic { background: #047857; }
.v2-ann-warning { border-color: var(--warning-bd); background: var(--warning-bg); }
.v2-ann-warning .v2-ann-ic { background: #b45309; }
.v2-ann-festive { border-color: rgba(190, 24, 93, .3); background: rgba(236, 72, 153, .08); }
.v2-ann-festive .v2-ann-ic { background: #be185d; }
.v2-ann .v2-celebrate-x { color: var(--text-2); }

.v2-rate h3 { font-size: 16px; }
.v2-stars-pick { display: flex; gap: 4px; margin: 10px 0; padding: 0; border: 0; }
.v2-stars-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v2-stars-pick label { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 30px; line-height: 1; color: var(--border-strong); cursor: pointer; }
.v2-stars-pick label:hover { background: var(--surface-2); }
.v2-stars-pick input:focus-visible + label { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.v2-stars-pick[data-v="1"] label:nth-of-type(-n+1), .v2-stars-pick[data-v="2"] label:nth-of-type(-n+2), .v2-stars-pick[data-v="3"] label:nth-of-type(-n+3),
.v2-stars-pick[data-v="4"] label:nth-of-type(-n+4), .v2-stars-pick[data-v="5"] label:nth-of-type(-n+5) { color: #d97706; }
.v2-rate textarea { width: 100%; margin-bottom: 10px; }
@media print { .v2-ann, .v2-rate { display: none !important; } }

/* ---------- Phase 6: final check fixes ---------- */
.v2-link { display: inline-flex; align-items: center; min-height: 44px; }
.v2-link-row { display: flex; align-items: center; min-height: 44px; }
.v2-file { min-height: 44px; max-width: 100%; padding: 8px 0; }
