:root {
  --mint: #3ECF8E;
  --mint-dark: #28b475;
  --mint-soft: #ecfdf5;
  --slate: #1e293b;
  --slate-2: #334155;
  --bg: #f8fafc;
  --card: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --danger: #ef4444;
  --warn: #f59e0b;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
[data-theme="dark"] {
  --mint: #3ECF8E;
  --mint-dark: #34d399;
  --mint-soft: rgba(62, 207, 142, 0.14);
  --slate: #f1f5f9;
  --slate-2: #cbd5e1;
  --bg: #0b1120;
  --card: #111827;
  --surface-2: #1e293b;
  --border: #1f2937;
  --text: #f8fafc;
  --muted: #94a3b8;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .topbar { background: rgba(17, 24, 39, 0.9); }
[data-theme="dark"] .nav-pills { background: var(--surface-2); }
[data-theme="dark"] .nav-pill.active { background: var(--card); color: var(--text); }
[data-theme="dark"] button,
[data-theme="dark"] .btn,
[data-theme="dark"] .hero-input,
[data-theme="dark"] .stat-box,
[data-theme="dark"] .g-card,
[data-theme="dark"] .idea-card,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .filter-toolbar,
[data-theme="dark"] .lightbox,
[data-theme="dark"] .settings-box,
[data-theme="dark"] select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="password"] {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] button:hover,
[data-theme="dark"] .btn:hover { background: var(--surface-2); border-color: #334155; }
[data-theme="dark"] .btn-primary { background: var(--mint); border-color: var(--mint); color: #052e16; }
[data-theme="dark"] .btn-primary:hover { background: var(--mint-dark); color: #022c22; }
[data-theme="dark"] .hint-chip,
[data-theme="dark"] .filter-chip,
[data-theme="dark"] .search-box input,
[data-theme="dark"] .badge,
[data-theme="dark"] .lb-box,
[data-theme="dark"] th {
  background: var(--surface-2);
  color: var(--slate-2);
  border-color: #334155;
}
[data-theme="dark"] .filter-chip.active { background: var(--mint); border-color: var(--mint); color: #052e16; }
[data-theme="dark"] .badge.mint { background: var(--mint-soft); color: #6ee7b7; }
[data-theme="dark"] .g-foot,
[data-theme="dark"] .idea-actions { border-top-color: var(--border); }
[data-theme="dark"] .idea-hook { color: #a7f3d0; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--mint), #10b981);
  display: flex; align-items: center; justify-content: center;
  color: #064e3b; font-weight: 800; font-size: 16px;
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; color: var(--slate); }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav-pills { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; }
.nav-pill {
  border: none; background: transparent; padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.nav-pill.active { background: #fff; color: var(--slate); box-shadow: 0 1px 4px rgba(15,23,42,0.08); }
.top-actions { display: flex; gap: 8px; align-items: center; }

button, .btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 9px 15px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
button:hover, .btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--mint); border-color: var(--mint); color: #052e16; }
.btn-primary:hover { background: var(--mint-dark); border-color: var(--mint-dark); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f5f9; color: var(--text); }

.container { max-width: 1360px; margin: 0 auto; padding: 24px 28px 60px; }

.hero-input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.hero-title { font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.url-bar { display: flex; gap: 10px; align-items: center; }
.url-bar input {
  flex: 1; padding: 13px 16px; border: 1.5px solid #cbd5e1; border-radius: 11px;
  font-size: 14px; outline: none; transition: border-color 0.15s;
}
.url-bar input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.15); }
.url-bar .btn-primary { padding: 13px 22px; font-size: 14px; border-radius: 11px; white-space: nowrap; }
.source-hints {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px;
}
.hint-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.hint-chip {
  font-size: 11.5px; font-weight: 600; color: var(--slate-2);
  background: #f1f5f9; border: 1px solid #e2e8f0;
  padding: 4px 10px; border-radius: 999px;
}
.filter-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px;
}
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  border: 1px solid var(--border); background: #f8fafc; color: var(--slate-2);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.filter-chip:hover { background: #eef2f7; }
.filter-chip.active {
  background: var(--slate); border-color: var(--slate); color: #fff;
}
.search-box { position: relative; min-width: 240px; flex: 0 1 320px; }
.search-box input[type="text"] {
  width: 100%; padding: 8px 14px 8px 36px !important; border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; background: #f8fafc; outline: none;
}
.search-box input:focus { background: #fff; border-color: var(--mint); }
.search-box::before {
  content: "🔍"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 12px; opacity: 0.7; pointer-events: none;
}
.g-media-badge {
  position: absolute; bottom: 10px; right: 10px; background: rgba(15, 23, 42, 0.76);
  color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.extra-opts {
  display: none; grid-template-columns: 180px 1fr auto; gap: 10px; margin-top: 12px;
  padding-top: 12px; border-top: 1px dashed var(--border); align-items: center;
}
.extra-opts.open { display: grid; }
select, input[type="text"], input[type="password"] {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; width: 100%;
}

.status-banner { padding: 11px 15px; border-radius: 10px; margin-top: 12px; font-size: 13px; display: none; font-weight: 500; }
.status-banner.show { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-banner.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.status-banner.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-banner.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-box {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-val { font-size: 26px; font-weight: 800; color: var(--slate); letter-spacing: -0.02em; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.section-title { font-size: 18px; font-weight: 800; color: var(--slate); margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.g-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  cursor: pointer; transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
  display: flex; flex-direction: column;
}
.g-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08); border-color: #cbd5e1; }
.g-thumb-wrap { position: relative; width: 100%; height: 185px; background: #f1f5f9; overflow: hidden; }
.g-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumb-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff; display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; font-weight: 700; font-size: 14px;
}
.g-platform-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(15, 23, 42, 0.78);
  color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.g-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.g-title { font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--slate); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }

.badge { padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 700; display: inline-block; }
.badge.mint { background: var(--mint-soft); color: #065f46; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.err { background: #fee2e2; color: #991b1b; }

.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(410px, 1fr)); gap: 16px; }
.idea-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.idea-hook { background: var(--mint-soft); border-left: 3px solid var(--mint); padding: 9px 12px; border-radius: 6px; font-size: 13px; color: #064e3b; font-weight: 600; }
.idea-list { margin: 4px 0; padding-left: 18px; font-size: 13px; color: var(--slate-2); line-height: 1.5; }
.idea-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid #f1f5f9; justify-content: space-between; align-items: center; }

.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; vertical-align: middle; }
th { background: #f8fafc; font-weight: 700; color: var(--slate-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.78); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 999; padding: 24px; }
.modal-backdrop.open { display: flex; }
.lightbox { background: #fff; border-radius: 18px; max-width: 1180px; width: 100%; height: 86vh; display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.lb-media { background: #0f172a; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; overflow-y: auto; overflow-x: hidden; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 68vh; border-radius: 10px; object-fit: contain; }
.mobile-frame-916 { width: 280px; max-width: 100%; aspect-ratio: 9 / 16; background: #020617; border-radius: 20px; padding: 6px; border: 2px solid #334155; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mobile-frame-916 video { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; background: #000; }
.lb-media img.tall-shot { max-height: none; width: 100%; height: auto; align-self: flex-start; }
.lb-thumbs { display: flex; gap: 8px; margin-top: 12px; max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
.lb-thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.55; border: 2px solid transparent; }
.lb-thumbs img.active { opacity: 1; border-color: var(--mint); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.92); border: none; border-radius: 50%; width: 42px; height: 42px; justify-content: center; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-info { padding: 0 24px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.lb-sticky-head {
  position: sticky; top: 0; z-index: 5; background: var(--card);
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 10px; border-bottom: 1px solid var(--border);
}
.lb-box { background: #f8fafc; border: 1px solid var(--border); padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.lb-box.marketing { background: #ecfdf5; border-color: #a7f3d0; }
.lb-box.concept { background: #eff6ff; border-color: #bfdbfe; }
[data-theme="dark"] .lb-box.marketing { background: rgba(62, 207, 142, 0.12); border-color: rgba(62, 207, 142, 0.35); color: #e2e8f0; }
[data-theme="dark"] .lb-box.concept { background: rgba(59, 130, 246, 0.14); border-color: rgba(96, 165, 250, 0.35); color: #e2e8f0; }
.settings-box { background: #fff; border-radius: 16px; max-width: 500px; width: 100%; padding: 24px; }

@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; padding: 12px 16px; }
  .url-bar { flex-direction: column; align-items: stretch; }
  .extra-opts.open { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; height: 92vh; }
  .idea-grid { grid-template-columns: 1fr; }
}

/* Social Post Feed & Unified Checklist Table */
.social-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 18px; margin-bottom: 28px; }
.social-post-card {
  background: var(--card, #fff); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.sp-head { padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--border); }
.sp-author { font-weight: 800; font-size: 14.5px; color: var(--slate); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sp-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sp-body {
  padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: var(--slate);
  white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow-y: auto;
}
.sp-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; padding: 0 16px 12px; cursor: pointer; }
.sp-media-grid img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.sp-cta-bar {
  margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(148, 163, 184, 0.1); border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px;
}
.engagement-bar {
  padding: 10px 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.checklist-wrap { padding: 0 16px 14px; }
.checklist-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.checklist-table th, .checklist-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.checklist-table th { width: 34%; background: rgba(148, 163, 184, 0.12); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--slate); }
.checklist-table tr.pain-row th, .checklist-table tr.pain-row td { background: rgba(245, 158, 11, 0.08); }
.checklist-table tr:last-child th, .checklist-table tr:last-child td { border-bottom: none; }
@media (max-width: 720px) { .social-feed { grid-template-columns: 1fr; } }


/* === Brief cho Lead (Web + Print PDF + Visual Frame Sketches) === */
.brief-sheet { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.brief-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.brief-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--mint-dark, #059669); text-transform: uppercase; }
.brief-meta-box { font-size: 12.5px; color: var(--slate-2); background: rgba(148, 163, 184, 0.08); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); line-height: 1.6; }
.brief-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.brief-pillar-card { background: rgba(148, 163, 184, 0.06); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.brief-pillar-tag { font-size: 11px; font-weight: 800; color: var(--slate); letter-spacing: 0.03em; }
.brief-note-input { width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; font-size: 12.5px; line-height: 1.45; resize: vertical; }
.brief-footer-note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.28); font-size: 12.5px; line-height: 1.5; }
.print-only { display: none; }

/* Wireframe / Storyboard Frame Sketches */
.wf- winning-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.wf-strip { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.wf-frame-916 {
  width: 112px; min-height: 176px; border: 2px dashed #64748b; border-radius: 12px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); color: #f8fafc;
  padding: 6px; display: flex; flex-direction: column; justify-content: space-between;
  font-size: 10.5px; line-height: 1.3; position: relative; box-shadow: 0 4px 10px rgba(15,23,42,0.12);
}
.wf-frame-916.axpm { border-color: #f05a28; background: linear-gradient(180deg, #051c38 0%, #003b70 100%); }
.wf-frame-916.superfin { border-color: #3ecf8e; background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); }
.wf-safe-zone { font-size: 9px; color: #94a3b8; border-bottom: 1px dotted rgba(148,163,184,0.4); padding-bottom: 2px; display: flex; justify-content: space-between; }
.wf-hook-box { background: rgba(255,255,255,0.1); border-left: 3px solid #3ecf8e; padding: 4px 5px; border-radius: 4px; font-weight: 700; font-size: 10px; color: #fff; margin: 4px 0; }
.wf-frame-916.axpm .wf-hook-box { border-left-color: #f05a28; }
.wf-scene-sketch { flex: 1; border: 1px dashed rgba(255,255,255,0.28); border-radius: 6px; padding: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #cbd5e1; font-size: 10px; margin: 2px 0; background: rgba(15,23,42,0.35); }
.wf-cta-pill { background: #3ecf8e; color: #052e16; font-weight: 800; font-size: 9.5px; text-align: center; padding: 3px 6px; border-radius: 999px; margin-top: 3px; }
.wf-frame-916.axpm .wf-cta-pill { background: #f05a28; color: #ffffff; }

.wf-slide-card {
  width: 118px; min-height: 138px; border: 2px dashed #475569; border-radius: 10px;
  background: #0f172a; color: #f8fafc; padding: 7px; display: flex; flex-direction: column;
  justify-content: space-between; font-size: 10.5px; line-height: 1.3;
}
.wf-banner-card {
  width: 190px; min-height: 148px; border: 2px dashed #10b981; border-radius: 10px;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%); color: #f8fafc;
  padding: 8px; display: flex; flex-direction: column; justify-content: space-between;
  font-size: 10.5px; line-height: 1.32;
}
.wf-ref-thumb {
  width: 88px; height: 118px; object-fit: cover; border-radius: 8px;
  border: 2px solid var(--border); background: #0f172a;
}

@media (max-width: 960px) {
  .brief-pillars { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body, html { background: #ffffff !important; color: #0f172a !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  header, .hero-input, .no-print, .modal-backdrop { display: none !important; }
  main, .container { max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
  .brief-sheet { border: none !important; box-shadow: none !important; padding: 0 !important; background: #ffffff !important; color: #0f172a !important; }
  .brief-pillar-card, .brief-table tr, .brief-footer-note { break-inside: avoid; page-break-inside: avoid; }
  .brief-pillar-card, .brief-meta-box { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
  .brief-table th { background: #f1f5f9 !important; color: #0f172a !important; }
  .brief-table td, .brief-table th { border-color: #cbd5e1 !important; }
  .print-only { display: block !important; }
}


/* === Chế độ 2: Brief Triển Khai (Execution Brief + Role Switcher) === */
.exec-mode-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.06); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 14px;
}
.exec-mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.exec-mode-btn {
  padding: 7px 14px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.exec-mode-btn.active {
  background: #10b981; color: #ffffff; border-color: #059669;
}
.exec-role-pills {
  display: flex; gap: 6px; align-items: center; background: var(--card);
  padding: 4px; border-radius: 9px; border: 1px solid var(--border);
}
.exec-role-btn {
  padding: 5px 11px; border-radius: 6px; border: none; background: transparent;
  color: var(--muted); font-weight: 700; font-size: 12px; cursor: pointer;
}
.exec-role-btn.active { background: #0f172a; color: #3ecf8e; }
.exec-top-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px;
  background: rgba(148, 163, 184, 0.08); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-size: 12.5px;
}
.exec-sec {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
  margin-bottom: 12px; background: var(--card);
}
.exec-sec-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
  font-weight: 800; font-size: 13.5px;
}
.exec-ascii {
  background: #0f172a; color: #93c5fd; padding: 10px 12px; border-radius: 8px;
  font-family: Consolas, monospace; font-size: 11px; line-height: 1.35; overflow-x: auto; margin: 6px 0;
}
.exec-missing {
  display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px;
  font-weight: 800; background: rgba(244, 63, 94, 0.14); color: #e11d48; border: 1px solid rgba(244, 63, 94, 0.3);
}
.exec-container[data-exec-role="lead"] .exec-sec:not(.r-lead) { display: none !important; }
.exec-container[data-exec-role="content"] .exec-sec:not(.r-content) { display: none !important; }
.exec-container[data-exec-role="media"] .exec-sec:not(.r-media) { display: none !important; }
