.af-module { color:var(--text,#28364a); font:inherit; }
.af-module *,.af-form * { box-sizing:border-box; }
.af-head,.af-row,.af-actions,.af-presets,.af-toolbar,.af-pages { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; }
.af-head,.af-row { justify-content:space-between; }
.af-head { margin-bottom:1.35rem; }
.af-module h1 { font-size:1.55rem; line-height:1.2; margin:0; }
.af-module h2 { font-size:1.03rem; margin:0 0 .95rem; }
.af-module p { margin:.45rem 0; }
.af-head p,.af-module small,.af-form small,.af-form [data-clock] { color:var(--muted,#637389); }
@font-face{font-family:AffiliateSolid;src:url('/bio-fonts/fa-solid.woff2') format('woff2');font-display:block}
.af-shopee-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:32px 40px;margin-bottom:24px;border-radius:16px;color:white;background:linear-gradient(135deg,#1e293b,#0f172a)}
.af-shopee-brand{display:flex;align-items:center;gap:16px;min-width:0}
.af-shopee-brand h1{font-weight:700;font-size:17.5px;line-height:1.2;margin:0 0 4px}
.af-shopee-brand p{font-size:11.2px;line-height:1.5;color:#cbd5e1;margin:0}
.af-shopee-bag{display:grid;place-items:center;flex:none;width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#ee4d2d,#f59e0b);font:28px/1 AffiliateSolid}
.af-shopee-hero .af-primary{gap:8px;padding:12px 24px;border:0;border-radius:12px;font-size:14.4px;font-weight:600;background:linear-gradient(135deg,#ee4d2d,#f97316);color:white}
.af-shopee-hero .af-primary::before{content:"";width:14px;height:14px;background:currentColor;mask:url('/icons/plus.svg') center/contain no-repeat}
@media(min-width:960px){#workspace:has(.af-shopee-hero){padding-top:40px;padding-bottom:16px}}
@media(max-width:600px){.af-shopee-hero{padding:24px 20px}}
.af-card { background:var(--panel,#fff); border:1px solid var(--border,#d9dfe8); border-radius:.75rem; padding:1.25rem; margin-bottom:1rem; box-shadow:0 1px 2px #19283f0e; }
.af-row { margin-bottom:.8rem; }
.af-row h2 { margin:0; }
.af-btn,.af-icon,.af-pages button,.af-presets button,.af-toolbar button { display:inline-flex; align-items:center; justify-content:center; font:inherit; cursor:pointer; color:inherit; background:var(--panel,#fff); border:1px solid var(--border,#d4dbe5); border-radius:.35rem; padding:.48rem .85rem; text-decoration:none; }
.af-primary { color:#fff; background:#1676ec; border-color:#1676ec; }
.af-danger { color:#fff; background:#b52434; border-color:#b52434; }
.af-warn,.af-error,.af-field b { color:#b52434; }
.af-plain { font:inherit; color:#1767b4; cursor:pointer; padding:.3rem 0; border:0; background:transparent; }
.af-icon { font-size:1rem; padding:.3rem .5rem; }
.af-form [hidden] { display:none; }
.af-module button:disabled,.af-form button:disabled { opacity:.55; cursor:default; }
.af-btn:focus-visible,.af-icon:focus-visible,.af-module summary:focus-visible,.af-form :focus-visible { outline:2px solid #267beb; outline-offset:2px; }
.af-columns { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(235px,1fr); gap:1rem; align-items:start; }
.af-field { display:flex; flex-direction:column; gap:.4rem; margin-bottom:1rem; font-weight:600; }
.af-field small,.af-file small,.af-form [data-clock] { font-weight:400; font-size:.8rem; }
.af-field input,.af-field select,.af-field textarea,.af-row input,.af-row select,.af-toolbar select { width:100%; font:inherit; padding:.6rem .75rem; color:inherit; border:1px solid var(--border,#cfd7e0); border-radius:.4rem; background:var(--panel,#fff); }
.af-field textarea { min-height:5rem; resize:vertical; }
.af-row input,.af-row select { width:auto; }
.af-row [data-filter] { display:flex; gap:.65rem; flex-wrap:wrap; align-items:end; margin:.75rem 0; }
.af-row [data-filter] label { display:grid; gap:.25rem; }
.af-meta { border-block:1px solid var(--border,#dce2ea); padding:.85rem 0; }
.af-module summary { cursor:pointer; font-weight:600; }
.af-meta[open] summary { margin-bottom:1rem; }
.af-meta-toggle{display:block;width:100%;margin:1rem 0;padding:1rem;border:1px solid var(--border,#dce2ea);background:transparent;color:inherit;text-align:start;cursor:pointer;border-radius:.65rem}
.af-meta-toggle small,.af-meta-toggle strong{display:block}
#af-short-meta[hidden]{display:none!important}
#af-short-meta output{float:right;font-variant-numeric:tabular-nums}
#af-short-meta .af-drop{padding:1rem;border:1px dashed var(--border,#bec9d7);border-radius:.5rem;cursor:pointer}
#af-short-meta .af-drop.is-dragging{border-color:#1677ff;background:#e9f3ff}
.af-stats { display:grid; gap:.8rem; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }
.af-stats strong { font-size:1.4rem; display:block; margin-top:.3rem; }
.af-scroll { overflow:auto; }
.af-scroll table { width:100%; border-collapse:collapse; text-align:left; }
.af-scroll td,.af-scroll th { padding:.75rem .65rem; border-bottom:1px solid var(--border,#e0e5ed); vertical-align:middle; }
.af-scroll th { font-weight:600; color:var(--muted,#61738b); font-size:.8rem; white-space:nowrap; }
.af-scroll td a:not(.af-btn) { color:#1572d9; overflow-wrap:anywhere; }
.af-empty { text-align:center; padding:2rem; }
.af-scroll .af-empty { padding:2rem; }
.af-pages { justify-content:flex-end; margin-top:1rem; }
.af-pages:empty { display:none; }
.af-module [data-post-range]{margin:0 0 1rem}
.af-history-entry {padding:.8rem 0;border-bottom:1px solid var(--border,#dce2ea);overflow-wrap:anywhere}
.af-history-entry small {color:var(--muted,#637389)}
.app-modal [data-load-history][hidden] {display:none}
.af-field input[type=file] { border:1px dashed var(--border,#bdc9d8); padding:1rem; }
.af-file { margin-bottom:1rem; }
.af-file .af-field { margin-bottom:.2rem; }
.af-file [data-upload-status] { display:block; font-size:.8rem; margin:.25rem 0; }
.af-file img,.af-file video { max-width:100%; max-height:180px; }
.af-editor { min-height:230px; padding:1rem; line-height:1.55; overflow-wrap:anywhere; background:var(--panel,#fff); border:1px solid var(--border,#d9dfe8); border-radius:0 0 .35rem .35rem; }
.af-editor:empty:before { content:'Nhập hoặc dán nội dung bài viết…'; color:var(--muted,#637389); pointer-events:none; }
.af-editor img,.af-editor video { max-width:100%;max-height:340px; }
.af-editor table { border-collapse:collapse; }
.af-editor td,.af-editor th { border:1px solid var(--border,#dce2ea);padding:.4rem;min-width:36px; }
.af-video-row { display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.5rem 0; }
.af-toolbar input[type=file] { max-width:145px; }
.af-toolbar { gap:.15rem; padding:.25rem; border:1px solid var(--border,#d9dfe8); border-bottom:0; border-radius:.35rem .35rem 0 0; }
.af-toolbar button,.af-toolbar select,.af-presets button { width:auto; font-size:.83rem; padding:.35rem .45rem; }
.af-toolbar input[type=color] { width:26px; height:26px; }
.af-presets { gap:.25rem; }
.af-actions { justify-content:flex-end; }
.af-form .af-error:not(:empty) { padding:.6rem; }
@media(max-width:820px){.af-columns{grid-template-columns:minmax(0,1fr)}.af-card{padding:1rem}.af-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.af-row input{max-width:100%}}
