/* Câu nói bỏ túi (giao_tiep.py). Chỉ dùng token màu của tokens.css. */
/* Theo demo gốc (Downloads/metravel-giao-tiep, .mtgt): desktop = hộp CĂN GIỮA rộng 440px, cao tối đa 85dvh, bo 22px;
   mobile (<=480px) = bảng trượt từ ĐÁY, rộng 100%, cao tối đa 88dvh, chỉ bo hai góc trên.
   margin:auto + inset:0 là BẮT BUỘC: Tailwind preflight đặt margin:0 cho mọi phần tử nên <dialog> mất căn giữa mặc định và dính góc trên-trái. */
dialog.gt { position: fixed; inset: 0; margin: auto; width: min(440px, calc(100% - 20px)); max-width: 100vw; height: auto; max-height: 85dvh;
  padding: 0; border: 1px solid var(--mt-border);
  border-radius: 22px; background: var(--mt-page); color: var(--mt-text); overflow: hidden; }
dialog.gt[open] { display: flex; flex-direction: column; }
dialog.gt::backdrop { background: color-mix(in srgb, var(--mt-text) 55%, transparent); }
.gt-dau { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1rem 1rem .5rem; }
.gt-dau h2 { margin: 0; font-size: 1.25rem; }
.gt-dau p { margin: .25rem 0 0; color: var(--mt-muted); font-size: .9rem; }
.gt-dong { min-width: 44px; min-height: 44px; border: 1px solid var(--mt-border); border-radius: 999px; background: var(--mt-surface); font-size: 1.25rem; cursor: pointer; color: var(--mt-text); }
.gt-ngon-ngu { display: flex; align-items: center; gap: .5rem; padding: 0 1rem; font-size: .9rem; }
.gt-ngon-ngu select { min-height: 44px; flex: 1; border: 1px solid var(--mt-border); border-radius: 10px; padding: 0 .5rem; background: var(--mt-surface); color: var(--mt-text); font: inherit; }
.gt-nhom { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 1rem; }
.gt-nhom button { flex: none; min-height: 44px; padding: 0 1rem; border: 1px solid var(--mt-border); border-radius: 999px; background: var(--mt-surface); color: var(--mt-text); font: inherit; cursor: pointer; }
.gt-nhom button[aria-pressed="true"] { background: var(--mt-primary); color: var(--mt-on-primary); border-color: var(--mt-primary); }
.gt-than { flex: 1; min-height: 0; overflow-y: auto; padding: 0 1rem 1rem; }
.gt-the { background: var(--mt-surface); border: 1px solid var(--mt-border); border-radius: 12px; padding: .9rem; margin-bottom: .75rem; }
.gt-vi { margin: 0; color: var(--mt-muted); font-size: .95rem; }
.gt-dich { margin: .35rem 0 .6rem; font-size: 1.5rem; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.gt-dich--en { margin-bottom: .2rem; }
.gt-vn { margin: 0 0 .7rem; font-size: 1.25rem; line-height: 1.35; font-weight: 500; color: var(--mt-primary); overflow-wrap: anywhere; }
.gt-nut[disabled] { opacity: .5; cursor: not-allowed; }
.gt-doc { margin: 0 0 .6rem; font-size: 1.05rem; color: var(--mt-muted); line-height: 1.4; }
.gt-doc-nhan { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--mt-primary); }
.gt-hang { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.gt-nut { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--mt-border); border-radius: 10px;
  background: var(--mt-page); color: var(--mt-text); font: inherit; text-decoration: none; cursor: pointer; }
.gt-nut--chinh { background: var(--mt-primary); color: var(--mt-on-primary); border-color: var(--mt-primary); }
.gt-nut:focus-visible, .gt-dong:focus-visible, .gt-nhom button:focus-visible { outline: 3px solid var(--mt-accent); outline-offset: 2px; }
.gt-nhan { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--mt-note-bg); color: var(--mt-note-text); font-size: .8rem; }
.gt-chuan-bi { margin: 0; color: var(--mt-muted); font-size: .9rem; }
.gt-tin { min-height: 1.5rem; margin: 0; padding: .5rem 1rem; font-size: .9rem; background: var(--mt-surface); border-top: 1px solid var(--mt-border); }
.gt-tin--loi { background: var(--mt-note-bg); color: var(--mt-note-text); }
.gt-lon { text-align: center; padding: 1rem 0; }
.gt-lon .gt-dich { font-size: clamp(2.25rem, 11vw, 4.5rem); line-height: 1.25; margin: 1rem 0; }
@media (max-width: 480px) { dialog.gt { margin: auto auto 0; width: 100%; max-height: 88dvh; border-radius: 22px 22px 0 0; border-bottom: 0; } .gt-dich { font-size: 1.35rem; } }

/* Nút mở bảng câu, đứng cạnh tab Chi phí trong thanh tab (không phải tab: không có trạng thái chọn) */
.lt-tabs .lt-tab-giao-tiep {
  min-height: 44px; padding: 0 18px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; color: var(--mt-muted); cursor: pointer;
}
.lt-tabs .lt-tab-giao-tiep:hover { color: var(--mt-primary); }
.lt-tabs .lt-tab-giao-tiep:focus-visible { outline: 3px solid var(--mt-primary); outline-offset: -3px; }
