/* The blog at /blog: a list of posts and the posts themselves. Builds on styles.css. */
:root { --tag-news: #d81e73; --tag-news-bg: #fdeaf3; --tag-lesson: #a35a00; --tag-lesson-bg: #fdf1df; }
:root[data-theme="dark"] { --tag-news: #ff8fbe; --tag-news-bg: #3a1a2a; --tag-lesson: #ffc56b; --tag-lesson-bg: #3a2c14; }

.blog { max-width: 940px; margin: 0 auto; padding: 40px 24px 0; }
.blog-head h1 { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.blog-head p { margin-top: 12px; max-width: 560px; color: var(--muted); font-size: 17px; }

.blog-filter { display: inline-flex; gap: 4px; margin: 28px 0 8px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; }
.blog-filter button { padding: 6px 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; cursor: pointer; transition: color .15s, background .15s; }
.blog-filter button:hover { color: var(--ink); }
.blog-filter button[aria-pressed="true"] { color: var(--ink); background: var(--mist); }

.post-list { list-style: none; }
.post-card { display: block; margin-top: 16px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .25s var(--ease); }
.post-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.post-card h2 { margin-top: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.post-card p { margin-top: 8px; color: var(--muted); }
.post-list li[hidden] { display: none; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--faint); font-size: 14px; }
.post-tag { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--tag-news); background: var(--tag-news-bg); }
.post-tag.lesson { color: var(--tag-lesson); background: var(--tag-lesson-bg); }

.post { max-width: 720px; margin: 0 auto; padding: 32px 24px 0; }
.post-back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.post-back:hover { color: var(--brand); }
.post-head h1 { margin-top: 14px; font-size: 38px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.post-lede { margin-top: 16px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.post-body { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 17px; line-height: 1.75; }
.post-body h2 { margin-top: 40px; font-size: 23px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.post-body p, .post-body ul, .post-body ol { margin-top: 16px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li + li { margin-top: 8px; }
.post-body strong { font-weight: 700; }
.post-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.post-body code { padding: 1px 6px; border-radius: 6px; background: var(--mist); font-size: .9em; }
.post-body blockquote { margin-top: 20px; padding: 4px 0 4px 18px; border-left: 3px solid var(--border-strong); color: var(--muted); }

.takeaway { margin-top: 36px; padding: 22px 24px; border-radius: 16px; background: var(--tag-lesson-bg); }
.takeaway strong { display: block; color: var(--tag-lesson); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.takeaway p, .takeaway ul { margin-top: 8px; }

.post-end { margin-top: 48px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; color: var(--muted); }
.post-end a { color: var(--brand); font-weight: 600; }

@media (max-width: 720px) {
  .blog, .post { padding: 20px 16px 0; }
  .blog-head h1 { font-size: 34px; }
  .post-card { padding: 20px; }
  .post-head h1 { font-size: 29px; }
  .post-lede { font-size: 17px; }
  .post-body { font-size: 16.5px; }
}

/* Thumbnails and covers: the same HTML at any width, sized in cqw (1cqw = 12px at 1200px). */
.post-card.has-cover { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; }
.post-thumb { border-radius: 14px; overflow: hidden; }
.post-cover { margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
@media (max-width: 720px) {
  .post-card.has-cover { grid-template-columns: 1fr; gap: 16px; }
  .post-cover { margin-top: 20px; border-radius: 14px; }
}

.cover { container-type: inline-size; position: relative; display: grid; place-items: center; aspect-ratio: 1200 / 630; overflow: hidden; color: #f4f3f7; line-height: 1.4;
  background: radial-gradient(circle at 88% -10%, rgba(232, 40, 124, .5), transparent 55%), radial-gradient(circle at -5% 110%, rgba(210, 58, 203, .3), transparent 50%), #15111a; }
.cover.lesson { background: radial-gradient(circle at 88% -10%, rgba(255, 166, 61, .38), transparent 55%), radial-gradient(circle at -5% 110%, rgba(232, 40, 124, .3), transparent 50%), #15111a; }
.cover * { margin: 0; }
.cv-badge { position: absolute; top: 4cqw; left: 4.5cqw; padding: .5cqw 1.4cqw; border-radius: 99cqw; background: rgba(255, 255, 255, .09); color: #ffb3d3; font-size: 1.7cqw; font-weight: 700; }
.cover.lesson .cv-badge { color: #ffc56b; }

.cv-island { width: 66cqw; padding: 2.6cqw 3.2cqw 3.2cqw; border-radius: 4cqw; background: #000; border: .12cqw solid rgba(255, 255, 255, .08); box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .55); }
.cv-status { display: flex; align-items: center; gap: .9cqw; color: #8e8a99; font-size: 1.6cqw; font-weight: 600; }
.cv-led { width: 1cqw; height: 1cqw; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 1.2cqw #ff4d6d; }
.cv-line { display: flex; gap: 1.6cqw; margin-top: 1.8cqw; font-size: 2.3cqw; font-weight: 500; }
.cv-line.dim { color: #8e8a99; }
.cv-time { flex: none; align-self: flex-start; margin-top: .55cqw; padding: .2cqw .8cqw; border-radius: .8cqw; background: rgba(255, 255, 255, .08); color: #a9a5b4; font-size: 1.3cqw; font-weight: 600; }
.cv-line mark { padding: 0 .3cqw; border-radius: .4cqw; background: rgba(212, 206, 250, .3); color: #fff; }

.cv-note { width: 58cqw; padding: 3cqw; border-radius: 2.4cqw; background: #211b29; border: .12cqw solid rgba(255, 255, 255, .07); box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .5); transform: translateX(-11cqw);
  -webkit-mask-image: linear-gradient(100deg, #000 35%, transparent 92%); mask-image: linear-gradient(100deg, #000 35%, transparent 92%); }
.cv-note-title { display: flex; align-items: baseline; gap: 2cqw; font-size: 2.3cqw; font-weight: 700; }
.cv-rec { color: #ff6b81; font-size: 1.7cqw; font-weight: 600; }
.cv-note i { display: block; height: 1.3cqw; margin-top: 1.6cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .14); }
.cv-battery { position: absolute; right: 13cqw; top: 50%; display: flex; align-items: center; transform: translateY(-50%); }
.cv-battery span { display: grid; place-items: center start; width: 17cqw; height: 9cqw; padding: .9cqw; border: .6cqw solid #ff6b6b; border-radius: 2cqw; }
.cv-battery span::before { content: ''; width: 1.4cqw; height: 100%; border-radius: .6cqw; background: #ff6b6b; }
.cv-battery::after { content: ''; width: 1.2cqw; height: 3.6cqw; margin-left: .4cqw; border-radius: 0 .6cqw .6cqw 0; background: #ff6b6b; }
.cv-battery b { position: absolute; left: 0; right: 1.6cqw; text-align: center; font-size: 3cqw; color: #ff6b6b; }

.cv-rates { width: 80cqw; }
.cv-rates > p { color: #a9a5b4; font-size: 1.8cqw; font-weight: 600; }
.cv-rate { display: grid; grid-template-columns: 13cqw 1fr; align-items: center; gap: 2cqw; margin-top: 2.6cqw; }
.cv-rate span { color: #a9a5b4; font-size: 1.9cqw; font-weight: 600; }
.cv-rate div { display: flex; align-items: center; gap: 1.6cqw; }
.cv-rate i { height: 6cqw; border-radius: 1.4cqw; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 .4cqw, transparent .4cqw 1.2cqw), linear-gradient(90deg, #ffa63d, #ff5a5a); }
.cv-rate.small i { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 .4cqw, transparent .4cqw 1.2cqw), linear-gradient(90deg, #e8287c, #d23acb); }
.cv-rate b { flex: none; font-size: 2.6cqw; font-weight: 800; white-space: nowrap; }
.cv-ratio { position: absolute; right: 7cqw; bottom: 5cqw; font-size: 7cqw; font-weight: 800; letter-spacing: -.03em; color: #ffc56b; }

.cv-subs { display: grid; gap: 2.2cqw; justify-items: center; width: 74cqw; }
.cv-en { color: #a9a5b4; font-size: 2cqw; font-style: italic; }
.cv-sub { display: flex; align-items: center; gap: 1.6cqw; }
.cv-sub p { padding: .6cqw 2cqw; border-radius: .8cqw; background: rgba(0, 0, 0, .78); font-size: 3.4cqw; font-weight: 600; }
.cv-sub.wrong p { color: #a9a5b4; text-decoration: line-through .3cqw #ff6b6b; }
.cv-sub em { padding: .3cqw 1.2cqw; border-radius: 99cqw; font-size: 1.6cqw; font-style: normal; font-weight: 700; }
.cv-sub.wrong em { background: rgba(255, 107, 107, .18); color: #ff8a8a; }
.cv-sub.right em { background: rgba(95, 208, 143, .18); color: #7be0a6; }

/* Figures inside posts follow the page theme. */
:root { --ok: #1f8a4c; --ok-bg: #e3f5ea; --bad: #d4343f; --bad-bg: #fde7e8; }
:root[data-theme="dark"] { --ok: #6fdc9c; --ok-bg: #173325; --bad: #ff8a8a; --bad-bg: #3b1d20; }
.fig { margin-top: 28px; }
.fig-box { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 15px; line-height: 1.5; }
.fig figcaption { margin-top: 10px; color: var(--faint); font-size: 14px; text-align: center; }
.fig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fig-label { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fig-label.ok { color: var(--ok); }
.fig-label.bad { color: var(--bad); }
.fig-arrow { display: grid; place-items: center; color: var(--faint); font-size: 22px; }

.mini-island { padding: 14px 16px 16px; border-radius: 22px; background: #000; color: #f4f3f7; border: 1px solid rgba(255, 255, 255, .07); }
.mini-island.light { background: #fff; color: #1d1d1f; border-color: #e3e3e8; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .25); }
.mini-island .mi-status { display: flex; align-items: center; gap: 7px; color: #8e8a99; font-size: 12.5px; font-weight: 600; }
.mini-island.light .mi-status { color: #6e6e73; }
.mini-island .mi-status i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d6d; }
.mini-island p { display: flex; gap: 10px; margin-top: 10px; font-size: 15px; font-weight: 500; }
.mini-island p > span:first-child { flex: none; align-self: flex-start; margin-top: 3px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .09); color: #a9a5b4; font-size: 11.5px; font-weight: 600; line-height: 16px; }
.mini-island.light p > span:first-child { background: rgba(0, 0, 0, .06); color: #6e6e73; }
.mini-island mark { padding: 0 2px; border-radius: 3px; background: rgba(212, 206, 250, .3); color: inherit; }
.mini-island.light mark { background: rgba(0, 113, 227, .16); }
.mi-pick { display: inline-flex; gap: 2px; margin: 12px 0 0 40px; padding: 4px; border-radius: 12px; background: #2a2730; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); font-size: 13px; font-weight: 600; }
.mi-pick b { padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.mi-pick b:first-child { background: rgba(255, 255, 255, .1); }
.mi-answer { margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 15px; }

.track { position: relative; height: 34px; margin: 28px 0 44px; border-radius: 10px; background: var(--mist); }
.track .fill { position: absolute; inset: 0 30% 0 0; border-radius: 10px 0 0 10px; }
.track .fill.memory { background: repeating-linear-gradient(135deg, var(--tag-lesson-bg) 0 8px, transparent 8px 16px); border: 1.5px dashed var(--tag-lesson); }
.track .fill.saved { background: var(--ok-bg); }
.track .tick { position: absolute; top: 7px; width: 4px; height: 20px; border-radius: 2px; background: var(--ok); }
.track .cut { position: absolute; left: 70%; top: -6px; bottom: -6px; width: 3px; background: var(--bad); }
.track .cut::after { content: '⚡'; position: absolute; top: -22px; left: -8px; font-size: 16px; }
.track .note { position: absolute; top: 40px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.track .end { position: absolute; right: 8px; top: 7px; color: var(--faint); font-size: 13px; }

.fig-steps { display: grid; gap: 8px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--mist); }
.step b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); font-size: 12.5px; }
.step-cut { padding: 6px 12px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-size: 13.5px; font-weight: 600; }
.step-ok { padding: 6px 12px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; font-weight: 600; }

.note-item { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 0 auto; padding: 12px 14px; border-radius: 12px; background: var(--mist); }
.note-item i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--tag-news-bg); color: var(--tag-news); font-style: normal; }
.note-item small { display: block; color: var(--faint); font-size: 13px; }

.pipe { display: flex; width: 86%; height: 38px; border-radius: 10px; outline: 2px solid var(--border-strong); outline-offset: 3px; }
.pipe span { display: grid; place-items: center; overflow: hidden; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pipe .call { background: #7a7590; border-radius: 10px 0 0 10px; }
.pipe .raw { background: repeating-linear-gradient(135deg, #ff5a5a 0 6px, #e04848 6px 12px); margin-right: -12%; border-radius: 0 10px 10px 0; }
.pipe .opus { background: var(--fill); }
.pipe .free { color: var(--faint); }
.pipe-legend { display: flex; width: 86%; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 13.5px; }

.queue { display: flex; align-items: center; gap: 6px; }
.queue span { display: grid; place-items: center; flex: 1; height: 44px; border-radius: 8px; background: var(--tag-news-bg); color: var(--tag-news); font-size: 13px; font-weight: 600; }
.queue span.drop { background: var(--bad-bg); color: var(--bad); opacity: .75; transform: translateY(14px) rotate(-8deg); }
.queue-box { flex: 5; display: flex; gap: 6px; padding: 6px; border-radius: 12px; border: 2px dashed var(--border-strong); }
.queue-hint { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 13.5px; }

.chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }
.chain > div { padding: 14px; border-radius: 12px; background: var(--mist); }
.chain small { display: block; color: var(--faint); font-size: 12.5px; font-weight: 600; }
.chain strong { display: block; margin-top: 4px; }
.chain .bad { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 620px) { .chain { grid-template-columns: 1fr; } .chain .fig-arrow { transform: rotate(90deg); } }

.screen { display: grid; gap: 8px; justify-items: center; padding: 34px 16px 18px; border-radius: 12px; background: linear-gradient(160deg, #3d4a5c, #1d2430); }
.screen p { padding: 3px 12px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 16px; font-weight: 600; text-align: center; }
.screen .en { background: none; color: rgba(255, 255, 255, .7); font-size: 13.5px; font-style: italic; font-weight: 500; }

/* Đưa VietNote lên Ubuntu */
.cv-term { width: 60cqw; padding: 2.4cqw 3cqw 3cqw; border-radius: 2cqw; background: #0f0c13; border: .12cqw solid rgba(255, 255, 255, .08); box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .55); transform: translateX(-8cqw); font: 500 2.2cqw/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.cv-term-bar { display: flex; gap: .9cqw; margin-bottom: 1.6cqw !important; }
.cv-term-bar i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.cv-term b { color: #ffc56b; }
.cv-term .dim { color: #8e8a99; }
.cv-term-cursor { width: 1.3cqw; height: 2.6cqw; background: #f4f3f7; }
.chain .ok { background: var(--ok-bg); color: var(--ok); }
.win-map { position: relative; aspect-ratio: 1360 / 740; border-radius: 10px; background: var(--mist); border: 1px solid var(--border); }
.win-map span { position: absolute; display: grid; place-items: center; padding: 4px; border-radius: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center; }
.win-map .want { border: 2px dashed var(--ok); color: var(--ok); }
.win-map .real { border: 2px solid var(--bad); background: var(--bad-bg); color: var(--bad); }

/* The list as a timeline: date, a dot on the rail, the card. */
.post-version { padding: 2px 8px; border-radius: 6px; background: var(--mist); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.blog-order { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.blog-sort { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.blog-sort:hover { text-decoration: underline; text-underline-offset: 2px; }
.timeline { position: relative; margin-top: 12px; }
.timeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 79px; width: 2px; border-radius: 2px; background: linear-gradient(var(--border-strong), var(--border-strong) 90%, transparent); }
.tl-month[hidden] { display: none; }
.tl-month-label { position: relative; margin: 32px 0 4px 104px; color: var(--faint); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tl-month-label::before { content: ''; z-index: 1; position: absolute; left: -31px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-strong); transform: translateY(-50%); }
.tl-item { display: grid; grid-template-columns: 64px 32px 1fr; gap: 0 8px; align-items: start; margin-top: 16px; }
.tl-item .post-card { margin-top: 0; }
.tl-date { padding-top: 20px; color: var(--faint); font-size: 13px; font-weight: 600; line-height: 1.2; text-align: right; }
.tl-date b { display: block; color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tl-dot { position: relative; z-index: 1; justify-self: center; width: 14px; height: 14px; margin-top: 30px; border-radius: 50%; background: var(--tag-news); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--tag-news-bg); }
.tl-dot.lesson { background: var(--tag-lesson); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--tag-lesson-bg); }
@media (max-width: 720px) {
  .timeline::before { left: 6px; }
  .tl-month-label { margin-left: 28px; }
  .tl-month-label::before { left: -28px; }
  .tl-item { grid-template-columns: 14px 1fr; gap: 6px 14px; }
  .tl-date { grid-column: 2; grid-row: 1; display: flex; align-items: baseline; gap: 6px; padding-top: 0; text-align: left; }
  .tl-date b { display: inline; font-size: 18px; }
  .tl-dot { grid-column: 1; grid-row: 1; margin-top: 6px; }
  .tl-item .post-card { grid-column: 2; }
}

/* Covers of the feature posts. */
.cv-summary { width: 62cqw; padding: 3cqw; border-radius: 2.4cqw; background: #211b29; border: .12cqw solid rgba(255, 255, 255, .07); box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .5); }
.cv-summary h3 { font-size: 2.6cqw; font-weight: 800; }
.cv-summary p { display: flex; align-items: center; gap: 1.4cqw; margin-top: 1.6cqw; font-size: 1.9cqw; color: #d9d6e0; }
.cv-summary p b { flex: none; padding: .3cqw 1.1cqw; border-radius: 99cqw; font-size: 1.4cqw; }
.cv-summary .k1 { background: rgba(232, 40, 124, .22); color: #ff8fbe; }
.cv-summary .k2 { background: rgba(95, 208, 143, .18); color: #7be0a6; }
.cv-summary .k3 { background: rgba(255, 197, 107, .18); color: #ffc56b; }
.cv-summary p small { margin-left: auto; color: #8e8a99; font-size: 1.4cqw; }
.cv-ask { align-self: flex-end; margin: 1.8cqw 0 0 auto; padding: 1cqw 1.8cqw; border-radius: 2cqw 2cqw .6cqw 2cqw; background: #e8287c; font-size: 2cqw; font-weight: 600; width: fit-content; }
.cv-reply { margin-top: 1.4cqw; padding: 1.2cqw 1.8cqw; border-radius: 2cqw 2cqw 2cqw .6cqw; background: rgba(255, 255, 255, .08); color: #d9d6e0; font-size: 1.9cqw; }
.cv-flow { display: flex; align-items: center; gap: 4cqw; }
.cv-file { display: grid; place-items: center; gap: 1cqw; width: 20cqw; padding: 3cqw 2cqw; border-radius: 2cqw; background: #211b29; border: .12cqw solid rgba(255, 255, 255, .08); font-size: 1.8cqw; font-weight: 600; }
.cv-file i { display: flex; align-items: center; gap: .4cqw; height: 6cqw; }
.cv-file i::before, .cv-file i::after { content: ''; width: 9cqw; height: 100%; background: repeating-linear-gradient(90deg, #ff8fbe 0 .5cqw, transparent .5cqw 1.1cqw); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.cv-flow > b { font-size: 5cqw; color: #ff8fbe; }
.cv-doc { width: 30cqw; padding: 3cqw; border-radius: 2cqw; background: #f7f5fa; color: #17151c; box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .5); }
.cv-doc h3 { font-size: 2.4cqw; font-weight: 800; }
.cv-doc i { display: block; height: 1cqw; margin-top: 1.3cqw; border-radius: 1cqw; background: #dcd8e3; }
.cv-video { position: relative; width: 70cqw; aspect-ratio: 16 / 9; border-radius: 2cqw; overflow: hidden; background: linear-gradient(160deg, #46566b, #1d2430 70%); box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .55); }
.cv-video .cv-caps { position: absolute; left: 0; right: 0; bottom: 4cqw; display: grid; gap: .8cqw; justify-items: center; }
.cv-caps p { padding: .4cqw 1.6cqw; border-radius: .6cqw; background: rgba(0, 0, 0, .78); font-size: 2.6cqw; font-weight: 600; }
.cv-caps p.src { color: #c9c6d0; font-size: 2cqw; font-weight: 500; }
.cv-video .cv-pill { position: absolute; top: 2.4cqw; left: 50%; display: flex; align-items: center; gap: 1cqw; padding: 1cqw 2.4cqw; border-radius: 99cqw; background: #000; font-size: 1.7cqw; font-weight: 600; transform: translateX(-50%); }
.cv-video .cv-dub { position: absolute; top: 2.6cqw; right: 2.6cqw; padding: .6cqw 1.4cqw; border-radius: 99cqw; background: rgba(232, 40, 124, .9); font-size: 1.6cqw; font-weight: 700; }
.cv-play { position: absolute; left: 50%; top: 42%; width: 9cqw; height: 9cqw; border-radius: 50%; background: rgba(255, 255, 255, .16); transform: translate(-50%, -50%); }
.cv-play::after { content: ''; position: absolute; left: 38%; top: 30%; border-style: solid; border-width: 2cqw 0 2cqw 3.2cqw; border-color: transparent transparent transparent #fff; }
.cv-browser { width: 72cqw; border-radius: 1.8cqw; overflow: hidden; background: #1d1824; border: .12cqw solid rgba(255, 255, 255, .08); box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .55); }
.cv-browser-bar { display: flex; align-items: center; gap: .9cqw; padding: 1.4cqw 2cqw; background: #2a2431; }
.cv-browser-bar i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.cv-browser-bar span { flex: 1; margin-left: 1.4cqw; padding: .5cqw 1.6cqw; border-radius: 99cqw; background: rgba(255, 255, 255, .07); color: #a9a5b4; font-size: 1.5cqw; }
.cv-browser-body { position: relative; height: 30cqw; background: linear-gradient(160deg, #46566b, #1d2430 70%); }
.cv-popup { position: absolute; top: 1.4cqw; right: 2cqw; width: 24cqw; padding: 2cqw; border-radius: 1.6cqw; background: #fff; color: #17151c; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .45); font-size: 1.6cqw; }
.cv-popup b { display: block; font-size: 1.9cqw; }
.cv-popup span { display: block; margin-top: 1.4cqw; padding: 1cqw; border-radius: 1cqw; background: #e8287c; color: #fff; font-weight: 700; text-align: center; }
.cv-options { display: grid; gap: 2cqw; justify-items: start; }
.cv-options p { padding: 1.4cqw 3cqw; border-radius: 1.6cqw; background: rgba(255, 255, 255, .07); border: .15cqw solid rgba(255, 255, 255, .1); color: #c9c6d0; font-size: 2.6cqw; font-weight: 600; }
.cv-options p.on { background: rgba(232, 40, 124, .22); border-color: #e8287c; color: #fff; }
.cv-options small { margin-left: 1.4cqw; color: #a9a5b4; font-size: 1.7cqw; font-weight: 500; }
.cv-os { display: flex; gap: 3cqw; }
.cv-os p { display: grid; place-items: center; gap: 1.2cqw; width: 18cqw; padding: 3.4cqw 0; border-radius: 2.4cqw; background: rgba(255, 255, 255, .06); border: .15cqw solid rgba(255, 255, 255, .1); color: #c9c6d0; font-size: 2.2cqw; font-weight: 700; }
.cv-os p i { display: grid; place-items: center; font-size: 3.4cqw; font-style: normal; color: #fff; width: 6cqw; height: 6cqw; border-radius: 1.6cqw; background: rgba(255, 255, 255, .12); }
.cv-os p.new { background: rgba(232, 40, 124, .18); border-color: #e8287c; color: #fff; }
.cv-os p.new i { border-radius: 50%; background: #e95420; }

/* Figures of the feature posts. */
.fig-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fig-chips span { padding: 6px 14px; border-radius: 99px; background: var(--mist); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.fig-chips span.on { background: var(--tag-news-bg); border-color: transparent; color: var(--tag-news); }
.sum-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.sum-row:first-of-type { border-top: 0; }
.sum-row b { flex: none; width: 112px; color: var(--muted); font-size: 13px; }
.sum-row a { margin-left: auto; padding: 0 7px; border-radius: 6px; background: var(--mist); color: var(--muted) !important; font-size: 12.5px; text-decoration: none !important; white-space: nowrap; }
.mode-card p { margin-top: 0 !important; }
.mode-card .screen { padding-top: 46px; }
.ahead { position: relative; height: 56px; margin-top: 8px; }
.ahead .bar { position: absolute; left: 0; height: 16px; border-radius: 8px; }
.ahead .played { top: 6px; width: 34%; background: var(--fill); }
.ahead .ready { top: 32px; width: 72%; background: var(--ok-bg); border: 1.5px solid var(--ok); }
.ahead .head { position: absolute; left: 34%; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.ahead-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13.5px; }
.ahead-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.notebook { display: grid; gap: 8px; }
.notebook p { margin-top: 0 !important; padding: 8px 12px; border-radius: 10px; background: var(--mist); font-size: 14.5px; }
.notebook b { display: inline-block; width: 92px; color: var(--muted); font-size: 13px; }

/* Meeting reminder: the island asking to take notes (cover and figure). */
.cv-remind-title { margin-top: 2cqw; font-size: 3.2cqw; font-weight: 700; }
.cv-remind-text { margin-top: .8cqw; color: #b9b4c7; font-size: 2.1cqw; }
.cv-remind-actions { display: flex; gap: 1.2cqw; margin-top: 2.4cqw; font-size: 1.9cqw; font-weight: 600; }
.cv-remind-actions b, .cv-remind-actions span { padding: .9cqw 2cqw; border-radius: 99cqw; }
.cv-remind-actions b { background: #ff5fa2; color: #fff; }
.cv-remind-actions span { background: rgba(255, 255, 255, .1); }
.mi-offer { max-width: 440px; margin: 0 auto; }
.mi-offer strong { display: block; margin-top: 12px; font-size: 17px; }
.mi-offer small { display: block; margin-top: 4px; color: #b9b4c7; font-size: 14px; }
.mi-offer-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.mi-offer-actions b, .mi-offer-actions span { padding: 6px 12px; border-radius: 99px; }
.mi-offer-actions b { background: #ff5fa2; color: #fff; }
.mi-offer-actions span { background: rgba(255, 255, 255, .1); }

/* VietNote trên iPhone và Android */
.cv-phones { display: flex; align-items: flex-end; gap: 6cqw; margin-top: 4cqw; }
.cv-phones figure { display: grid; justify-items: center; gap: 1.6cqw; margin: 0; }
.cv-phones figcaption { color: #b9b4c7; font-size: 1.8cqw; font-weight: 700; }
.cv-phone { position: relative; width: 19cqw; height: 39cqw; padding: .9cqw; border-radius: 3.6cqw; background: #050407; box-shadow: inset 0 0 0 .25cqw #3a3940, 0 3cqw 8cqw rgba(0, 0, 0, .55); }
.cv-phones figure:first-child .cv-phone { transform: rotate(-4deg); }
.cv-phones figure:last-child .cv-phone { transform: rotate(3deg); }
.cv-screen { display: flex; flex-direction: column; gap: .9cqw; height: 100%; padding: 3.6cqw 1.5cqw 1.5cqw; overflow: hidden; border-radius: 2.8cqw; background: #1d1824; font-size: 1.15cqw; }
.cv-cam { position: absolute; top: 1.7cqw; left: 50%; width: 5.6cqw; height: 1.6cqw; margin-left: -2.8cqw; border-radius: 99cqw; background: #000; }
.cv-cam.dot { width: 1.4cqw; height: 1.4cqw; margin-left: -.7cqw; }
.cv-screen h4 { font-size: 1.7cqw; font-weight: 800; }
.cv-chip { align-self: flex-start; padding: .2cqw .9cqw; border-radius: 99cqw; background: rgba(255, 95, 162, .16); color: #ff8fbe; font-size: 1cqw; font-weight: 700; }
.cv-pl { padding: .8cqw 1cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, .06); line-height: 1.4; }
.cv-pl b { display: block; color: #8e8a99; font-size: .95cqw; }
.cv-pl em { display: block; color: #ff8fbe; font-style: normal; }
.cv-recbtn { flex: none; align-self: center; width: 4.6cqw; height: 4.6cqw; margin-top: auto; border-radius: 50%; background: linear-gradient(135deg, #e8287c, #d23acb); box-shadow: 0 0 2cqw rgba(232, 40, 124, .55); }
.cv-todo { display: flex; gap: .8cqw; align-items: flex-start; padding: .7cqw 0; border-bottom: .1cqw solid rgba(255, 255, 255, .08); line-height: 1.35; }
.cv-todo i { flex: none; aspect-ratio: 1; width: 1.3cqw; height: 1.3cqw; margin-top: .1cqw; border-radius: 50%; border: .2cqw solid #ff8fbe; }
.cv-todo i.done { border-color: #5fd08f; background: #5fd08f; }
.cv-todo s { color: #8e8a99; }

.phone-lines { display: grid; gap: 8px; max-width: 420px; margin: 0 auto; }
.phone-lines p { padding: 10px 12px; border-radius: 14px; background: var(--mist); font-size: 14.5px; line-height: 1.45; }
.phone-lines small { display: block; color: var(--faint); font-size: 12px; font-weight: 600; }
.phone-lines em { display: block; color: var(--tag-news); font-style: normal; }
.todo-list { display: grid; max-width: 420px; margin: 0 auto; }
.todo-list p { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.4; }
.todo-list p:last-child { border-bottom: 0; }
.todo-list i { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--tag-news); }
.todo-list i.done { border-color: var(--ok); background: var(--ok); }
.todo-list s { color: var(--faint); }
.todo-list small { display: block; color: var(--muted); font-size: 13px; }
