/* H101 · bảng tìm kiếm OpenCADs (platform/apps/tim-kiem). Ngôn ngữ hình của mặt tiền H48 «Cửa hàng OpenCADs» và vỏ H97:
   nền sáng, Manrope, xanh #2563FF / #1D4ED8, chữ #15182b / #5a6280, kính, bo 22 px. Màu chỉ lấy từ token dưới đây (luật
   cứng 9). Điện thoại (≤ 760 px): tấm phủ toàn màn, vùng an toàn, ô nhập 16 px (iOS không phóng to). Máy tính: bảng lệnh
   giữa màn trên nền mờ. Mọi lớp mang tiền tố tk- (không đụng lớp của trang chủ). */
.tk-lop{
  --tk-chu:#15182b;
  --tk-chu-phu:#5a6280;
  --tk-chu-nhat:#646b85;
  --tk-vien:rgba(20,40,90,.10);
  --tk-nhan:#2563FF;
  --tk-nhan-dam:#1D4ED8;
  --tk-nhan-nhat:rgba(47,123,255,.11);
  --tk-to:rgba(47,123,255,.18);
  --tk-nen:#F6F8FB;
  --tk-nen-a:#E8DFFF;
  --tk-nen-b:#D9EEFF;
  --tk-kinh-dam:rgba(255,255,255,.94);
  --tk-the:#fff;
  --tk-o:rgba(118,128,160,.10);
  --tk-man:rgba(15,23,42,.38);
  --tk-bong-nhe:0 6px 16px rgba(50,70,140,.08);
  --tk-bong-ngan:0 24px 60px rgba(30,40,100,.22);
  --tk-chu-tren-mau:#fff;
  --tk-nhe-a:#EEF3FF;
  --tk-nhe-b:#F3EEFF;
  --tk-t0:linear-gradient(140deg,#7C3AED,#5B4BE0);
  --tk-t1:linear-gradient(140deg,#2E6BEF,#1D4ED8);
  --tk-t2:linear-gradient(140deg,#0E9F8F,#047857);
  --tk-t3:linear-gradient(140deg,#C2410C,#B91C1C);
  --tk-font:'Manrope',-apple-system,'Helvetica Neue',Arial,sans-serif;
  --tk-bo:22px;
  position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483610;font-family:var(--tk-font);color:var(--tk-chu);
  font-size:15px;line-height:1.5;-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-font-smoothing:antialiased
}
.tk-lop[hidden]{display:none}
.tk-lop *,.tk-lop *::before,.tk-lop *::after{box-sizing:border-box}
.tk-lop :focus-visible{outline:3px solid var(--tk-nhan);outline-offset:2px}
html.tk-khoa,html.tk-khoa body{overflow:hidden}
.tk-nen{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--tk-man);opacity:0;transition:opacity .18s ease;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.tk-lop.on .tk-nen{opacity:1}

/* ── điện thoại: tấm phủ toàn màn (cao = max(khung bố cục, 100dvh) ⇒ không có dải trống ở đáy Safari iOS) ── */
.tk-hop{position:absolute;top:0;right:0;bottom:0;left:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;
  background-color:var(--tk-nen);
  background-image:radial-gradient(circle at 10% 0%,var(--tk-nen-a) 0%,transparent 36%),radial-gradient(circle at 94% 0%,var(--tk-nen-b) 0%,transparent 40%);
  background-repeat:no-repeat;
  padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px);
  opacity:0;transform:translateY(10px);transition:opacity .16s ease,transform .22s cubic-bezier(.2,.8,.2,1)}
.tk-lop.on .tk-hop{opacity:1;transform:none}

.tk-dau{flex:none;display:flex;align-items:center;gap:6px;padding:10px 10px 8px 4px}
.tk-lui{flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--tk-chu);display:inline-flex;
  align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tk-lui svg{width:22px;height:22px}
.tk-o{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:48px;margin:0;padding:0 0 0 14px;border-radius:16px;background:var(--tk-the);
  box-shadow:0 0 0 1px var(--tk-vien),var(--tk-bong-nhe);cursor:text}
.tk-o:focus-within{box-shadow:0 0 0 2px var(--tk-nhan),var(--tk-bong-nhe)}
.tk-o>svg{flex:none;width:18px;height:18px;color:var(--tk-chu-phu)}
.tk-nhap{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;outline:0;background:transparent;color:var(--tk-chu);font:inherit;
  font-size:16px;font-weight:600;letter-spacing:-.005em;-webkit-appearance:none;appearance:none;border-radius:0}
.tk-nhap::placeholder{color:var(--tk-chu-nhat);font-weight:500;opacity:1}
.tk-nhap::-webkit-search-cancel-button,.tk-nhap::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.tk-nhap:focus-visible{outline:0}
.tk-xoa{flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--tk-chu-phu);display:inline-flex;
  align-items:center;justify-content:center;cursor:pointer}
.tk-xoa[hidden]{display:none}
.tk-xoa svg{width:16px;height:16px;padding:0;border-radius:50%}
.tk-esc{display:none}
.tk-huy{flex:none;min-width:44px;min-height:44px;padding:0 6px;border:0;background:none;color:var(--tk-nhan-dam);font:inherit;font-size:16px;
  font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent}

.tk-than{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:2px 10px calc(28px + var(--tk-ban-phim,0px) + env(safe-area-inset-bottom,0px))}
.tk-nhom{margin-top:12px}
.tk-nhom:first-child{margin-top:4px}
.tk-nhom-dau{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;padding:0 10px}
.tk-nhom-ten{font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--tk-chu-nhat)}
.tk-nhom-dem{font-size:12px;font-weight:700;color:var(--tk-chu-nhat)}
.tk-xoa-gd{min-height:44px;padding:0 8px;border:0;border-radius:10px;background:none;color:var(--tk-nhan-dam);font:inherit;font-size:13px;
  font-weight:700;cursor:pointer}
.tk-xoa-gd.on{background:var(--tk-nhan-nhat)}

.tk-dong{display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 10px;border-radius:14px;color:var(--tk-chu);text-decoration:none;
  cursor:pointer;-webkit-tap-highlight-color:transparent}
.tk-dong.tk-gon{min-height:48px;padding-top:4px;padding-bottom:4px}
.tk-dong.on{background:var(--tk-nhan-nhat)}
.tk-bieu{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:var(--tk-chu-tren-mau);font-weight:800;
  font-size:13px;letter-spacing:.01em}
.tk-tong0{background:var(--tk-t0)}
.tk-tong1{background:var(--tk-t1)}
.tk-tong2{background:var(--tk-t2)}
.tk-tong3{background:var(--tk-t3)}
.tk-bieu-ic{background:var(--tk-the);color:var(--tk-nhan-dam);box-shadow:0 0 0 1px var(--tk-vien)}
.tk-bieu-ic svg{width:20px;height:20px}
.tk-bieu.tk-mo{width:32px;height:32px;background:transparent;box-shadow:none;color:var(--tk-chu-nhat)}
.tk-bieu.tk-mo svg{width:18px;height:18px}
.tk-chu{flex:1;min-width:0;display:flex;flex-direction:column}
.tk-chu b{font-size:15px;font-weight:700;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-chu small{margin-top:1px;font-size:13px;line-height:1.35;color:var(--tk-chu-phu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-chu mark{padding:0 1px;border-radius:4px;background:var(--tk-to);color:inherit;font-weight:800}
.tk-nhan{flex:none;padding:2px 8px;border-radius:999px;background:var(--tk-o);color:var(--tk-chu-nhat);font-size:11px;font-weight:700}
.tk-di{flex:none;width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:var(--tk-nhan-dam);opacity:0}
.tk-di svg{width:16px;height:16px}
.tk-dong.on .tk-di{opacity:1}
.tk-luoi{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
.tk-top{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
.tk-hang{flex:none;width:22px;text-align:center;font-size:13px;font-weight:800;color:var(--tk-chu-nhat);font-variant-numeric:tabular-nums}
.tk-dong-top:nth-child(-n+3) .tk-hang{color:var(--tk-nhan-dam)}
.tk-dong-top{gap:10px}
.tk-them{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin-top:4px;border:0;border-radius:12px;
  background:var(--tk-o);color:var(--tk-nhan-dam);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.tk-them.on{background:var(--tk-nhan-nhat);box-shadow:inset 0 0 0 2px var(--tk-nhan)}
.tk-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px 8px}
.tk-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;padding:0 16px;border:0;border-radius:999px;
  background:var(--tk-the);box-shadow:0 0 0 1px var(--tk-vien);color:var(--tk-chu);font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.tk-chip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-chip svg{flex:none;width:14px;height:14px;color:var(--tk-chu-nhat)}
.tk-chip.on{background:var(--tk-nhan-nhat);box-shadow:0 0 0 2px var(--tk-nhan)}
.tk-nhom-cuoi{margin-top:8px;padding-top:6px;border-top:1px solid var(--tk-vien)}
.tk-xem .tk-chu b{color:var(--tk-nhan-dam)}
.tk-trong-tai{margin:24px 10px;color:var(--tk-chu-phu);font-size:14px}

.tk-khong{padding:28px 16px 6px;text-align:center}
.tk-khong-ic{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 12px;border-radius:18px;background:var(--tk-nhan-nhat);color:var(--tk-nhan-dam)}
.tk-khong-ic svg{width:26px;height:26px}
.tk-khong-t{margin:0;font-size:16.5px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.tk-khong-p{margin:6px auto 0;max-width:40ch;color:var(--tk-chu-phu);font-size:14px}
.tk-yc .tk-dong{background:linear-gradient(135deg,var(--tk-nhe-a),var(--tk-nhe-b));box-shadow:inset 0 0 0 1px var(--tk-vien)}
.tk-yc .tk-dong.on{box-shadow:inset 0 0 0 2px var(--tk-nhan)}
.tk-yc .tk-di{opacity:1}

.tk-chan{display:none}
.tk-chan kbd{display:inline-flex}
.tk-chan kbd,.tk-esc{align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:6px;
  background:var(--tk-the);box-shadow:0 0 0 1px var(--tk-vien),0 1px 0 var(--tk-vien);color:var(--tk-chu-phu);font:inherit;font-size:11.5px;font-weight:700}
.tk-an{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ── máy tính: bảng lệnh giữa màn ── */
@media (min-width:761px){
  .tk-hop{top:12vh;right:auto;bottom:auto;left:50%;width:min(680px,calc(100% - 48px));min-height:0;max-height:min(640px,calc(100dvh - 12vh - 32px));
    padding:0;border-radius:var(--tk-bo);overflow:hidden;background:var(--tk-kinh-dam);background-image:none;
    -webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);
    box-shadow:var(--tk-bong-ngan),0 0 0 1px rgba(255,255,255,.75);transform:translate(-50%,-8px) scale(.985)}
  .tk-lop.on .tk-hop{transform:translate(-50%,0)}
  .tk-lui,.tk-huy{display:none}
  .tk-dau{padding:10px 14px 10px 12px;border-bottom:1px solid var(--tk-vien)}
  .tk-o{height:52px;padding:0 0 0 8px;background:transparent;box-shadow:none}
  .tk-o:focus-within{box-shadow:none}
  .tk-o>svg{width:20px;height:20px;color:var(--tk-nhan-dam)}
  .tk-nhap{font-size:18px}
  .tk-esc{display:inline-flex;margin-left:4px}
  .tk-than{padding:4px 10px 12px}
  .tk-luoi,.tk-top{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tk-dong-top{min-height:48px;padding-top:5px;padding-bottom:5px}
  .tk-dong-top .tk-bieu{width:34px;height:34px;border-radius:10px;font-size:12px}
  .tk-dong{min-height:54px}
  .tk-chan{flex:none;display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 16px;border-top:1px solid var(--tk-vien);color:var(--tk-chu-nhat);font-size:12px}
  .tk-chan span{display:inline-flex;align-items:center;gap:4px}
}
@media (prefers-reduced-motion:reduce){.tk-hop,.tk-nen{transition:none}}
