/* Nhờ Thạo phân tích việc (/thao/, v0.9.27). Chỉ tải trên trang này. */
.tgp{display:grid;gap:24px;padding:8px 0 56px;max-width:920px}
.tgp-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.tgp-principles li{padding:14px 16px;border:1px solid var(--line);border-radius:var(--pill);background:var(--soft);font-size:15px;line-height:1.5}
.tgp-principles b{display:block;margin-bottom:2px}
.tgp-form{display:grid;gap:8px;padding:22px;border:1px solid var(--line);border-radius:var(--pill);background:#fff}
.tgp-form label{font-weight:700;margin-top:8px}
.tgp-form label span{font-weight:400;color:var(--muted);font-size:14px}
.tgp-form textarea,.tgp-form select,.tgp textarea{width:100%;max-width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:var(--rb);font:400 16px/1.5 var(--body);color:var(--ink);background:#fff}
.tgp-form textarea:focus,.tgp-form select:focus,.tgp textarea:focus{outline:3px solid var(--accent);outline-offset:0;border-color:var(--accent)}
.tgp-form select{width:auto;min-width:min(100%,280px)}
.tgp-form .btn{justify-self:start;margin-top:8px}
.tgp-form .btn[disabled]{opacity:.6;cursor:progress}
.tgp-fine{margin:6px 0 0;font-size:14px;color:var(--muted)}
.tgp-err{margin:0;color:#B42318;font-weight:700}
.tgp-result{display:grid;gap:20px;scroll-margin-top:16px}
.tgp-card{padding:22px;border:1px solid var(--line);border-radius:var(--pill);background:#fff;min-width:0}
.tgp-card h2{margin:4px 0 10px;font-size:clamp(21px,2.4vw,26px);line-height:1.3}
.tgp-card h3{margin:0 0 8px;font-size:18px;line-height:1.35}
.tgp-card p{margin:0 0 10px}
.tgp-kicker{margin:0;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.tgp-muted{color:var(--muted);font-size:14.5px}
.tgp-note{font-size:14.5px;color:var(--muted)}
.tgp-sub{margin:12px 0;padding:12px 14px;border-left:3px solid var(--line);background:var(--soft);border-radius:0 var(--rb) var(--rb) 0}
.tgp-sub-h{font-weight:700;margin:0 0 4px}
.tgp-sub ul{margin:0 0 8px;padding-left:20px}
.tgp-status{display:flex;align-items:center;gap:10px;margin:0;color:var(--muted)}
.tgp-dot{width:10px;height:10px;flex:none;border-radius:50%;background:var(--accent);animation:tgp-pulse 1.2s ease-in-out infinite}
@keyframes tgp-pulse{0%,100%{opacity:.3}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.tgp-dot{animation:none}}
.tgp-opt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}
.tgp-opt{padding:16px;border:1px solid var(--line);border-radius:var(--pill);background:var(--soft);min-width:0}
.tgp-opt-eval{margin-top:10px;font-size:15px}
.tgp-verdict{display:inline-block;margin:0 0 8px;padding:3px 10px;border-radius:999px;font-weight:700;font-size:14px;background:#fff;border:1px solid var(--line)}
.tgp-verdict-nen-thu-truoc{background:var(--hi);border-color:var(--hi)}
.tgp-verdict-chua-nen{background:#fff;color:var(--muted)}
.tgp-crit{width:100%;border-collapse:collapse;margin:6px 0 10px;font-size:14.5px}
.tgp-crit th,.tgp-crit td{padding:6px 0;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.tgp-crit th{width:42%;padding-right:10px;font-weight:600}
.tgp-level{display:inline-block;min-width:54px;padding:1px 8px;border:1px solid var(--line);border-radius:var(--rb);background:#fff;font-weight:700;font-size:13.5px;text-align:center}
.tgp-level-chua-ro{color:var(--muted);font-weight:500}
.tgp-src{font-size:14.5px}
.tgp-compare-h{margin-top:20px}
.tgp-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:var(--rb)}
.tgp-compare{width:100%;min-width:560px;border-collapse:collapse;font-size:14.5px}
.tgp-compare th,.tgp-compare td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.tgp-compare thead th{background:var(--soft);font-weight:700}
.tgp-trial{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:var(--pill);background:var(--soft);scroll-margin-top:16px}
.tgp-trial ol{margin:0 0 10px;padding-left:22px}
.tgp-trial li{margin-bottom:6px}
.tgp-prompt summary{cursor:pointer;font-weight:700;color:var(--accent)}
.tgp-prompt textarea{margin:8px 0}
.tgp-arts{list-style:none;margin:8px 0 10px;padding:0;display:grid;gap:10px}
.tgp-arts li{display:grid;gap:2px;padding:10px 0;border-top:1px solid var(--line)}
.tgp-art-link{font-weight:700;color:var(--accent);text-underline-offset:3px}
.tgp-art-state{font-size:14px;color:var(--muted)}
.tgp-art-state:empty{display:none}
.tgp-art-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14.5px}
.tgp-linkbtn{padding:0;border:0;background:none;color:var(--accent);font:700 15px var(--body);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tgp-chip{padding:4px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;font:600 14px var(--body);cursor:pointer}
.tgp-chip:hover{border-color:var(--accent)}
.tgp-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.tgp-choice{display:grid;gap:2px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--pill);background:#fff;text-align:left;font:400 15px/1.45 var(--body);color:var(--ink);cursor:pointer}
.tgp-choice b{font-size:16px}
.tgp-choice small{color:var(--muted);font-size:14px}
.tgp-choice:hover,.tgp-choice.is-open{border-color:var(--accent)}
.tgp-choice.is-open{box-shadow:inset 0 0 0 1px var(--accent)}
.tgp-choice.is-suggested{background:var(--soft)}
.tgp-tag{justify-self:start;margin-top:4px;padding:1px 8px;border-radius:999px;background:var(--hi);font-weight:700;font-size:12.5px}
.tgp-next-panel{margin-top:14px;padding:16px;border-top:3px solid var(--accent);background:var(--soft);border-radius:0 0 var(--rb) var(--rb)}
.tgp-keep-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.tgp-copy-status{font-size:14px;color:var(--muted)}
.tgp-how{padding:22px;border-radius:var(--pill);background:var(--soft)}
.tgp-how h2{margin:0 0 10px;font-size:21px}
.tgp-how ol{margin:0 0 12px;padding-left:22px}
.tgp-how p{margin:0 0 8px;font-size:15px}
@media (max-width:720px){
  .tgp-principles,.tgp-opt-grid,.tgp-choices{grid-template-columns:minmax(0,1fr)}
  .tgp-form,.tgp-card{padding:16px}
  .tgp-form .btn{width:100%;justify-content:center;white-space:normal}
  .tgp-keep-actions .btn{white-space:normal}
}
/* Ngữ cảnh bài đang đọc (v0.9.35) */
.tgp-ctx{margin:0 0 6px;padding:14px 16px;border-left:4px solid var(--accent);border-radius:0 var(--rb) var(--rb) 0;background:var(--soft)}
.tgp-ctx p{margin:0 0 6px}
.tgp-ctx-k{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.tgp-ctx-t a{font-weight:700;color:var(--ink);text-underline-offset:3px}
.tgp-form .tgp-ctx[hidden]{display:none}
