/* ===== HX ADMIN • TIN TỨC ===== */
.tt-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tt-kpi .card { padding: 18px 20px; display: grid; gap: 2px; }
.tt-kpi small { color: var(--muted); font-size: 12.5px; }
.tt-kpi b { font-size: 28px; font-family: "Space Grotesk", var(--font, sans-serif); }
.tt-kpi span { color: var(--muted); font-size: 12px; }
.tt-lh { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tt-rows { display: grid; }
.tt-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--soft); }
.tt-th { width: 96px; height: 60px; border-radius: 12px; background: var(--raised); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.tt-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-rt b { display: block; font-size: 14.5px; line-height: 1.4; }
.tt-rm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.tt-rm .muted { display: inline-flex; align-items: center; gap: 4px; }
.tt-rm .pill { background: var(--raised); border: 1px solid var(--raisedb); color: var(--text); }
.tt-st { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tt-st.live { background: rgba(52, 227, 176, .14); color: var(--mint); }
.tt-st.sch { background: rgba(80, 140, 255, .14); color: var(--blue, #3b9bff); }
.tt-st.draft { background: rgba(246, 185, 59, .16); color: #d48806; }
.tt-pin { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; font-size: 11px; font-weight: 700; color: #ff4d8d; vertical-align: 1px; }
.tt-rs { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.tt-rs span { display: inline-flex; align-items: center; gap: 5px; }
.tt-ra { display: flex; gap: 6px; }
.tt-ed { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.tt-ed label:not(.tg) { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.tt-ed label.mt, .tt-ed .tg.mt { margin-top: 14px; }
.tt-ed .tg { margin-bottom: 0; color: var(--text); font-weight: 500; font-size: 13.5px; }
.tt-cover { position: relative; aspect-ratio: 16 / 8; border-radius: 16px; background: var(--raised); border: 1px dashed var(--raisedb); overflow: hidden; display: grid; place-items: center; }
.tt-cover.has { border-style: solid; }
.tt-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: crosshair; }
.tt-cover .ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.tt-cover .fdot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.4); pointer-events: none; }
.tt-cb { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.tt-cb .btn { background: rgba(10, 14, 30, .72); color: #fff; border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.tt-tb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 14px; background: var(--raised); border: 1px solid var(--raisedb); position: sticky; top: 8px; z-index: 2; }
.tt-sep { width: 1px; height: 24px; background: var(--raisedb); margin: 0 4px; }
.tt-doc { margin-top: 12px; min-height: 420px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--inputb); background: var(--input); font-size: 15.5px; line-height: 1.75; outline: none; color: var(--text); }
.tt-doc:focus { border-color: var(--blue); }
.tt-doc h2 { font-size: 19px; margin: 22px 0 6px; }
.tt-doc p { margin: 0 0 12px; }
.tt-doc ul { margin: 0 0 12px; padding-left: 22px; }
.tt-blk { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; margin: 14px 0; border-radius: 14px; background: var(--card-solid); border: 1px dashed var(--raisedb); }
.tt-blk b { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 6px; }
.tt-blk input { width: 100%; border: 1px solid var(--inputb); background: var(--input); color: var(--text); border-radius: 10px; height: 36px; padding: 0 10px; font-size: 13px; }
.tt-bi { width: 150px; height: 86px; border-radius: 10px; background: #222; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.tt-bi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-bi.tk { background: linear-gradient(135deg, #25f4ee, #000 45%, #fe2c55); }
.tt-bi.vid::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; background: rgba(0, 0, 0, .35); border-radius: 10px; }
.tt-blk.alb { grid-template-columns: minmax(0, 1fr) auto; }
.tt-blk.alb > .tt-alb { grid-column: 1 / -1; }
.tt-alb { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-ai { position: relative; width: 84px; height: 60px; border-radius: 8px; overflow: hidden; cursor: grab; }
.tt-ai img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tt-ai button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; cursor: pointer; }
.tt-add { width: 60px; height: 60px; border-radius: 8px; border: 1px dashed var(--raisedb); display: grid; place-items: center; font-size: 24px; color: var(--muted); cursor: pointer; margin: 0 !important; }
.tt-dcp { margin-top: 14px; padding: 14px; border-radius: 14px; background: #313338; color: #dbdee1; font-size: 13.5px; }
.tt-dch { display: flex; align-items: center; gap: 8px; }
.tt-dch b { color: #fff; }
.tt-dch small { color: #949ba4; font-size: 11px; }
.tt-dca { width: 32px; height: 32px; border-radius: 50%; background: #5865f2 center/cover; }
.tt-bot { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; }
.tt-dcm { margin: 6px 0 8px 40px; }
.tt-at { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 4px; padding: 0 3px; }
.tt-emb { margin-left: 40px; padding: 12px 14px; border-radius: 6px; background: #2b2d31; border-left: 4px solid #ff4d8d; display: grid; gap: 6px; }
.tt-emb small { color: #b5bac1; font-size: 11px; font-weight: 600; }
.tt-emb b { color: #00a8fc; font-size: 14.5px; }
.tt-emb p { margin: 0; color: #dbdee1; font-size: 13px; line-height: 1.5; }
.tt-ei { display: block; margin-top: 4px; }
.tt-ei img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; display: block; }
.tt-dca { overflow: hidden; }
.tt-dca img { width: 100%; height: 100%; object-fit: cover; }
.tt-embb { color: #fff !important; font-size: 13px !important; }
.tt-dcb { display: flex; gap: 8px; margin: 8px 0 0 40px; }
.tt-dcb span { background: #4e5058; color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
@media (max-width: 1100px) { .tt-ed { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .tt-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-row { grid-template-columns: 72px minmax(0, 1fr); }
  .tt-th { width: 72px; height: 48px; }
  .tt-rs, .tt-ra { grid-column: 2; }
  .tt-blk { grid-template-columns: minmax(0, 1fr) auto; }
  .tt-blk > span:first-child { grid-column: 1 / -1; width: 100%; height: 120px; }
}
.tt-hbtn { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tt-search { height: 42px !important; min-width: 240px; }
.tt-dcerr { display: inline-flex; align-items: center; gap: 4px; color: var(--redt, #ff6e6e); }
.tt-h1 { margin-top: 10px; }
.tt-saved { font-size: 12.5px; }
.tt-hint { font-size: 12px; margin-top: 6px; }
.tt-ct { margin-bottom: 10px; }
.tt-sum { min-height: 64px !important; }
.tt-up { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.tt-up .hv-bar { flex: 1; }
.tt-livenote { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; }
.tt-pub { margin-top: 12px; }
.tt-go { width: 100%; justify-content: center; margin-top: 14px; }
.tt-go2 { width: 100%; justify-content: center; margin-top: 8px; }
.tt-tgh { border: 0 !important; padding-top: 0 !important; }
.tt-tgh span b { display: inline-flex; align-items: center; gap: 6px; }
.tt-dcalert { margin-top: 12px; }
.tt-doc blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid #ff4d8d; background: var(--raised); border-radius: 8px; }
.tt-doc hr { border: 0; height: 1px; background: var(--raisedb); margin: 18px 0; }
.tt-doc a { color: #ff4d8d; }
.tt-doc:empty::before { content: "Viết nội dung bài ở đây…"; color: var(--muted); }
.tt-blk small { display: block; margin-top: 4px; font-size: 11.5px; word-break: break-all; }
.tt-pv h2 { margin: 10px 0 6px; font-size: 24px; }
.tt-pvc { width: 100%; border-radius: 14px; margin: 12px 0; display: block; }
.tt-pvb { font-size: 15px; line-height: 1.75; }
.tt-pvb img { max-width: 100%; border-radius: 12px; display: block; }
.tt-pvb figure { margin: 14px 0; }
.tt-pvb figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.tt-pva { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tt-pva img { aspect-ratio: 4 / 3; object-fit: cover; }
.tt-pvv { aspect-ratio: 16 / 9; border-radius: 12px; background: #111; color: #fff; display: grid; place-items: center; font-weight: 700; }
.tt-pvb blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid #ff4d8d; background: var(--raised); border-radius: 8px; }
/* ===== HẾT ===== */

/* ---- soạn bài kiểu báo (11/2026) ---- */
.tt-grp { display: inline-flex; gap: 2px; align-items: center; padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--raisedb); }
.tt-grp:last-child { border-right: 0; }
.tt-grp.ins { gap: 6px; }
.tt-doc h3 { font-size: 16.5px; margin: 18px 0 6px; }
.tt-doc ol { margin: 0 0 12px; padding-left: 24px; }
.tt-doc mark { background: #ffd6e6; color: inherit; border-radius: 3px; padding: 0 2px; }
.tt-doc u { text-underline-offset: 3px; }
.tt-blk { grid-template-columns: 150px minmax(0, 1fr) auto; }
.tt-bctl { display: flex; flex-direction: column; gap: 4px; align-self: start; }
.tt-wseg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tt-wseg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--inputb); background: var(--input); color: var(--text); font-size: 12px; cursor: pointer; }
.tt-wseg button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.wi { width: 18px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; opacity: .8; }
.wi::after { content: ""; position: absolute; top: 2px; bottom: 2px; background: currentColor; border-radius: 1px; }
.wi.full::after { left: 1px; right: 1px; }
.wi.mid::after { left: 4px; right: 4px; }
.wi.left::after { left: 1px; width: 6px; }
.wi.right::after { right: 1px; width: 6px; }
.tt-blk.img.w-mid .tt-bi { width: 120px; justify-self: center; }
.tt-blk.img.w-left .tt-bi, .tt-blk.img.w-right .tt-bi { width: 90px; height: 70px; }
.tt-blk.img.w-right .tt-bi { justify-self: end; }
.tt-blk.box, .tt-blk.cta { grid-template-columns: minmax(0, 1fr) auto; border-style: solid; }
.tt-boxe b select { margin-left: auto; height: 30px; border-radius: 9px; border: 1px solid var(--inputb); background: var(--input); color: var(--text); font-size: 12.5px; padding: 0 8px; }
.tt-boxe b, .tt-ctae b { display: flex; }
.tt-boxe textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--inputb); background: var(--input); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; resize: vertical; }
.tt-blk.box.t-info { background: rgba(70, 130, 255, .12); border-color: rgba(70, 130, 255, .45); }
.tt-blk.box.t-warn { background: rgba(255, 170, 0, .12); border-color: rgba(255, 170, 0, .5); }
.tt-blk.box.t-ok { background: rgba(40, 190, 110, .12); border-color: rgba(40, 190, 110, .45); }
.tt-blk.box.t-hot { background: rgba(255, 77, 141, .12); border-color: rgba(255, 77, 141, .45); }
.tt-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }
.tt-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tt-foot b { font-weight: 600; color: var(--text); white-space: nowrap; }
.tt-pvb h3 { font-size: 17px; margin: 16px 0 6px; }
.tt-pvb figure.w-mid { max-width: 72%; margin-left: auto; margin-right: auto; }
.tt-pvb figure.w-left { float: left; width: 46%; margin: 4px 16px 10px 0; }
.tt-pvb figure.w-right { float: right; width: 46%; margin: 4px 0 10px 16px; }
.tt-pvb h2, .tt-pvb h3, .tt-pvb hr, .tt-pvb .tt-note, .tt-pvb figure.w-full { clear: both; }
.tt-pvb::after { content: ""; display: block; clear: both; }
.tt-pvb mark { background: #ffd6e6; color: inherit; }
.tt-note { margin: 14px 0; padding: 12px 16px; border-radius: 14px; border: 1px solid; }
.tt-note b { display: block; margin-bottom: 2px; }
.tt-note p { margin: 0; }
.tt-note.n-info { background: #eef5ff; border-color: #cfe0ff; color: #1d3b6e; }
.tt-note.n-warn { background: #fff7e6; border-color: #ffe1a6; color: #6b4300; }
.tt-note.n-ok { background: #ebfaf1; border-color: #bfead0; color: #155c33; }
.tt-note.n-hot { background: #fff0f5; border-color: #ffc9dc; color: #7a0a3a; }
.tt-pvcta { text-align: center; }
@media (max-width: 760px) {
  .tt-two { grid-template-columns: minmax(0, 1fr); }
  .tt-grp { border-right: 0; padding-right: 0; }
}
