﻿/* Ô tìm kiếm trong trang chuyên mục Thư viện prompt (zone.aspx, chỉ chuyên mục con của 450) — 30/11/2026.
   Dùng token của public-zone.css để hợp với trang và có chế độ tối. Khối kết quả do /?partial=1&zone= trả về
   (lớp hp-* của trang chủ) nên được định dạng lại ở đây dưới .zs. */

.zs { margin-top:clamp(24px,3.4vw,36px); max-width:860px; }
.zs-sr, .zs-live { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.zs-row { display:flex; align-items:center; gap:8px; background:var(--bg); border:1.5px solid var(--border); border-radius:var(--radius-pill); padding:5px 5px 5px 16px; box-shadow:var(--shadow); transition:border-color .18s ease, box-shadow .18s ease; }
.zs-row:focus-within { border-color:var(--apple-blue); box-shadow:0 0 0 4px rgba(0,113,227,.16), var(--shadow); }
.zs-ico { flex:none; color:var(--text-tertiary); }
.zs-row input { flex:1; min-width:0; border:0; outline:0; background:transparent; padding:10px 4px; font:500 16.5px/1.3 var(--font-body); color:var(--text); }
.zs-row input::placeholder { color:var(--text-tertiary); }
.zs-btn { flex:none; min-height:44px; padding:8px 22px; border:0; border-radius:var(--radius-pill); background:var(--text); color:var(--bg); font:600 15px/1 var(--font-display); cursor:pointer; transition:opacity .15s ease; }
.zs-btn:hover { opacity:.86; }
.zs-hint { margin:8px 0 0 18px; font-size:13px; color:var(--text-tertiary); }
.zs-hint kbd { font:600 11.5px/1 var(--font-body); padding:2px 6px; border:1px solid var(--border); border-bottom-width:2px; border-radius:5px; background:var(--bg); color:var(--text); }
.zs :focus-visible { outline:3px solid var(--apple-blue); outline-offset:3px; border-radius:8px; }
.zs-row input:focus-visible { outline:none; } /* khung .zs-row đã có vòng focus */

/* Khối kết quả */
.zs-results { margin-top:14px; background:var(--bg); border:1px solid var(--border-light); border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:clamp(14px,2.4vw,22px); }
.zs-results[hidden] { display:none; }
.zs-results[aria-busy="true"] { opacity:.6; transition:opacity .15s ease; }
.zs .hp-results-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 16px; margin-bottom:6px; }
.zs .hp-results-head h3 { margin:0; font-family:var(--font-display); font-weight:700; font-size:clamp(17px,1.8vw,20px); line-height:1.3; letter-spacing:-0.01em; color:var(--text); }
.zs .hp-results-acts { display:flex; align-items:center; gap:14px; }
.zs .hp-share { display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:4px 12px; border:1px solid var(--border); border-radius:var(--radius-pill); background:transparent; color:var(--text); font:600 13.5px/1 var(--font-body); cursor:pointer; }
.zs .hp-share:hover { border-color:var(--text); }
.zs .hp-share.is-done { color:var(--mint-dark); border-color:var(--mint); }
.zs .hp-link { color:var(--apple-blue-link); font-weight:600; font-size:14px; text-decoration:none; }
.zs .hp-link:hover { text-decoration:underline; }
.zs .hp-note { margin:6px 0 10px; font-size:14px; line-height:1.55; color:var(--text-secondary); }
.zs .hp-approx { color:#B4410C; font-weight:500; }
html[data-theme="dark"] .zs .hp-approx { color:#FF9A6B; }
html[data-theme="dark"] .zs .hp-link, html[data-theme="dark"] .zs .hp-result small { color:var(--apple-blue-bright); }
.zs .hp-deep-row { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:4px 0 12px; font-size:14px; color:var(--text-secondary); }
.zs .hp-deep { display:inline-flex; align-items:center; min-height:36px; padding:6px 16px; border-radius:var(--radius-pill); border:1.5px solid var(--text); color:var(--text); font-weight:600; text-decoration:none; transition:background .15s ease, color .15s ease; }
.zs .hp-deep:hover { background:var(--text); color:var(--bg); }
.zs .hp-result-list { list-style:none; margin:0; padding:0; max-height:min(64vh,580px); overflow:auto; overscroll-behavior:contain; }
.zs .hp-result { border-top:1px solid var(--border-light); }
.zs .hp-result a { display:grid; gap:3px; padding:12px 6px; text-decoration:none; border-radius:10px; transition:background .15s ease; }
.zs .hp-result a:hover { background:var(--bg-alt); }
.zs .hp-result strong { font-weight:600; font-size:16px; line-height:1.4; color:var(--text); }
.zs .hp-result span { font-size:14px; line-height:1.5; color:var(--text-secondary); }
.zs .hp-result small { font-family:var(--font-mono); font-size:11px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--apple-blue-link); margin-right:4px; }
.zs .hp-result mark { background:rgba(255,107,53,.16); color:inherit; border-radius:3px; padding:0 1px; box-shadow:inset 0 -2px 0 rgba(255,107,53,.45); }
html[data-theme="dark"] .zs .hp-result mark { background:rgba(255,107,53,.28); }

@media (max-width:640px) {
  .zs-row { padding-left:12px; }
  .zs-row input { font-size:16px; }
  .zs-btn { padding:8px 16px; }
  .zs-hint { margin-left:12px; }
  .zs .hp-result-list { max-height:none; overflow:visible; }
}
@media (max-width:400px) { .zs-ico { display:none; } }
@media (prefers-reduced-motion:reduce) { .zs *, .zs-results { transition:none !important; } }
