/* PHÂN TÍCH PRO — bản xem trước (13/10/2026). Tiền tố ptp-, mọi luật dưới gốc .ptp. Chỉ dùng token theme của app (themes.css) + --txt-* (app-shell.css);
   trang không nạp app-shell.css thì --ptp-ok / warn / bad / acc tự khai lại ĐÚNG công thức app-shell.css:167-169 (pha màu trạng thái về màu chữ → ≥ 4.5:1 ở theme sáng lẫn tối).
   Màu chuỗi biểu đồ theo phan-tich.css: --ptp-s1 Cần Thơ (màu nhấn), --ptp-s2 Cà Mau (xanh lơ pha chữ), đường so sánh = chữ mờ. Bo góc ≤ 8px (sheet đáy điện thoại 22px), ô bấm ≥ 44px. */
.ptp { --ptp-s1: var(--theme-accent-strong, var(--theme-accent)); --ptp-s2: color-mix(in srgb, #0e9fbf 78%, var(--text-main)); --ptp-s3: var(--text-main);
  --ptp-ok: var(--txt-ok, color-mix(in srgb, var(--theme-success) 62%, var(--text-main))); --ptp-warn: var(--txt-warn, color-mix(in srgb, var(--theme-warning) 60%, var(--text-main)));
  --ptp-bad: var(--txt-bad, color-mix(in srgb, var(--theme-danger) 65%, var(--text-main))); --ptp-acc: var(--txt-accent, color-mix(in srgb, var(--theme-accent-strong) 62%, var(--text-main)));
  --ptp-warn-nen: color-mix(in srgb, var(--theme-warning) 12%, var(--bg-card)); --ptp-bad-nen: color-mix(in srgb, var(--theme-danger) 10%, var(--bg-card));
  display: flex; flex-direction: column; gap: 14px; color: var(--text-main); min-width: 0; max-width: 1440px; margin: 0 auto; padding: 0 0 40px; font-size: 14px; line-height: 1.4; }
.ptp *, .ptp *::before, .ptp *::after { box-sizing: border-box; }
.ptp .ptp-ic { width: 16px; height: 16px; flex: none; }
.ptp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ptp-muted { color: var(--text-muted); font-weight: 500; font-size: 12.5px; }
.ptp-c { text-align: center; }
.ptp-mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ptp-khong { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 0; color: var(--text-main); font-size: 13.5px; }   /* "không có điểm nào" — chữ thường, KHÔNG tô xanh */
.ptp-lbl { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

/* ── Thanh preview: tách khỏi sản phẩm (nền ô nhập, viền dưới đứt nét) ── */
.ptp-pv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 8px 16px; background: var(--bg-input); border-bottom: 1px dashed var(--border-color); font-size: 12.5px; }
.ptp-pv-nhan { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; letter-spacing: .02em; color: var(--ptp-warn); }
.ptp-pv-mo { display: none; }
.ptp-pv-ve { min-height: 44px; text-decoration: none; font-size: 12.5px; }
.ptp-pv-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.ptp-pv-g { display: inline-flex; align-items: center; gap: 8px; }
.ptp-pv-l { color: var(--text-muted); font-weight: 600; }
.ptp-pv select { min-height: 44px; }
.ptp-pv .ptp-seg button { font-size: 12.5px; }

/* ── Đầu trang ── */
.ptp-man { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 4px 16px 0; }
.ptp-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.ptp-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ptp-crumb { margin: 0 0 2px; font-size: 12px; color: var(--text-dim); font-weight: 600; }
.ptp-sub { margin: 2px 0 0; color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ptp-quay { margin-bottom: 4px; }

/* ── Bề mặt ── */
.ptp-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px 16px; min-width: 0; }
.ptp-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.ptp-card h3 { margin: 0; font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ptp-card h3 small { font-weight: 500; color: var(--text-muted); font-size: 12.5px; }
.ptp-card-f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; padding-top: 10px; font-size: 12.5px; }
.ptp-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ptp-noi { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ── Nút / chip / ô chọn (ô bấm ≥ 44px, bo 8px, focus rõ) ── */
.ptp button { font-family: inherit; }
.ptp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--border-color); border-radius: 8px;
  background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ptp-btn:hover:not(:disabled) { border-color: var(--theme-accent-strong); }
.ptp-btn:disabled { opacity: .5; cursor: not-allowed; }
.ptp-btn.ptp-pri { background: var(--theme-accent-soft); border-color: transparent; color: var(--ptp-acc); }
.ptp-btn.ptp-ghost { background: var(--bg-input); }
.ptp-btn.ptp-sm { min-height: 44px; padding: 0 12px; font-size: 12.5px; color: var(--ptp-acc); }
.ptp-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ptp-acc); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ptp-ico-btn, .ptp-sheet-x { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 8px; background: var(--bg-input); color: var(--text-main); cursor: pointer; }
.ptp-ico-btn { background: var(--theme-accent-soft); color: var(--ptp-acc); }
.ptp-seg { display: inline-flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: var(--bg-input); }
.ptp-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ptp-seg button + button { border-left: 1px solid var(--border-color); }
.ptp-seg button.is-on { background: var(--theme-accent-soft); color: var(--text-main); }
.ptp-seg-sm button { padding: 0 12px; font-size: 12.5px; }
.ptp-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; }
.ptp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ptp-chip.is-on { background: var(--theme-accent-soft); border-color: transparent; color: var(--ptp-acc); }
.ptp-chip-sm { font-size: 12.5px; padding: 0 10px; }
.ptp select, .ptp input[type="text"], .ptp input[type="search"], .ptp input[type="date"] { min-height: 44px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-input); color: var(--text-main); font: inherit; font-size: 14px; font-weight: 500; width: 100%; max-width: 100%; }
.ptp button:focus-visible, .ptp select:focus-visible, .ptp input:focus-visible, .ptp [tabindex]:focus-visible { outline: 2px solid var(--theme-accent-strong); outline-offset: 2px; }

/* ── Thanh phạm vi (dính trên khi cuộn ở máy tính) ── */
.ptp-pham { position: sticky; top: 0; z-index: 20; }
.ptp-filt { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.ptp-fo { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; min-width: 0; }
.ptp-fo-ss select { min-width: 210px; }
/* Kỳ Tuỳ chọn (21/10/2026): hai ô Từ / Đến ngày cạnh nhau (đặt SAU .ptp-fo để thắng flex-direction: column). */
.ptp-fo.ptp-fo-ngay { flex-direction: row; flex-wrap: nowrap; gap: 8px 12px; align-items: flex-end; }
.ptp-fo-ngay label { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; min-width: 0; }
.ptp-fo-ngay input[type="date"] { width: 160px; min-width: 0; }
.ptp-ss-ky { color: var(--text-dim); font-weight: 500; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ptp-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.ptp-canh { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: var(--ptp-warn-nen); color: var(--text-main); font-size: 12.5px; line-height: 1.45; }
.ptp-canh .ptp-ic { color: var(--ptp-warn); margin-top: 2px; }
.ptp-canh b { color: var(--ptp-warn); }
.ptp-tt { display: flex; align-items: center; gap: 4px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-color); font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ptp-tt::-webkit-scrollbar { display: none; }
.ptp-ng { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.ptp-ng b { color: var(--text-main); font-weight: 600; font-variant-numeric: tabular-nums; }
.ptp-ng small { color: var(--text-dim); font-size: 11.5px; }
.ptp-ng .ptp-ic { color: var(--text-dim); }
.ptp-ng.is-tre { color: var(--ptp-warn); }
.ptp-ng.is-tre .ptp-ic, .ptp-ng.is-tre b { color: var(--ptp-warn); }
.ptp-ng-ky { padding: 2px 8px; border: 1px solid var(--border-color); border-radius: 6px; }
.ptp-achips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-color); }
.ptp-achip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px 0 10px; border: 0; border-radius: 8px; background: var(--theme-accent-soft); color: var(--text-main); font: inherit; font-size: 13px; font-weight: 600; }
.ptp-achip small { font-weight: 500; color: var(--text-muted); }
.ptp-achip-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--theme-accent-strong) 18%, transparent); color: var(--ptp-acc); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.ptp-achip-het { padding: 0 12px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--ptp-acc); cursor: pointer; }
.ptp-luu-w { position: relative; }
.ptp-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: min(360px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); box-shadow: var(--theme-shadow); display: grid; gap: 10px; text-align: left; }
.ptp-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.ptp-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; padding: 6px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); box-shadow: var(--theme-shadow); display: grid; }
.ptp-menu button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text-main); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.ptp-menu button:hover { background: var(--bg-card-hover); }
.ptp-luu form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.ptp-luu form .ptp-fo { flex: 1 1 160px; }
.ptp-luu-ds { display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.ptp-luu-dong { display: flex; align-items: center; gap: 4px; }
.ptp-luu-mo { flex: 1; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 6px; background: var(--bg-input); color: var(--text-main); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.ptp-luu-mo small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text-muted); }
.ptp-luu-xoa { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); color: var(--text-muted); cursor: pointer; }
.ptp-pop .ptp-muted { margin: 0; }

/* ── Thẻ chỉ số: cùng giải phẫu (tên + ⓘ → giá trị → phụ → biến động → xu hướng nhỏ → trạng thái) ── */
.ptp-the-ds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptp-the-ds.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }   /* Kinh doanh: 5 thẻ một hàng ở máy tính */
.ptp-the-w { min-width: 0; display: flex; }
.ptp-the { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; }
.ptp-the-i { position: absolute; top: 2px; right: 2px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: var(--text-dim); cursor: pointer; }
.ptp-the-i:hover { background: var(--bg-input); color: var(--ptp-acc); }
.ptp-the-mo { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-height: 44px; padding: 14px 44px 14px 16px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; }
button.ptp-the-mo { cursor: pointer; }
button.ptp-the-mo:hover { background: var(--bg-card-hover); }
.ptp-the-t { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ptp-the-v { font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptp-the-v.is-trong { color: var(--text-dim); }
.ptp-the-p { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ptp-du { color: var(--text-dim); }
.ptp-d { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.ptp-d b { font-weight: 700; }
.ptp-d small { color: var(--text-dim); font-weight: 500; font-size: 11.5px; }
.ptp-d.is-tot { color: var(--ptp-ok); }     /* màu theo danhGia của lớp tính, KHÔNG theo hướng tăng / giảm */
.ptp-d.is-xau { color: var(--ptp-bad); }
.ptp-d.is-trung { color: var(--text-muted); }
.ptp-d.is-khong { color: var(--text-muted); font-weight: 500; }
.ptp-the-ghi { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.ptp-nhan { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 7px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-input); color: var(--text-muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ptp-nhan.is-warn { color: var(--ptp-warn); background: var(--ptp-warn-nen); border-color: color-mix(in srgb, var(--theme-warning) 35%, transparent); }
.ptp-nhan.is-bad { color: var(--ptp-bad); background: var(--ptp-bad-nen); border-color: color-mix(in srgb, var(--theme-danger) 35%, transparent); }
.ptp-nhan.is-chua { border-style: dashed; }   /* chưa có nguồn: chữ thường, không xanh */
.ptp-nhan.is-du { color: var(--text-main); }  /* đủ dữ liệu / hiệu lực: chữ thường, không xanh */
.ptp-nhan.is-kiem { color: var(--ptp-acc); background: var(--theme-accent-soft); border-color: transparent; }
.ptp-chipnho { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 2px 6px; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 1.3; vertical-align: middle; margin-left: 6px; max-width: 100%; overflow-wrap: anywhere; }
.ptp-chipnho.is-vua { color: var(--ptp-warn); background: var(--ptp-warn-nen); }
.ptp-chipnho.is-cao { color: var(--ptp-bad); background: var(--ptp-bad-nen); }
.ptp-the .ptp-chipnho { margin: 2px 0 0; text-align: left; }
.ptp-the .ptp-nhan, .ptp-gon-d .ptp-nhan { white-space: normal; max-width: 100%; }
.ptp-lock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--text-dim); }
.ptp-the.is-thieu_nguon { background: var(--bg-input); border-style: dashed; }
.ptp-the-thieu { display: grid; gap: 2px; font-size: 11.5px; color: var(--text-muted); line-height: 1.35; }
.ptp-the-thieu span::before { content: "– "; }
.ptp-the.is-khoa .ptp-the-mo { opacity: .8; }
.ptp-the-den { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ptp-acc); }
.ptp-spark { display: block; width: 100%; height: 32px; margin-top: 6px; overflow: visible; }
.ptp-spark polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ptp-spark .ptp-sp-hien { stroke: var(--ptp-s1); }
.ptp-spark .ptp-sp-ss { stroke: var(--text-dim); stroke-dasharray: 4 3; }
.ptp-spark circle.ptp-sp-hien, .ptp-spark .ptp-sp-cuoi { fill: var(--ptp-s1); stroke: none; }
.ptp-spark circle.ptp-sp-ss { fill: var(--text-dim); }
.ptp-tien { position: relative; display: block; width: 100%; height: 8px; margin: 8px 0 16px; border-radius: 4px; background: var(--bg-input); }
.ptp-tien i { display: block; height: 100%; border-radius: 4px; background: var(--ptp-s1); }
.ptp-nhip { position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: var(--text-main); }
.ptp-nhip small { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: var(--text-muted); }
.ptp-cach-back { display: none; }
.ptp-pop.ptp-cach { top: 44px; left: 8px; right: 8px; width: auto; z-index: 45; }
.ptp-dl { margin: 0; display: grid; gap: 2px; font-size: 12.5px; }
.ptp-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.ptp-dl dd { margin: 0 0 6px; line-height: 1.45; }

/* ── Phương án B: câu tóm tắt + chỉ số gọn dạng hàng ── */
.ptp-tomtat { margin: 0; padding: 12px 16px; border-left: 3px solid var(--theme-accent-strong); border-radius: 0 8px 8px 0; background: var(--theme-accent-soft); font-size: 14px; line-height: 1.5; }
.ptp-b2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; align-items: start; }
.ptp-gon { display: grid; }
.ptp-gon > div + div { border-top: 1px solid var(--border-color); }
.ptp-gon-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t v" "d d"; gap: 2px 10px; align-items: center; width: 100%; min-height: 52px; padding: 8px 4px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: left; }
button.ptp-gon-r { cursor: pointer; }
button.ptp-gon-r:hover { background: var(--bg-card-hover); }
.ptp-gon-t { grid-area: t; font-size: 13.5px; font-weight: 600; min-width: 0; }
.ptp-gon-t small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ptp-gon-v { grid-area: v; font-size: 18px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptp-gon-v.is-trong { color: var(--text-dim); }
.ptp-gon-d { grid-area: d; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; }
.ptp-gon-r.is-thieu_nguon .ptp-gon-t { color: var(--text-muted); }

/* ── Điểm cần chú ý: dải mức bên trái + nhãn chữ mức (chữ + màu, không chỉ màu) ── */
.ptp-dem { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--theme-accent-soft); color: var(--ptp-acc); font-size: 12px; font-weight: 700; }
.ptp-tieuchi { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg-input); font-size: 12.5px; line-height: 1.45; }
.ptp-tieuchi p { margin: 0; }
.ptp-tieuchi ul { margin: 6px 0 0; padding-left: 18px; }
.ptp-cy-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* Phương án A (danh sách rộng hết hàng): máy tính chia 2 cột để 5 mục không kéo dài cả màn. */
@media (min-width: 1100px) { .ptp-pa-a .ptp-cy-ds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Dòng trạng thái nguồn: máy tính cho xuống dòng thay vì cắt chữ; điện thoại vẫn cuộn ngang. */
@media (min-width: 761px) { .ptp-tt { flex-wrap: wrap; white-space: normal; } }
.ptp-cy { position: relative; display: grid; gap: 6px; padding: 10px 12px 10px 18px; border: 1px solid var(--border-color); border-radius: 8px; }
.ptp-cy::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--text-dim); }
.ptp-cy.is-cao::before { background: var(--theme-danger); }
.ptp-cy.is-vua::before { background: var(--theme-warning); }
.ptp-cy-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ptp-cy-muc { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.ptp-cy.is-cao .ptp-cy-muc { color: var(--ptp-bad); }
.ptp-cy.is-vua .ptp-cy-muc { color: var(--ptp-warn); }
.ptp-cy-loai { font-size: 11.5px; font-weight: 600; color: var(--text-muted); padding: 1px 6px; border: 1px solid var(--border-color); border-radius: 6px; }
.ptp-cy-t { font-size: 14.5px; line-height: 1.35; }
.ptp-cy-db, .ptp-cy-dx { margin: 0; font-size: 13px; line-height: 1.45; }
.ptp-cy-db { color: var(--text-muted); }
.ptp-bc-ds { display: flex; flex-wrap: wrap; gap: 6px; }
.ptp-bc { display: inline-flex; flex-direction: column; min-width: 0; padding: 4px 8px; border-radius: 6px; background: var(--bg-input); font-size: 11.5px; color: var(--text-muted); }
.ptp-bc b { font-size: 13.5px; color: var(--text-main); font-variant-numeric: tabular-nums; }
.ptp-cy .ptp-btn.ptp-sm { justify-self: start; }
.ptp-thieu { display: grid; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--bg-input); font-size: 13px; }
.ptp-thieu-h { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-muted); }
.ptp-thieu-r p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.ptp-thieu-r .ptp-link { min-height: 44px; }

/* ── Biểu đồ: chú giải + SVG (token màu chuỗi) ── */
.ptp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.ptp-legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: 3px; background: var(--ptp-s1); }
.ptp-legend i.ptp-lg-cot, .ptp-legend i.ptp-lg-s1 { height: 12px; vertical-align: -1px; border-radius: 3px; }
.ptp-legend i.ptp-lg-s2 { height: 12px; vertical-align: -1px; border-radius: 3px; background: var(--ptp-s2); }
.ptp-legend i.ptp-lg-ss { background: repeating-linear-gradient(90deg, var(--text-dim) 0 4px, transparent 4px 7px); }
.ptp-chart { display: block; width: 100%; height: auto; font-family: inherit; }
.ptp-chart text { fill: var(--text-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ptp-chart .ptp-grid { stroke: var(--border-color); stroke-width: 1; }
.ptp-chart .ptp-ax { stroke: var(--text-dim); }
.ptp-chart .ptp-b1 { fill: var(--ptp-s1); }
.ptp-chart .ptp-b2 { fill: var(--ptp-s2); }
.ptp-chart .ptp-b0 { fill: transparent; }
.ptp-chart .ptp-ln { fill: none; stroke: var(--ptp-s1); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ptp-chart .ptp-ln-dot { fill: var(--bg-card); stroke: var(--ptp-s1); stroke-width: 2; }
.ptp-chart .ptp-ln-ss { fill: none; stroke: var(--text-dim); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.ptp-chart .ptp-ln-ss-dot { fill: var(--text-dim); }
.ptp-chart .ptp-val { fill: var(--text-main); font-weight: 700; }
.ptp-chart .ptp-val-ss { fill: var(--text-muted); font-weight: 600; }

/* ── Đóng góp: waterfall ngang ── */
.ptp-dg-tong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ptp-dg-tong b.is-tot, .ptp-wf-v.is-tot { color: var(--ptp-ok); }
.ptp-dg-tong b.is-xau, .ptp-wf-v.is-xau { color: var(--ptp-bad); }
.ptp-wf { display: grid; gap: 4px; }
.ptp-wf-r { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 84px; grid-template-areas: "l b v"; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: left; }
button.ptp-wf-r { cursor: pointer; }
button.ptp-wf-r:hover { background: var(--bg-card-hover); }
.ptp-wf-l { grid-area: l; min-width: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.ptp-wf-l small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ptp-wf-b { grid-area: b; position: relative; height: 16px; border-radius: 4px; background: var(--bg-input); overflow: hidden; }
.ptp-wf-b i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--text-dim); }
.ptp-wf-r.is-hien .ptp-wf-b i { background: var(--ptp-s1); }
.ptp-wf-r.is-tang .ptp-wf-b i { background: var(--theme-success); }
.ptp-wf-r.is-giam .ptp-wf-b i { background: var(--theme-danger); }
.ptp-wf-v { grid-area: v; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptp-wf-r.is-khac .ptp-wf-l { color: var(--text-muted); }
.ptp-dg-ghi { margin: 10px 0 0; line-height: 1.45; }

/* ── Nhóm chuyên sâu ── */
.ptp-nhom-ds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ptp-nhom-o { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 44px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ptp-nhom-o:hover { border-color: var(--theme-accent-strong); }
.ptp-nhom-o.is-co { border-color: var(--theme-accent-strong); background: var(--theme-accent-soft); }
.ptp-nhom-t { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; }
.ptp-nhom-q { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.ptp-nhom-thieu { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; }
.ptp-chua-co h3 { margin: 0 0 8px; }
.ptp-chua-co p { margin: 0 0 8px; }

/* ── Kinh doanh: câu hỏi · bảng theo chiều · nhận xét · huỷ trả ── */
.ptp-cauhoi { gap: 6px; }
.ptp-tbl-wrap { overflow: auto; max-width: 100%; max-height: 70vh; -webkit-overflow-scrolling: touch; }
.ptp-tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptp-tb th, .ptp-tb td { padding: 9px 12px; border-bottom: 1px solid var(--border-color); text-align: right; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
.ptp-tb th { position: sticky; top: 0; z-index: 1; background: var(--bg-input); color: var(--text-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.ptp-tb th.ptp-l, .ptp-tb td.ptp-l { text-align: left; }
.ptp-tb tbody tr:hover td { background: var(--bg-card-hover); }
.ptp-tb tr.ptp-tot td { font-weight: 700; background: var(--theme-accent-soft); border-top: 2px solid var(--theme-accent); }
.ptp-tb tbody tr.ptp-tot:hover td { background: var(--theme-accent-soft); }
.ptp-tb .ptp-name { font-weight: 600; text-align: left; white-space: normal; min-width: 160px; }
.ptp-th-sx { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.ptp-th-sx .ptp-ic { color: var(--text-dim); }
.ptp-th-khoa { text-transform: none; }
.ptp-th-khoa .ptp-lock small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; }
.ptp-td-khoa { color: var(--text-dim); }
.ptp-name-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ptp-acc); font: inherit; font-weight: 600; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ptp-cell-d { font-weight: 700; }
.ptp-cell-d.is-tot { color: var(--ptp-ok); }
.ptp-cell-d.is-xau { color: var(--ptp-bad); }
.ptp-cell-s { display: block; font-size: 11px; font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.ptp-tb tr.is-voided td { color: var(--text-muted); }
.ptp-mlist { display: none; }
.ptp-mrow { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.ptp-mk { font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ptp-mg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; font-size: 11.5px; color: var(--text-muted); }
.ptp-mg b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-main); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ptp-mg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ptp-mg b.ptp-imei { display: inline-flex; align-items: center; gap: 2px; }
.ptp-mg-2 > span:first-child { grid-column: 1 / -1; }
.ptp-mrow.is-tot { margin: 0 -14px; padding: 10px 14px 12px; background: var(--theme-accent-soft); border-top: 2px solid var(--theme-accent); border-bottom: 0; }
.ptp-nx-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ptp-nx-r { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 13.5px; line-height: 1.45; }
.ptp-nx-r.is-gia_thuyet { border-style: dashed; }
.ptp-nx-loai { padding-top: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); }
.ptp-nx-r.is-gia_thuyet .ptp-nx-loai { color: var(--ptp-warn); }
.ptp-nx-r.is-de_xuat .ptp-nx-loai { color: var(--ptp-acc); }
.ptp-nx-r .ptp-link { white-space: nowrap; }
.ptp-nx-ghi { margin: 10px 0 0; font-size: 12px; line-height: 1.45; }
.ptp-chan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 0; }

/* ── Kiểm chứng: ngăn phải ~min(1100px, 92vw) ── */
.ptp-kc-back { position: fixed; inset: 0; z-index: 10040; background: color-mix(in srgb, var(--text-main) 36%, transparent); }
.ptp-kc { position: fixed; top: 0; right: 0; bottom: var(--itn-tab-h, 0px); z-index: 10050; width: min(1100px, 92vw); display: flex; flex-direction: column; background: var(--bg-card); border-left: 1px solid var(--border-color); box-shadow: var(--theme-shadow); }
.ptp-kc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 12px 10px 20px; border-bottom: 1px solid var(--border-color); }
.ptp-kc-h h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.ptp-kc-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ptp-kc-chips .ptp-achip { min-height: 28px; padding: 0 8px; font-size: 12px; }
.ptp-kc-tong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 20px; background: var(--bg-input); font-size: 13px; font-variant-numeric: tabular-nums; }
.ptp-kc-tong b { font-size: 16px; }
.ptp-kc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px 0; }
.ptp-kc-tim { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-input); color: var(--text-muted); }
.ptp-kc-tim input[type="search"] { flex: 1; min-width: 0; min-height: 42px; padding: 0; border: 0; background: none; }
.ptp-kc-tim input[type="search"]:focus-visible { outline: none; }
.ptp-kc-tim:focus-within { outline: 2px solid var(--theme-accent-strong); outline-offset: 1px; }
.ptp-kc-ct { margin: 8px 20px 0; padding: 10px 14px 10px 30px; border-radius: 8px; background: var(--bg-input); font-size: 12.5px; line-height: 1.5; }
.ptp-kc-b { flex: 1; overflow: auto; padding: 10px 20px; }
.ptp-kc-tbl { max-height: none; }
.ptp-kc-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-color); font-size: 12.5px; }
.ptp-imei { display: inline-flex; align-items: center; gap: 2px; }
.ptp-copy { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px 0; border: 0; border-radius: 6px; background: none; color: var(--text-dim); cursor: pointer; }
.ptp-copy:hover { background: var(--bg-input); color: var(--ptp-acc); }
.ptp-tt-ds { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ptp-tt-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 11.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.ptp-tt-chip b { color: var(--text-main); font-variant-numeric: tabular-nums; }
.ptp-tt-chip.is-voucher { border-style: dashed; }

/* ── Thông báo nhỏ (tự tắt), khung xương, giảm chuyển động ── */
.ptp-toast { position: fixed; left: 50%; bottom: calc(24px + var(--itn-tab-h, env(safe-area-inset-bottom, 0px))); z-index: 10090; max-width: min(520px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 8px; background: var(--text-main); color: var(--bg-app); font-size: 13.5px; font-weight: 600; line-height: 1.4; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.ptp-toast.is-hien { opacity: 1; transform: translate(-50%, 0); }
.ptp-skel { display: grid; gap: 12px; }
.ptp-sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--bg-input) 0%, color-mix(in srgb, var(--bg-input) 55%, var(--bg-card)) 40%, var(--bg-input) 80%); background-size: 240% 100%; animation: ptp-shimmer 1.3s linear infinite; }
@keyframes ptp-shimmer { to { background-position: -240% 0; } }
.ptp-sk-kpi, .ptp-sk-rows { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.ptp-fbar, .ptp-sheet-h, .ptp-sheet-ft, .ptp-fb-back { display: none; }
@media (prefers-reduced-motion: reduce) { .ptp-sk { animation: none; } .ptp-toast { transition: none; } .ptp-the-mo, .ptp-btn, .ptp-chip { transition: none; } }

/* ── 1100px: thẻ 2 cột, khối 2 cột → 1 cột ── */
@media (max-width: 1100px) {
  .ptp-the-ds, .ptp-the-ds.is-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptp-two, .ptp-b2 { grid-template-columns: minmax(0, 1fr); }
  .ptp-nhom-ds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ── Điện thoại ≤ 760px: dải preview gập, thanh tóm tắt + sheet đáy, bảng → thẻ, ngăn kiểm chứng toàn màn, không tràn ngang ── */
@media (max-width: 760px) {
  .ptp { gap: 12px; }
  .ptp-pv { padding: 8px 12px; gap: 6px 12px; }
  .ptp-pv-nhan { font-size: 11.5px; flex: 1 1 auto; }
  .ptp-pv-mo { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
  .ptp-pv-opts { display: none; width: 100%; }
  .ptp-pv-opts.is-mo { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 6px; }
  .ptp-pv-g { flex-wrap: wrap; }
  .ptp-pv .ptp-seg { display: flex; flex-wrap: wrap; }
  .ptp-pv .ptp-seg button { flex: 1 1 auto; }
  .ptp-man { padding: 0 12px; }
  .ptp-pham { position: static; padding: 0; border: 0; background: none; }
  .ptp-fbar { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 6px 0 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; }
  .ptp-fs { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .ptp-fs small { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
  .ptp-fb-full { display: none; }
  .ptp-fb-back { display: block; position: fixed; inset: 0; z-index: 10040; background: color-mix(in srgb, var(--text-main) 36%, transparent); }
  /* Sheet đáy đứng TRÊN tab đáy (tab đáy của app vẽ trên mọi lớp trong khung dù z-index nhỏ hơn — đo elementFromPoint 21/10/2026; bàn phím mở thì --itn-tab-h = 0 → sheet sát đáy). */
  .ptp-fb-full.is-mo { display: flex; flex-direction: column; gap: 12px; position: fixed; left: 0; right: 0; bottom: var(--itn-tab-h, 0px); z-index: 10050; max-height: 88vh; overflow: auto; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--bg-card); border-radius: 8px 8px 0 0; box-shadow: var(--theme-shadow); }
  .ptp-fb-full.is-mo .ptp-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 8px 0; position: sticky; top: 0; z-index: 1; background: var(--bg-card); border-bottom: 1px solid var(--border-color); font-size: 16px; font-weight: 700; }
  .ptp-fb-full.is-mo .ptp-sheet-ft { display: flex; position: sticky; bottom: 0; padding-top: 8px; background: var(--bg-card); }
  .ptp-fb-full.is-mo .ptp-sheet-ft .ptp-btn { flex: 1; }
  .ptp-filt { flex-direction: column; align-items: stretch; }
  .ptp-fo-ngay label { flex: 1 1 0; }
  .ptp-fo-ngay input[type="date"] { width: 100%; }
  .ptp-fo .ptp-seg { display: flex; }
  .ptp-fo .ptp-seg button { flex: 1; padding: 0 8px; }
  .ptp-acts { margin-left: 0; flex-direction: column; align-items: stretch; }
  .ptp-acts .ptp-btn, .ptp-acts .ptp-luu-w .ptp-btn { width: 100%; }
  .ptp-luu-w .ptp-pop, .ptp-luu-w .ptp-menu { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  .ptp-tt { margin-top: 8px; padding-top: 0; border-top: 0; flex-wrap: wrap; white-space: normal; }
  .ptp-ng { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
  .ptp-achips { margin-top: 8px; padding-top: 0; border-top: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ptp-achips .ptp-achip { flex: none; }
  .ptp-the-ds { gap: 10px; }
  .ptp-the-mo { padding: 12px 40px 12px 14px; }
  .ptp-the-v { font-size: 22px; }
  .ptp-card { padding: 12px 14px; }
  .ptp-cach-back { display: block; position: fixed; inset: 0; z-index: 10060; background: color-mix(in srgb, var(--text-main) 36%, transparent); }
  .ptp-pop.ptp-cach { position: fixed; top: auto; left: 0; right: 0; bottom: var(--itn-tab-h, 0px); z-index: 10070; max-height: 80vh; overflow: auto; border-radius: 8px 8px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .ptp-gon-k .ptp-gon-r { padding: 8px 0; }
  .ptp-nhom-ds { grid-template-columns: minmax(0, 1fr); }
  .ptp-wf-r { grid-template-columns: minmax(0, 1fr) 84px; grid-template-areas: "l v" "b b"; gap: 4px 10px; }
  .ptp-nx-r { grid-template-columns: minmax(0, 1fr); }
  .ptp-nx-r .ptp-link { justify-self: start; }
  .ptp-tbl-chinh { display: none; }
  .ptp-mlist { display: block; }
  .ptp-kc { width: 100%; border-left: 0; }
  .ptp-kc-h, .ptp-kc-tong, .ptp-kc-bar, .ptp-kc-b, .ptp-kc-f { padding-left: 14px; padding-right: 14px; }
  .ptp-kc-ct { margin-left: 14px; margin-right: 14px; }
  .ptp-chan .ptp-btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .ptp-the-ds { gap: 8px; }
  .ptp-the-mo { padding: 10px 36px 10px 12px; }
  .ptp-the-v { font-size: 20px; }
  .ptp-the-t { font-size: 12px; }
  .ptp-mg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Điện thoại: thẻ gọn — số đủ vẫn ở title (chạm giữ), mục "chưa có nguồn" chỉ dòng đầu (đủ danh sách trên máy tính và trong tài liệu phương án). */
@media (max-width: 760px) {
  .ptp-the .ptp-du { display: none; }
  .ptp-the-thieu > span:nth-child(n+2) { display: none; }
}

/* ── Chế độ thật (tab Tổng quan của màn Phân tích, 13/10/2026): nằm trong khung .pt của app nên không thêm lề hai bên, thanh phạm vi không dính
   (app có thanh đầu riêng), lỗi tải hiện kèm Thử lại. Bố cục cố định A "Chỉ số trước" (anh Nghĩa chọn 13/10/2026). ── */
.ptp.is-that { padding-bottom: 0; }
.ptp.is-that .ptp-man { padding: 0; }
.ptp.is-that .ptp-pham { position: static; }
.ptp-loi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ptp-loi p { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; color: var(--text-main); }
.ptp-loi .ptp-ic { margin-top: 2px; color: var(--ptp-warn); }
/* Sửa ngưỡng điểm cần chú ý (ô phantich:cauhinh): bốn ô số, lưới tự xuống hàng, ô bấm ≥ 44px. */
.ptp-nguong { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-color); }
.ptp-nguong .ptp-lbl { margin: 0; }
.ptp-nguong-o { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; }
.ptp-nguong-o .ptp-fo { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-muted); min-width: 0; }
.ptp-nguong-o input { min-height: 44px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-input); color: var(--text-main); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.ptp-nguong-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
