/* TalentSeek — giao diện theo hệ thiết kế NexaPixel™ (trang /logo + /logo/admin, mã tự viết, không dùng mã của mẫu kommakomma).
   Font Geist 1.8.2 (bản đủ dấu tiếng Việt, SIL OFL). Chỉ giao diện sáng như Nexa. Mọi màu / bo góc đi qua biến --t-* ở :root. */

@font-face { font-family: Geist; src: url(/fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* bảng màu gốc của Nexa */
  --color-alabaster-grey: #eaeaea;
  --color-onyx: #131313;
  --color-graphite: #363636;
  --color-strawberry: #eb4b3d;
  --color-white: #fff;
  color-scheme: only light;

  /* vai trò màu */
  --t-bg: var(--color-alabaster-grey);
  --t-surface: var(--color-white);
  --t-soft: #f4f4f4;                       /* ô con trong thẻ trắng */
  --t-text: var(--color-onyx);
  --t-muted: rgb(19 19 19 / 0.6);          /* 4.56:1 trên alabaster, 5.49:1 trên trắng */
  --t-line: rgb(19 19 19 / 0.14);
  --t-solid: var(--color-onyx);
  --t-on-solid: var(--color-alabaster-grey);
  --t-accent: var(--color-strawberry);     /* chỉ để trang trí: chấm, viền focus (≥ 3:1) */
  --t-accent-strong: #b8321f;              /* chữ đỏ + nền nút rê chuột: 4.97:1 trên alabaster, chữ trắng 5.98:1 */
  --t-green: #17803d;                      /* nền nhãn chữ trắng 5.01:1; chữ xanh chỉ dùng trên nền trắng */
  --t-error-bg: #fde8e6; --t-error-text: #9b1c12;
  --t-ok-bg: #e3f4e8; --t-ok-text: #11632f;
  --t-backdrop: rgb(19 19 19 / 0.6);

  --t-radius-s: 0.25rem;  /* nút */
  --t-radius-m: 0.5rem;   /* ô con */
  --t-radius-l: 0.75rem;  /* thẻ, hộp thoại */
  --t-edge: clamp(1rem, 4vw, 3rem);
  --t-content: 56rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--t-bg); color: var(--t-text);
  font-family: Geist, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.ic { width: 1.125em; height: 1.125em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.t-sprite { position: absolute; }
.t-m0 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }

/* ---------- Thanh trên ---------- */
.t-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem var(--t-edge);
  background: rgb(234 234 234 / 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--t-line);
}
.t-brand { display: inline-flex; align-items: center; line-height: 1; text-decoration: none; white-space: nowrap; }
.t-logo { display: block; height: 1rem; width: auto; }
.t-nav { display: flex; gap: 0.25rem; margin-right: auto; margin-left: 1.25rem; }
.t-nav a {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 0.8em; border-radius: var(--t-radius-s);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.t-nav a:hover { background: var(--t-soft); }
.t-nav a[aria-current="page"] { background: var(--t-solid); color: var(--t-on-solid); }
.t-nav .t-count { background: var(--t-soft); color: var(--t-text); }
.t-nav a[aria-current="page"] .t-count { background: var(--t-on-solid); color: var(--t-solid); }
.t-tools { display: flex; align-items: stretch; gap: 0.5rem; }
/* điện thoại hẹp: chữ trạng thái credit tự rút gọn thay vì đẩy tràn thanh trên */
.t-tools { min-width: 0; }
#creditsBtn { min-width: 0; }
.t-brand, .t-lang, .t-iconbtn, #installBtn { flex: none; }
#creditsText { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.t-chip {
  display: inline-flex; align-items: center; gap: 0.45em; cursor: pointer; white-space: nowrap;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  padding: 0.4em 0.8em; border-radius: var(--t-radius-s); border: 1px solid var(--t-solid); background: transparent;
}
.t-chip:hover { background: var(--t-solid); color: var(--t-on-solid); }
.t-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--t-muted); flex: none; }
.t-dot--ok { background: var(--t-green); }
.t-dot--off { background: var(--t-accent); }

.t-iconbtn {
  display: inline-grid; place-items: center; min-width: 2.25rem; cursor: pointer;
  border-radius: var(--t-radius-s); border: 1px solid var(--t-solid); background: transparent; padding: 0 0.5rem;
}
.t-iconbtn:hover { background: var(--t-solid); color: var(--t-on-solid); }

.t-lang { display: inline-flex; border: 1px solid var(--t-solid); border-radius: var(--t-radius-s); overflow: hidden; }
.t-lang button {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.4em 0.75em; border: 0; background: transparent; cursor: pointer;
}
.t-lang button[aria-pressed="true"] { background: var(--t-solid); color: var(--t-on-solid); }

/* ---------- Nút chung (như .q-btn của Nexa) ---------- */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 0.65em 1.15em; border-radius: var(--t-radius-s);
  background: transparent; color: var(--t-text); border: 1px solid var(--t-solid);
}
.t-btn--dark { background: var(--t-solid); color: var(--t-on-solid); }
.t-btn:hover:not(:disabled) { background: var(--t-accent-strong); border-color: var(--t-accent-strong); color: var(--color-white); }
.t-btn:disabled { opacity: 0.5; cursor: progress; }
.t-btn--sm { font-size: 0.8125rem; padding: 0.45em 0.85em; }
.t-btn--ghost { border-color: transparent; }
.t-btn--danger:hover:not(:disabled) { background: var(--t-accent-strong); }

/* ---------- Bố cục ---------- */
.t-main { flex: 1; width: 100%; max-width: calc(var(--t-content) + 2 * var(--t-edge)); margin: 0 auto; padding: 0 var(--t-edge) 4rem; }

/* Màn Talent Pool rộng hơn để bảng đủ chỗ */
.t-main:has(#viewPool:not([hidden])) { max-width: calc(68rem + 2 * var(--t-edge)); }

.t-hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.25rem, 3vw, 2rem); }
.t-eyebrow { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-accent-strong); }
.t-title { margin: 0; font-weight: 500; font-size: clamp(2rem, 5.2vw, 3.75rem); line-height: 1; letter-spacing: -0.045em; max-width: 18ch; text-wrap: balance; }
.t-lead { margin: 1.1rem 0 0; max-width: 40rem; font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--t-muted); }

.t-card { background: var(--t-surface); border-radius: var(--t-radius-l); padding: clamp(1rem, 2.5vw, 1.5rem); }

/* Ô tra cứu */
.t-search { display: grid; gap: 0.75rem; }
.t-search__row { display: flex; gap: 0.5rem; }
.t-field { position: relative; flex: 1; min-width: 0; }
.t-input {
  width: 100%; font-size: 1rem; padding: 0.75em 0.85em;
  border: 1px solid var(--t-line); border-radius: var(--t-radius-m); background: var(--color-white);
}
.t-input:focus { outline: 2px solid var(--t-accent); outline-offset: 0; border-color: transparent; }
.t-input::placeholder { color: var(--t-muted); }
.t-field .t-input { padding-right: 4.75rem; }
.t-field__paste {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.35em; cursor: pointer;
  font-size: 0.8125rem; font-weight: 500; padding: 0.35em 0.65em; border: 0; border-radius: var(--t-radius-s);
  background: var(--color-alabaster-grey);
}
.t-field__paste:hover { background: var(--t-solid); color: var(--t-on-solid); }
.t-search__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; font-size: 0.8125rem; color: var(--t-muted); }
.t-search__foot p { margin: 0; }
.t-link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.8125rem; color: var(--t-muted); text-decoration: underline; text-underline-offset: 2px; }
.t-link:hover { color: var(--t-text); }
@media (max-width: 560px) { .t-search__row { flex-direction: column; } .t-search__row .t-btn { width: 100%; } }

/* Đang tải / lỗi */
.t-state { margin-top: 1.25rem; }
.t-loading { display: flex; align-items: center; gap: 1rem; }
.t-spinner { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--t-line); border-top-color: var(--t-solid); animation: t-spin 0.9s linear infinite; flex: none; }
@keyframes t-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .t-spinner { animation-duration: 2.5s; } }
.t-loading__body { min-width: 0; }
.t-loading .t-countdown { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--t-text); }
.t-loading__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.t-headline { margin: 0.35rem 0 0; }
.t-loading h2, .t-alert h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.t-loading p, .t-alert p { margin: 0.15rem 0 0; font-size: 0.9375rem; color: var(--t-muted); }
.t-alert { background: var(--t-error-bg); color: var(--t-error-text); border-radius: var(--t-radius-l); padding: 1rem 1.25rem; display: flex; gap: 0.75rem; align-items: flex-start; }
.t-alert p { color: inherit; }
.t-alert .t-btn { margin-top: 0.75rem; border-color: currentColor; color: inherit; }

/* ---------- Hồ sơ ứng viên ---------- */
.t-result { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.t-result__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.t-source { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-size: 0.8125rem; color: var(--t-muted); }
.t-badge {
  display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3em 0.7em; border-radius: 999px; background: var(--t-green); color: var(--color-white);
}
.t-badge--neutral { background: var(--t-solid); color: var(--t-on-solid); }
.t-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.t-profile { padding: 0; overflow: hidden; }
.t-profile__head { display: flex; gap: 1rem; align-items: center; padding: clamp(1.25rem, 3vw, 1.75rem); border-bottom: 1px solid var(--t-line); }
.t-avatar {
  width: 4rem; height: 4rem; border-radius: var(--t-radius-l); flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--t-solid); color: var(--t-on-solid); font-size: 1.5rem; font-weight: 500;
}
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-avatar--sm { width: 2.5rem; height: 2.5rem; font-size: 1rem; border-radius: var(--t-radius-m); }
.t-name { margin: 0; font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
.t-role { margin: 0.2rem 0 0; color: var(--t-muted); }
.t-meta { margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.875rem; color: var(--t-muted); }
.t-meta span { display: inline-flex; align-items: center; gap: 0.35em; }

.t-sec { padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem); border-bottom: 1px solid var(--t-line); }
.t-sec:last-child { border-bottom: 0; }
.t-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.t-h3 { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-muted); }
.t-sec__note { font-size: 0.8125rem; color: var(--t-muted); }
.t-sub { margin: 1rem 0 0.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--t-muted); }
.t-sub:first-of-type { margin-top: 0; }
.t-empty { margin: 0; font-size: 0.9375rem; color: var(--t-muted); }
.t-text { margin: 0; white-space: pre-line; font-size: 0.9375rem; }

.t-rows { display: grid; gap: 0.5rem; }
.t-rows--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .t-rows--2 { grid-template-columns: minmax(0, 1fr); } }
.t-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0.6rem 0.6rem 0.9rem; border-radius: var(--t-radius-m); background: var(--t-soft); }
.t-row__value { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.t-row__value--phone { font-size: 1.125rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.t-row__btns { display: flex; gap: 0.35rem; flex: none; }

.t-mini {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em; min-width: 2.25rem; height: 2.25rem; padding: 0 0.6rem;
  font-size: 0.8125rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--t-line); border-radius: var(--t-radius-s); background: var(--color-white);
}
.t-mini:hover { border-color: var(--t-solid); background: var(--t-solid); color: var(--t-on-solid); }
.t-mini--solid { background: var(--t-solid); color: var(--t-on-solid); border-color: var(--t-solid); }
.t-mini--solid:hover { background: var(--t-accent-strong); border-color: var(--t-accent-strong); color: var(--color-white); }
.t-mini--del:hover { background: var(--t-accent-strong); border-color: var(--t-accent-strong); color: var(--color-white); }

/* dòng thời gian kinh nghiệm / học vấn */
.t-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.t-timeline li { display: grid; grid-template-columns: 0.75rem 1fr; gap: 0.75rem; }
.t-timeline li::before { content: ""; width: 0.5rem; height: 0.5rem; margin-top: 0.5rem; border-radius: 50%; background: var(--t-line); }
.t-timeline li.is-current::before { background: var(--t-accent); }
.t-tl__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 1rem; }
.t-tl__title { margin: 0; font-weight: 600; }
.t-tl__period { font-size: 0.8125rem; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.t-tl__org { margin: 0.1rem 0 0; font-size: 0.9375rem; }
.t-tl__desc { margin: 0.4rem 0 0; font-size: 0.875rem; color: var(--t-muted); white-space: pre-line; }

.t-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.t-tag { font-size: 0.8125rem; font-weight: 500; padding: 0.3em 0.7em; border-radius: var(--t-radius-s); background: var(--t-soft); border: 1px solid var(--t-line); }
a.t-tag { display: inline-flex; align-items: center; gap: 0.35em; text-decoration: none; }
a.t-tag:hover { background: var(--t-solid); color: var(--t-on-solid); border-color: var(--t-solid); }

/* ---------- Talent Pool ---------- */
.t-pool { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.t-pool__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1rem; }
.t-h2 { margin: 0; font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; display: flex; align-items: center; gap: 0.6rem; }
.t-count { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; padding: 0.15em 0.6em; border-radius: 999px; background: var(--t-solid); color: var(--t-on-solid); font-variant-numeric: tabular-nums; }
.t-pool__sub { margin: 0.35rem 0 0; font-size: 0.9375rem; color: var(--t-muted); }
.t-pool__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.t-pool__bar .t-input { flex: 1 1 18rem; font-size: 0.9375rem; }
.t-pool__shown { margin: 0; font-size: 0.8125rem; color: var(--t-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
#poolBack { margin: 0 0 0.5rem -0.5rem; }
.is-busy .ic { animation: t-spin 0.9s linear infinite; }

/* Bảng Talent Pool */
.t-tablewrap { background: var(--t-surface); border-radius: var(--t-radius-l); overflow-x: auto; }
.t-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.t-table th { text-align: left; font-size: 0.8125rem; font-weight: 500; color: var(--t-muted); padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--t-line); white-space: nowrap; }
.t-table th button { display: inline-flex; align-items: center; gap: 0.3em; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.t-table th button:hover, .t-table th[aria-sort="ascending"] button, .t-table th[aria-sort="descending"] button { color: var(--t-text); }
.t-table th .ic { width: 0.9em; height: 0.9em; }
.t-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--t-line); vertical-align: middle; max-width: 13rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-table tbody tr { cursor: pointer; }
.t-table tbody tr:hover { background: var(--t-soft); }
.t-table tbody tr:last-child td { border-bottom: 0; }
.t-table .t-col-acts { width: 1%; text-align: right; }
.t-who { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.t-who__text { min-width: 0; }
.t-who__name { display: block; max-width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-who__sub { display: none; margin: 0.1rem 0 0; font-size: 0.8125rem; color: var(--t-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-item__note { margin: 0.2rem 0 0; font-size: 0.8125rem; padding: 0.1em 0.5em; border-radius: var(--t-radius-s); background: var(--t-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-cell--muted { color: var(--t-muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.t-cell--phone { font-variant-numeric: tabular-nums; }
.t-btns { display: inline-flex; gap: 0.25rem; }
.t-btns .t-mini { min-width: 2rem; height: 2rem; padding: 0; }
@media (max-width: 720px) { .t-col-phone, .t-col-updated { display: none; } }
@media (max-width: 520px) { .t-col-title, .t-col-company { display: none; } .t-who__sub { display: block; } .t-table td { max-width: 12rem; } }

/* ---------- Chân trang ---------- */
.t-foot {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  padding: 1.25rem var(--t-edge); border-top: 1px solid var(--t-line); font-size: 0.8125rem; color: var(--t-muted);
}

/* ---------- Hộp thoại (như .q-sheet của Nexa) ---------- */
.t-dialog {
  width: min(30rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto;
  padding: 1.5rem; border: 0; border-radius: var(--t-radius-l);
  background: var(--t-surface); color: var(--t-text); box-shadow: 0 16px 48px rgb(0 0 0 / 0.3);
}
.t-dialog--wide { width: min(36rem, calc(100vw - 2rem)); }
.t-dialog::backdrop { background: var(--t-backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.t-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.t-dialog__title { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.t-dialog__desc { margin: 0.35rem 0 0; font-size: 0.9375rem; color: var(--t-muted); }
.t-dialog__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }
.t-dialog__close { background: none; border: 0; padding: 0.25rem; cursor: pointer; color: var(--t-muted); border-radius: var(--t-radius-s); }
.t-dialog__close:hover { color: var(--t-text); }
@media (max-width: 640px) { .t-dialog { margin: auto auto 1rem; } }

.t-form { display: grid; gap: 0.9rem; }
.t-label { display: grid; gap: 0.35rem; font-size: 0.8125rem; font-weight: 500; color: var(--t-muted); }
.t-label .t-input { font-size: 0.9375rem; padding: 0.6em 0.75em; color: var(--t-text); font-weight: 400; }
textarea.t-input { resize: vertical; min-height: 5.5em; line-height: 1.45; }
.t-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 560px) { .t-grid2 { grid-template-columns: 1fr; } }
.t-hint { margin: -0.4rem 0 0; font-size: 0.8125rem; color: var(--t-muted); }
.t-error { margin: 0; font-size: 0.875rem; color: var(--t-error-text); }

.t-gate { text-align: left; }
.t-gate .t-brand { margin-bottom: 1.25rem; }
.t-gate .t-input { letter-spacing: 0.2em; }

.t-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.t-stat { padding: 0.85rem 1rem; border-radius: var(--t-radius-m); background: var(--t-soft); }
.t-stat__label { margin: 0; font-size: 0.8125rem; color: var(--t-muted); }
.t-stat__value { margin: 0.15rem 0 0; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.t-block { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--t-line); }
.t-block__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.t-keys { display: grid; gap: 0.4rem; max-height: 14rem; overflow: auto; }
.t-key { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.5rem 0.5rem 0.75rem; border-radius: var(--t-radius-m); background: var(--t-soft); font-size: 0.875rem; }
.t-key__name { font-weight: 500; }
.t-key__mask { color: var(--t-muted); font-variant-numeric: tabular-nums; }
.t-key__credits { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-key__tag { font-size: 0.75rem; color: var(--t-muted); white-space: nowrap; }
.t-inline { display: flex; gap: 0.5rem; }
.t-inline .t-input { font-size: 0.9375rem; padding: 0.6em 0.75em; }

/* Thông báo nhanh */
.t-toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 60; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 2rem); padding: 0.65rem 1rem; border-radius: var(--t-radius-m);
  background: var(--t-solid); color: var(--t-on-solid); font-size: 0.875rem; font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}
.t-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Gợi ý cài lên màn hình chính */
.t-install {
  position: fixed; z-index: 40; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 26rem; margin-left: auto; padding: 1rem 1.1rem; border-radius: var(--t-radius-l);
  background: var(--t-surface); box-shadow: 0 12px 40px rgb(0 0 0 / 0.22);
}
.t-install h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.t-install p, .t-install ol { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--t-muted); }
.t-install ol { padding-left: 1.1rem; }
.t-install__btns { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.85rem; }

/* Điện thoại: hàng 1 = logo + (cài app, credit, VI/EN), hàng 2 = menu Tra cứu / Talent Pool chia đôi đều. Không dính đầu màn hình. */
@media (max-width: 720px) {
  .t-top { position: static; flex-wrap: wrap; align-items: center; row-gap: 0.65rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .t-brand { flex: none; }
  .t-tools { order: 2; flex: 1 1 0; justify-content: flex-end; }
  .t-nav { order: 3; width: 100%; margin: 0; padding: 3px; gap: 3px; background: var(--t-line); border-radius: var(--t-radius-m); }
  .t-nav a { flex: 1; justify-content: center; padding: 0.4em 0.6em; border-radius: var(--t-radius-s); }
  .t-nav a:hover { background: transparent; }
  .t-nav a[aria-current="page"] { background: var(--t-solid); }
}
@media (max-width: 520px) {
  #settingsBtn { display: none; } /* thanh credit bấm vào cũng mở Nguồn dữ liệu */
  #creditsBtn { max-width: 11rem; }
}
.t-confirm__type { margin-top: 1rem; }
@media (max-width: 420px) {
  .t-logo { height: 0.77rem; }
  .t-chip { padding: 0.4em 0.6em; }
  .t-lang button { padding: 0.4em 0.55em; }
  .t-install-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* chỉ còn icon, vẫn đọc được tên nút */
}
