/* ds-allow-hardcode:start — giao diện trang web; màu chủ đạo khai báo một lần ở :root */
:root {
  --c-bg: #fbf6f1; --c-surface: #ffffff; --c-soft: #f4ebe3; --c-ink: #2b1d1f; --c-muted: #6f5d5a;
  --c-line: #eadfd6; --c-brand: #9b2c3f; --c-brand-ink: #ffffff; --c-brand-soft: #f6e3e6; --c-gold: #b8894a;
  --c-ok: #2f7a4f; --c-ok-soft: #e3f2e8; --c-warn: #a5641a; --c-warn-soft: #fbefdc; --c-bad: #b3261e; --c-bad-soft: #fbe4e2;
  --f-ui: 'Be Vietnam Pro', system-ui, sans-serif; --f-display: 'Cormorant Garamond', Georgia, serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(43,29,31,.06), 0 2px 8px rgba(43,29,31,.05);
  --sh-2: 0 10px 30px rgba(43,29,31,.10);
  --w: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-ui); color: var(--c-ink); background: var(--c-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--c-brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--c-muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }

/* Header */
.site-h { position: sticky; top: 0; z-index: 30; background: rgba(251, 246, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.site-h .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font-family: var(--f-display); font-size: 24px; font-weight: 700; }
.logo img { width: 30px; height: 30px; }
.logo { white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--c-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--c-brand); }
.h-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; padding: 8px; margin-left: auto; }
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--c-surface); flex-direction: column; padding: 16px 20px; gap: 14px; border-bottom: 1px solid var(--c-line); margin: 0; }
  .nav.open { display: flex; }
  .burger { display: block; }
  .h-right { margin-left: 0; }
  .h-right .btn-ghost { display: none; }
  .logo { font-size: 20px; }
  .site-h .wrap { gap: 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r-pill); padding: 10px 20px; font: 600 15px/1.2 var(--f-ui); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-brand); color: var(--c-brand-ink); box-shadow: var(--sh-1); }
.btn-primary:hover { background: #882637; }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn-soft { background: var(--c-brand-soft); color: var(--c-brand); }
.btn-danger { background: var(--c-bad-soft); color: var(--c-bad); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: var(--r-sm); cursor: pointer; color: var(--c-muted); }
.icon-btn:hover { background: var(--c-soft); color: var(--c-ink); }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--c-surface); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--c-brand); margin-bottom: 10px; }
.h2 { font-family: var(--f-display); font-size: clamp(32px, 4vw, 46px); font-weight: 600; }
.lead { font-size: 18px; color: var(--c-muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--f-display); font-size: clamp(42px, 6vw, 72px); font-weight: 600; letter-spacing: -.02em; }
.hero h1 em { color: var(--c-brand); font-style: italic; }
.hero .quote { font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--c-muted); margin: 0 0 14px; }
.trial-note { font-size: 14px; color: var(--c-muted); margin-top: 14px; }
.trial-note b { color: var(--c-ink); }
.hero-art { position: relative; height: 520px; }
.hero-art .t-thumb { position: absolute; width: 230px; box-shadow: var(--sh-2); }
.hero-art .t-thumb:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.hero-art .t-thumb:nth-child(2) { left: 30%; top: 0; z-index: 2; }
.hero-art .t-thumb:nth-child(3) { right: 0; top: 70px; transform: rotate(6deg); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { height: 380px; } .hero-art .t-thumb { width: 170px; } }

/* Thumbnail mẫu thiệp (dựng bằng CSS từ biến mẫu) */
.t-thumb { --bg: #eee; --paper: #fff; --ink: #333; --accent: #555; --accent2: #aaa; border-radius: var(--r-md); overflow: hidden; background: var(--paper); color: var(--ink); aspect-ratio: 9/14; position: relative; text-align: center; padding: 26px 16px 0; display: flex; flex-direction: column; align-items: center; isolation: isolate; }
.t-thumb .tt-orn { position: absolute; top: 0; width: 46px; z-index: -1; opacity: .85; }
.t-thumb .tt-orn.l { left: -4px; } .t-thumb .tt-orn.r { right: -4px; transform: scaleX(-1); }
.t-thumb .tt-k { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); opacity: .8; }
.t-thumb .tt-n { font-size: 22px; line-height: 1.15; color: var(--accent); margin: 6px 0 12px; padding: 0 26px; }
.t-thumb .tt-hy { font-size: 34px; color: var(--accent2); background: var(--accent); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; font-family: serif; }
.t-thumb .tt-p { width: 78%; flex: 1; background: #fff; padding: 6px 6px 18px; box-shadow: 0 6px 14px rgba(0,0,0,.12); transform: rotate(-2deg); margin-bottom: -10px; }
.t-thumb .tt-p img { width: 100%; height: 100%; object-fit: cover; }
.t-thumb .tt-d { position: absolute; bottom: 10px; left: 0; right: 0; font-size: 12px; letter-spacing: .3em; color: var(--accent); background: linear-gradient(transparent, var(--paper) 40%); padding-top: 18px; }
.t-thumb.songhy, .t-thumb.cloud { border: 4px double var(--accent2); }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px; }
.tpl-card { text-decoration: none; color: var(--c-ink); display: block; }
.tpl-card .t-thumb { transition: transform .25s, box-shadow .25s; box-shadow: var(--sh-1); }
.tpl-card:hover .t-thumb { transform: translateY(-6px); box-shadow: var(--sh-2); }
.tpl-meta { margin-top: 12px; }
.tpl-meta b { display: block; font-size: 15px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--c-soft); color: var(--c-muted); }
.badge { position: absolute; top: 10px; right: 10px; z-index: 3; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--c-brand); color: var(--c-brand-ink); }
.badge.new { background: var(--c-gold); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 24px 0 36px; }
.chip { border: 1px solid var(--c-line); background: var(--c-surface); border-radius: var(--r-pill); padding: 8px 16px; font: 500 14px var(--f-ui); cursor: pointer; color: var(--c-ink); }
.chip.on { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }

/* Steps / features */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; counter-reset: s; }
.step { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 28px; position: relative; }
.step .num { font-family: var(--f-display); font-size: 54px; line-height: 1; color: var(--c-brand); opacity: .9; }
.step h3 { font-size: 20px; margin-top: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.rev > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b2c3f' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature.rev > :first-child { order: 0; } }

.mock { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-2); }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--c-line); font-size: 14px; }
.mock-row:last-child { border: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 16px; }
.stat b { display: block; font-family: var(--f-ui); font-weight: 700; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--c-muted); }
.stat.ok b { color: var(--c-ok); } .stat.bad b { color: var(--c-bad); } .stat.warn b { color: var(--c-warn); } .stat.brand b { color: var(--c-brand); }

.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.langs span { padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-surface); border: 1px solid var(--c-line); font-size: 14px; }

.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 36px; }
.review { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px; }
.review p { margin: 10px 0 0; font-size: 15px; }
.review .who { display: flex; justify-content: space-between; font-size: 13px; color: var(--c-muted); }
.review .who b { color: var(--c-ink); font-size: 15px; }
.stars { color: var(--c-gold); letter-spacing: 2px; }

.faq { max-width: 780px; margin: 36px auto 0; }
.faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--c-brand); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 18px; color: var(--c-muted); }

.cta-band { background: var(--c-ink); color: var(--c-bg); border-radius: var(--r-lg); padding: 52px; text-align: center; }
.cta-band .h2 { color: var(--c-bg); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 32px; }
.post-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--c-ink); display: flex; flex-direction: column; }
.post-card .cov { aspect-ratio: 16/9; background: var(--c-soft); display: grid; place-items: center; font-family: var(--f-display); font-size: 40px; color: var(--c-brand); }
.post-card .bd { padding: 18px 20px 22px; }
.post-card h3 { font-size: 18px; }
.article { max-width: 760px; margin: 0 auto; font-size: 17px; }
.article h1 { font-family: var(--f-display); font-size: clamp(34px, 5vw, 50px); }
.article h2 { font-size: 24px; margin-top: 1.6em; }
.article li { margin-bottom: 6px; }

/* Footer */
.site-f { background: var(--c-ink); color: #ddd3cd; padding: 56px 0 28px; margin-top: 40px; font-size: 14px; }
.site-f .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.site-f .f-contact > span { display: block; padding: 3px 0; }
.site-f .f-contact .js-phone { display: inline; color: var(--c-bg); font-weight: 600; padding: 0; }
@media (max-width: 1000px) { .site-f .cols { grid-template-columns: 1fr 1fr 1fr; } .site-f .cols > :first-child { grid-column: 1 / -1; } }
.site-f h4 { color: var(--c-bg); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-f a { color: inherit; text-decoration: none; display: block; padding: 3px 0; }
.site-f a:hover { color: var(--c-bg); }
.site-f .logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-bg); margin-bottom: 10px; }
.site-f .f-co { color: var(--c-bg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.site-f .copy .f-co { display: inline; padding: 0; }
.site-f .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; }
@media (max-width: 760px) { .site-f .cols { grid-template-columns: 1fr 1fr; } }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .lbl { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.input, .field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); font: 15px var(--f-ui); color: var(--c-ink); }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid color-mix(in srgb, var(--c-brand) 30%, transparent); border-color: var(--c-brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; padding: 6px 0; }
.switch input { width: 18px; height: 18px; accent-color: var(--c-brand); }
.err { color: var(--c-bad); font-size: 14px; min-height: 20px; }

.card-box { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1); }
.auth { max-width: 440px; margin: 56px auto; }
.tabs { display: flex; background: var(--c-soft); border-radius: var(--r-pill); padding: 4px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: var(--r-pill); font: 600 14px var(--f-ui); cursor: pointer; color: var(--c-muted); }
.tabs button.on { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--sh-1); }

/* App (dashboard) */
.app-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin: 36px 0 24px; }
.app-head h1 { font-family: var(--f-display); font-size: 40px; margin: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.my-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.my-card .top { display: flex; gap: 14px; padding: 18px; }
.my-card .top .t-thumb { width: 84px; flex: none; padding: 10px 6px 0; }
.my-card .top .t-thumb .tt-n { font-size: 13px; margin: 2px 0 4px; }
.my-card .top .t-thumb .tt-k, .my-card .top .t-thumb .tt-d { display: none; }
.my-card .top .t-thumb .tt-hy { width: 26px; height: 26px; font-size: 16px; }
.my-card .top .t-thumb .tt-orn { display: none; }
.my-card .top .t-thumb .tt-n { padding: 0; }
.mini-tpls .t-thumb .tt-n { padding: 0 10px; }
.mini-tpls .t-thumb .tt-orn { width: 30px; }
.my-card h3 { font-size: 18px; margin: 0 0 4px; }
.my-card .nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); }
.my-card .nums div { padding: 10px; text-align: center; font-size: 12px; color: var(--c-muted); }
.my-card .nums b { display: block; font-size: 18px; color: var(--c-ink); }
.my-card .acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--c-line); background: var(--c-bg); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); }
.pill.trial { background: var(--c-warn-soft); color: var(--c-warn); }
.pill.paid { background: var(--c-ok-soft); color: var(--c-ok); }
.pill.expired { background: var(--c-bad-soft); color: var(--c-bad); }
.pill.pending { background: var(--c-soft); color: var(--c-muted); }
.pill.yes { background: var(--c-ok-soft); color: var(--c-ok); }
.pill.no { background: var(--c-bad-soft); color: var(--c-bad); }
.empty { text-align: center; padding: 64px 20px; border: 2px dashed var(--c-line); border-radius: var(--r-lg); }

/* Table */
.tbl-wrap { overflow-x: auto; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); background: var(--c-bg); position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #faf4ef; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.toolbar .input { width: auto; flex: 1; min-width: 180px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(30,20,20,.5); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.on { display: flex; }
.modal-box { background: var(--c-surface); border-radius: var(--r-lg); width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 26px; box-shadow: var(--sh-2); }
.modal-box h3 { font-family: var(--f-display); font-size: 28px; }
.modal-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--c-ink); color: var(--c-bg); padding: 12px 20px; border-radius: var(--r-pill); font-size: 14px; z-index: 90; opacity: 0; transition: .25s; pointer-events: none; max-width: 90vw; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: var(--c-bad); }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(360px, 460px) 1fr; height: calc(100vh - 64px); }
.ed-side { overflow-y: auto; border-right: 1px solid var(--c-line); background: var(--c-surface); }
.ed-top { position: sticky; top: 0; z-index: 5; background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: 12px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-top .t { font-weight: 700; flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc { border-bottom: 1px solid var(--c-line); }
.acc > summary { padding: 15px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.acc > summary::after { content: '\203A'; transform: rotate(90deg); transition: .2s; color: var(--c-muted); font-size: 20px; line-height: 1; }
.acc[open] > summary::after { transform: rotate(-90deg); }
.acc .bd { padding: 4px 18px 18px; }
.ed-prev { background: var(--c-soft); display: flex; flex-direction: column; align-items: center; padding: 18px; gap: 12px; overflow: hidden; }
.device { width: 400px; max-width: 100%; flex: 1; border-radius: 34px; border: 10px solid var(--c-ink); overflow: hidden; background: var(--c-surface); box-shadow: var(--sh-2); }
.device iframe { width: 100%; height: 100%; border: 0; display: block; }
.mini-tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-tpls button { border: 2px solid transparent; border-radius: var(--r-md); padding: 0; background: none; cursor: pointer; text-align: center; font-size: 11px; color: var(--c-muted); }
.mini-tpls button.on { border-color: var(--c-brand); }
.mini-tpls .t-thumb { padding: 12px 6px 0; border-radius: 10px; }
.mini-tpls .t-thumb .tt-n { font-size: 13px; } .mini-tpls .t-thumb .tt-k, .mini-tpls .t-thumb .tt-d { display: none; }
.mini-tpls .t-thumb .tt-hy { width: 26px; height: 26px; font-size: 16px; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photos .ph { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--c-soft); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos .ph button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.photos .ph .mv { left: 4px; right: auto; }
.upl { border: 2px dashed var(--c-line); border-radius: var(--r-sm); display: grid; place-items: center; aspect-ratio: 1; cursor: pointer; color: var(--c-muted); font-size: 12px; text-align: center; background: var(--c-bg); }
.upl:hover { border-color: var(--c-brand); color: var(--c-brand); }
.cover-pick { display: flex; gap: 12px; align-items: center; }
.cover-pick img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--r-sm); background: var(--c-soft); }
.tl-row { display: grid; grid-template-columns: 90px 1fr 32px; gap: 8px; margin-bottom: 8px; }
.saving { font-size: 12px; color: var(--c-muted); }
@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; height: auto; }
  .ed-prev { display: none; }
  .ed-prev.show { display: flex; position: fixed; inset: 64px 0 0; z-index: 20; }
}

/* Pricing */
.price-card { max-width: 460px; margin: 0 auto; text-align: center; }
.price { font-family: var(--f-display); font-size: 64px; font-weight: 700; color: var(--c-brand); line-height: 1; margin: 14px 0; }
.price small { font-size: 18px; color: var(--c-muted); font-family: var(--f-ui); font-weight: 500; }

/* Tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.tool-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; text-decoration: none; color: var(--c-ink); display: flex; flex-direction: column; gap: 8px; transition: .2s; }
.tool-card:hover { border-color: var(--c-brand); transform: translateY(-3px); }
.tool-card .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-brand-soft); color: var(--c-brand); display: grid; place-items: center; }
.out { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 18px; white-space: pre-wrap; font-size: 15px; }
.plan-phase { margin-top: 22px; }
.plan-phase h3 { font-family: var(--f-display); font-size: 26px; margin-bottom: 6px; }
.plan-item { display: flex; gap: 12px; padding: 12px 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); margin-bottom: 8px; cursor: pointer; }
.plan-item input { width: 18px; height: 18px; accent-color: var(--c-brand); margin-top: 3px; flex: none; }
.plan-item.done .tx { text-decoration: line-through; color: var(--c-muted); }
.plan-item .tip { font-size: 13px; color: var(--c-muted); }
.progress { height: 10px; background: var(--c-soft); border-radius: var(--r-pill); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--c-brand); transition: width .3s; }
.wish-list { display: grid; gap: 10px; margin-top: 18px; }
.wish-item { display: flex; gap: 12px; justify-content: space-between; align-items: start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 14px 16px; }

@media print { .site-h, .site-f, .no-print { display: none !important; } body { background: #fff; } }
/* ds-allow-hardcode:end */
/* ds-allow-hardcode:start — tên trong ảnh thu nhỏ mẫu: một dòng, co theo bề rộng thẻ */
.t-thumb { container-type: inline-size; }
.t-thumb .tt-n { white-space: nowrap; overflow: visible; max-width: 100%; padding: 0 6%; font-size: clamp(11px, 7.4cqi, 20px); word-spacing: .1em; letter-spacing: -.01em; }
/* ds-allow-hardcode:end */
/* ds-allow-hardcode:start — ảnh thu nhỏ theo kiểu mẫu */
.t-thumb.L-royal { background: var(--r-cream); padding-top: 0; }
.t-thumb.L-royal::before { content: ''; display: block; width: calc(100% + 32px); height: 34%; margin: 0 -16px -18% ; background: var(--r-red); border-radius: 0 0 50% 50% / 0 0 22% 22%; flex: none; }
.t-thumb.L-royal .tt-hy { position: relative; z-index: 1; background: var(--r-red); color: var(--r-gold); outline: 3px solid var(--r-cream); }
.t-thumb.L-royal .tt-n { position: relative; z-index: 1; color: var(--r-red); }
.t-thumb.L-royal .tt-orn { display: none; }
.t-thumb.L-royal .tt-p { border-radius: 60px 60px 6px 6px; transform: none; }
.t-thumb.L-royal .tt-p img { border-radius: 54px 54px 2px 2px; }
.t-thumb.H-dark .tt-n, .t-thumb.H-baroque .tt-n { color: var(--accent2); }
.t-thumb.H-dark .tt-k, .t-thumb.H-baroque .tt-k { color: var(--accent2); }
.t-thumb.H-dark .tt-p, .t-thumb.H-baroque .tt-p { transform: none; background: transparent; outline: 2px solid var(--accent2); }
.t-thumb.H-dark .tt-d, .t-thumb.H-baroque .tt-d { color: var(--accent2); }
.t-thumb.H-envelope .tt-p { transform: rotate(-4deg); margin-bottom: 0; flex: 0 0 auto; height: 46%; width: 56%; }
.t-thumb.H-envelope::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 14%; height: 26%; background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 70%, black)); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); z-index: 2; }
.t-thumb.H-arch .tt-p, .t-thumb.H-typo .tt-p { transform: none; border-radius: 80px 80px 6px 6px; }
.t-thumb.H-arch .tt-p img { border-radius: 74px 74px 2px 2px; }
.t-thumb.H-duo .tt-p { transform: rotate(5deg); width: 60%; }
/* ds-allow-hardcode:end */
