/* ═══════════════════════════════════════════════════════════════════════════
   shadow-hub.css — Hub Shadowing /shadowing (public/learn/shadowing/index.php) cho người học đã đăng nhập.
   Giao diện "Phòng thu" (chủ site duyệt bản mẫu 25/09/2026), cùng chất liệu với trang luyện video / hội thoại: dải teal đậm
   của App học v3 (lv-band) mang thẻ "Học tiếp" + nút nhanh; thân là các tấm trắng chồng mép dải.
   Nạp SAU learn-shell.css + learn-ui.css (lv_dlg_assets) và learn-hub.css (hb-title, hb-band). Chỉ token, không hex; tự lật tối.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ DẢI ═══ */
.shb-band { --lv-band-pb: 150px; }
.shb-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 36px; align-items: center; }
.shb-hero__copy { min-width: 0; }
.shb-hero__copy .lv-band__context { max-width: 540px; }
.shb-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.shb-pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
    font: 600 14px/1.45 var(--lv-font); text-decoration: none; white-space: nowrap;
    background: var(--lv-glass); border: 1px solid var(--lv-line-d); color: var(--lv-on); transition: background var(--lv-dur) var(--lv-ease);
}
a.shb-pill:hover, button.shb-pill:hover { background: var(--lv-glass-2); color: var(--lv-on); text-decoration: none; }
.shb-pill b { font-weight: 800; font-variant-numeric: tabular-nums; }
.shb-pill--hot { background: var(--lv-on); border-color: var(--lv-on); color: var(--lv-deep-ink); }
a.shb-pill--hot:hover { background: color-mix(in srgb, var(--color-primary) 10%, var(--color-on-dark)); color: var(--lv-deep-ink); }
.shb-pill--warn { background: color-mix(in srgb, var(--color-warning) 22%, transparent); border-color: color-mix(in srgb, var(--color-warning) 50%, transparent); white-space: normal; }
.shb-pill:focus-visible { outline: 2px solid var(--lv-on); outline-offset: 2px; }

/* Thẻ "Học tiếp" — kính trên dải, cả thẻ là một link */
.shb-resume {
    display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 22px;
    text-decoration: none; color: var(--lv-on);
    border: 1px solid var(--lv-line-d); background: linear-gradient(160deg, var(--lv-glass-2), var(--lv-glass));
    box-shadow: 0 1px 0 color-mix(in srgb, var(--color-on-dark) 10%, transparent) inset, 0 34px 70px -40px color-mix(in srgb, black 85%, transparent);
    transition: border-color var(--lv-dur) var(--lv-ease);
}
.shb-resume:hover { text-decoration: none; color: var(--lv-on); border-color: color-mix(in srgb, var(--color-on-dark) 34%, transparent); }
.shb-resume:focus-visible { outline: 2px solid var(--lv-on); outline-offset: 3px; }
.shb-resume__img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--lv-night); }
.shb-resume__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shb-resume__b { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.shb-resume__t {
    font-size: 18px; line-height: 1.45; font-weight: 750; color: var(--lv-on);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shb-resume__sub { margin: 6px 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--lv-on-2); font-variant-numeric: tabular-nums; }
.shb-bar { display: block; align-self: stretch; height: 6px; border-radius: 999px; background: var(--lv-glass-2); overflow: hidden; }
.shb-bar i { display: block; height: 100%; width: var(--p, 0%); min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, var(--lv-mint), var(--lv-on)); }
.shb-resume__go {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; padding: 0 24px; border-radius: 13px;
    background: var(--lv-on); color: var(--lv-deep-ink); font-size: 15px; font-weight: 700;
    box-shadow: 0 12px 26px -14px color-mix(in srgb, black 70%, transparent);
}
.shb-resume:hover .shb-resume__go { background: color-mix(in srgb, var(--color-primary) 10%, var(--color-on-dark)); }

/* ═══ THÂN: tấm trắng chồng mép dải ═══ */
.shb { position: relative; max-width: calc(var(--lv-max) + 2 * var(--lv-gutter)); margin: -110px auto 0; padding: 0 var(--lv-gutter) 64px; }
.shb.shb--level { margin-top: 24px; }
.shb-sheet {
    padding: 22px 24px 24px; border-radius: 22px; background: var(--lv-surface); border: 1px solid var(--lv-hair); color: var(--lv-text);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--lv-shade) 10%, transparent), 0 30px 60px -36px color-mix(in srgb, var(--lv-shade) 55%, transparent);
}
.shb-sheet + .shb-sheet, .shb-notice + .shb-sheet { margin-top: 20px; }
.shb-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; }
.shb-h h2 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 750; letter-spacing: -.01em; color: var(--lv-ink); }
.shb-h span { font-size: 13.5px; line-height: 1.5; color: var(--lv-muted); }
.shb-h--lv { margin-top: 20px; }
.shb-sub { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 20px 0 10px; }
.shb-sub h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--lv-ink); }
.shb-sub span { font-size: 13px; line-height: 1.5; color: var(--lv-muted); }
.shb-sub a { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--lv-brand-fg); text-decoration: none; white-space: nowrap; }
.shb-sub a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Hàng cuộn ngang + nút cuộn */
.shb-rowwrap { position: relative; }
.shb-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 14px; overflow-x: auto; padding: 2px 2px 10px;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--lv-border) transparent;
}
.shb-row > .shb-cw { scroll-snap-align: start; }
.shb-nav {
    position: absolute; top: 72px; z-index: 6; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--lv-border); background: var(--lv-surface); color: var(--lv-ink); box-shadow: var(--lv-sh-2);
    transform: translateY(-50%);
    transition: border-color var(--lv-dur) var(--lv-ease), color var(--lv-dur) var(--lv-ease), opacity var(--lv-dur) var(--lv-ease), visibility var(--lv-dur);
}
.shb-nav:hover { border-color: color-mix(in srgb, var(--color-primary) 55%, var(--lv-border)); color: var(--lv-brand-fg); }
.shb-nav--l { left: -10px; } .shb-nav--r { right: -10px; }
/* Hết đường cuộn: ẩn hẳn — mờ một nửa vẫn đè lên ảnh thẻ đầu/cuối */
.shb-nav.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
.shb-rowwrap.is-static .shb-nav { display: none; }
@media (hover: none) and (pointer: coarse) { .shb-nav { display: none; } }

/* ── Thẻ bài ── */
.shb-cw { position: relative; display: flex; min-width: 0; }
.shb-c {
    display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; border-radius: 16px; text-decoration: none; color: inherit;
    border: 1px solid var(--lv-hair); background: var(--lv-surface);
    transition: border-color var(--lv-dur) var(--lv-ease), box-shadow var(--lv-dur) var(--lv-ease);
}
.shb-c:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--lv-hair)); box-shadow: var(--lv-sh-2); text-decoration: none; color: inherit; }
.shb-c:focus-visible { outline: 2px solid var(--lv-brand-fg); outline-offset: 2px; }
.shb-c__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lv-night); }
.shb-c__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Thiếu ảnh: nền dải + TÊN chủ đề đặt như bìa sách (góc dưới trái, tối đa 3 dòng) */
.shb-c__ph {
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 44px 14px 16px;
    background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--color-primary) 40%, transparent), transparent 60%), var(--lv-band-grad);
}
.shb-c__ph b {
    font-size: 17px; line-height: 1.4; font-weight: 750; letter-spacing: -.01em; color: color-mix(in srgb, var(--color-on-dark) 82%, transparent);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.shb-c__tag {
    position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 1.45; font-weight: 700;
    background: color-mix(in srgb, var(--lv-night) 72%, transparent); color: var(--lv-on);
}
.shb-c__dur {
    position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 8px; font-size: 12px; line-height: 1.45; font-weight: 700;
    background: color-mix(in srgb, var(--lv-night) 78%, transparent); color: var(--lv-on); font-variant-numeric: tabular-nums;
}
.shb-c__lock {
    position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: color-mix(in srgb, var(--lv-night) 80%, transparent); color: var(--lv-on);
}
.shb-c.is-lock .shb-c__img img { filter: grayscale(.6) brightness(.85); }
.shb-c__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: color-mix(in srgb, var(--lv-night) 55%, transparent); }
.shb-c__prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--lv-mint); }
.shb-c__b { padding: 12px 14px 14px; min-width: 0; }
.shb-c__b h3 {
    margin: 0; font-size: 15px; line-height: 1.45; font-weight: 700; color: var(--lv-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shb-c__b p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--lv-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.shb-c__b .shb-c__note { color: var(--lv-warn-deep); font-weight: 600; }

.shb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.shb-empty { grid-column: 1 / -1; padding: 22px; border-radius: 14px; border: 1px dashed var(--lv-border); background: var(--lv-bg); text-align: center; font-size: 14px; color: var(--lv-muted); }
.shb-result { margin: 4px 0 14px; font-size: 14px; color: var(--lv-muted); }
.shb-result b { color: var(--lv-ink); font-variant-numeric: tabular-nums; }

/* ── Tìm + loại bài + lọc video ── */
.shb-find { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shb-find__q { position: relative; flex: 1 1 300px; min-width: 0; }
.shb-find__q input {
    width: 100%; height: 48px; padding: 0 52px 0 16px; border-radius: 13px; border: 1px solid var(--lv-border); background: var(--lv-bg);
    font: 500 15px var(--lv-font); color: var(--lv-ink); outline: none; transition: border-color var(--lv-dur) var(--lv-ease), background var(--lv-dur) var(--lv-ease);
}
.shb-find__q input::placeholder { color: var(--lv-faint); }
.shb-find__q input:focus { border-color: color-mix(in srgb, var(--color-primary) 60%, var(--lv-border)); box-shadow: var(--lv-focus); background: var(--lv-surface); }
.shb-find__q button {
    position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
    color: var(--lv-muted); display: grid; place-items: center;
}
.shb-find__q button:hover { color: var(--lv-brand-fg); background: var(--lv-wash); }
.shb-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 13px; background: var(--lv-sunken); border: 1px solid var(--lv-hair); }
/* <a> ở hub (link thật khi tắt JS) · <button> ở trang Lịch sử (chỉ lọc tại chỗ) */
.shb-seg > :is(a, button) {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
    background: transparent; font: 600 14px/1.45 var(--lv-font); color: var(--lv-muted); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.shb-seg > :is(a, button):hover { color: var(--lv-ink); }
.shb-seg > :is(a, button).is-on { background: var(--lv-surface); color: var(--lv-ink); box-shadow: var(--lv-sh-1); }
.shb-seg > :is(a, button):focus-visible { outline: 2px solid var(--lv-brand-fg); outline-offset: 1px; }
.shb-find__more { display: none; flex-wrap: wrap; gap: 8px; }
[data-type="video"] .shb-find__more { display: flex; }

/* Lọc tại chỗ theo loại bài: data-type trên #shbLib (hub) / main (trang một cấp), JS đổi — không tải lại trang */
[data-type="dialogue"] [data-kind="video"], [data-type="video"] [data-kind="dialogue"] { display: none; }
.shb-only { display: none; }
[data-type=""] .shb-only[data-for=""], [data-type="dialogue"] .shb-only[data-for="dialogue"], [data-type="video"] .shb-only[data-for="video"] { display: inline; }
[data-type=""] div.shb-only[data-for=""], [data-type="dialogue"] div.shb-only[data-for="dialogue"], [data-type="video"] div.shb-only[data-for="video"] { display: block; }
.shb-lvc[hidden] { display: none; }
/* Đang hỏi máy chủ (tìm / giọng / độ dài): mờ khối thư viện thay cho trang trắng tải lại */
#thu-vien { transition: opacity var(--lv-dur) var(--lv-ease); }
.shb-lib.is-loading #thu-vien { opacity: .55; pointer-events: none; }
.shb-sel select {
    height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--lv-border); background: var(--lv-surface); color: var(--lv-ink);
    font: 600 14px var(--lv-font); cursor: pointer;
}
.shb-sel.is-on select { border-color: var(--lv-brand-strong); background: var(--lv-wash); color: var(--lv-brand-deep); }
.shb-ted { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--lv-border); font-size: 14px; font-weight: 600; color: var(--lv-text); cursor: pointer; }
.shb-ted input { width: 18px; height: 18px; margin: 0; accent-color: var(--lv-brand-strong); }
.shb-ted.is-on { border-color: var(--lv-brand-strong); background: var(--lv-wash); color: var(--lv-brand-deep); }
.shb-reset { font-size: 14px; font-weight: 700; color: var(--lv-brand-fg); text-decoration: none; }
.shb-reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.shb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Chip cấp */
.shb-lvs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.shb-lvs a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--lv-border);
    font-size: 14px; font-weight: 750; color: var(--lv-ink); text-decoration: none; white-space: nowrap;
    transition: border-color var(--lv-dur) var(--lv-ease), background var(--lv-dur) var(--lv-ease);
}
.shb-lvs a span { font-weight: 500; color: var(--lv-muted); }
.shb-lvs a:hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-border)); }
.shb-lvs a.is-on { background: var(--lv-wash); border-color: var(--lv-brand-strong); color: var(--lv-brand-deep); box-shadow: inset 0 0 0 1px var(--lv-brand-strong); }
.shb-lvs a.is-on span { color: var(--lv-brand-deep); }

/* Các cấp khác: ô gọn */
.shb-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shb-lvc {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 16px;
    border: 1px solid var(--lv-hair); text-decoration: none; color: inherit;
    transition: border-color var(--lv-dur) var(--lv-ease), box-shadow var(--lv-dur) var(--lv-ease);
}
.shb-lvc:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--lv-hair)); box-shadow: var(--lv-sh-2); text-decoration: none; color: inherit; }
.shb-lvc__img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--lv-band-grad); }
.shb-lvc__img img { width: 100%; height: 100%; object-fit: cover; opacity: .5; display: block; }
.shb-lvc__img b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--lv-on); }
.shb-lvc__b { display: grid; gap: 2px; min-width: 0; }
.shb-lvc__b strong { font-size: 16px; line-height: 1.45; font-weight: 750; color: var(--lv-ink); }
.shb-lvc__b small { font-size: 13px; line-height: 1.5; color: var(--lv-muted); }
.shb-soon { margin: 14px 0 0; font-size: 13.5px; color: var(--lv-muted); }

/* Thông báo hết lượt (?quota=) */
.shb-notice {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 16px 20px; border-radius: 18px;
    background: var(--lv-surface); border: 1px solid color-mix(in srgb, var(--color-primary) 30%, var(--lv-hair)); box-shadow: var(--lv-sh-2);
}
.shb-notice.is-out { border-color: color-mix(in srgb, var(--color-warning) 45%, var(--lv-hair)); background: var(--color-warning-soft); }
.shb-notice > div { flex: 1 1 280px; }
.shb-notice b { display: block; font-size: 15px; color: var(--lv-ink); }
.shb-notice span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.55; color: var(--lv-text); }
.shb-notice__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--lv-brand-strong); color: var(--lv-on); font-weight: 700; text-decoration: none; }

/* ── Trang một cấp (?level=) ── */
.shb-lvhead { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 18px; }
.shb-lvbadge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--lv-band-grad); color: var(--lv-on); font-size: 20px; font-weight: 800; }
.shb-lvhead > div { flex: 1 1 260px; min-width: 0; }
.shb-lvhead h1 { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; color: var(--lv-ink); }
.shb-lvhead p { margin: 2px 0 0; font-size: 14px; color: var(--lv-muted); }

/* ═══ Tấm "Dán link YouTube" ═══ */
.shb-paste__head { flex: 1; min-width: 0; }
.shb-paste__quota { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; background: var(--lv-wash); color: var(--lv-brand-deep); }
.shb-paste__quota.is-out { background: var(--color-warning-soft); color: var(--lv-warn-deep); }
.shb-paste__form { display: flex; flex-wrap: wrap; gap: 10px; }
.shb-paste__input {
    flex: 1 1 260px; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--lv-border); background: var(--lv-bg);
    font: 500 15px var(--lv-font); color: var(--lv-ink); outline: none;
}
.shb-paste__input:focus { border-color: color-mix(in srgb, var(--color-primary) 60%, var(--lv-border)); box-shadow: var(--lv-focus); background: var(--lv-surface); }
.shb-paste__btn { flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer; background: var(--lv-brand-strong); color: var(--lv-on); font: 700 15px var(--lv-font); }
.shb-paste__btn:disabled { opacity: .65; cursor: default; }
.sh-paste__msg { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--lv-muted); }
.sh-paste__msg:empty { display: none; }
.sh-paste__msg.ok { color: var(--lv-brand-deep); }
.sh-paste__msg.err { color: var(--lv-warn-deep); }

/* ═══ Kebab quản lý (admin) ═══ */
.sh-card__kebab-wrap { position: absolute; top: 8px; right: 8px; z-index: 5; }
.sh-card__kebab { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; cursor: pointer; background: color-mix(in srgb, var(--lv-night) 80%, transparent); color: var(--lv-on); }
.sh-card__menu { display: none; position: absolute; top: 34px; right: 0; min-width: 200px; padding: 5px; border-radius: 12px; border: 1px solid var(--lv-border); background: var(--lv-surface); box-shadow: var(--lv-sh-3); z-index: 6; }
.sh-card__menu.is-open { display: block; }
.sh-card__menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--lv-text); font: 600 13.5px var(--lv-font); text-align: left; cursor: pointer; }
.sh-card__menu button:hover { background: var(--lv-sunken); }
.sh-card__menu button.is-danger { color: var(--lv-warn-deep); }

/* ═══ Hộp khoá hội thoại ═══ */
.dl-lock__lesson { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--lv-wash); color: var(--lv-brand-deep); font-weight: 700; line-height: 1.5; }
.dl-lock__txt { margin: 0; }

/* ═══ Hộp tạo bài (transcript thủ công · xem trước · xoá) ═══ */
.sh-modal__top { display: flex; align-items: center; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--lv-hair); }
.sh-modal__top h3 { margin: 0; font-size: 17px; font-weight: 750; color: var(--lv-ink); }
.sh-modal__top p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--lv-muted); }
.sh-modal__body { padding: 20px 24px; }
.sh-modal__body h3 { margin: 0 0 8px; font-size: 17px; font-weight: 750; color: var(--lv-ink); }
.sh-modal__body > p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--lv-text); }
.sh-modal__row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.sh-modal__row img { width: 140px; height: 80px; flex: none; object-fit: cover; border-radius: 10px; background: var(--lv-sunken); }
.sh-modal__row h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--lv-ink); }
.sh-modal__row p { margin: 0; font-size: 13px; color: var(--lv-muted); }
.sh-modal__row a { color: var(--lv-brand-fg); font-weight: 600; }
.sh-modal__rowinfo { min-width: 0; }
.sh-modal__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px !important; font-size: 13px; color: var(--lv-muted); }
.sh-modal__meta b { color: var(--lv-ink); }
.sh-modal__lv { padding: 2px 9px; border-radius: 8px; background: var(--lv-brand-strong); color: var(--lv-on); font-size: 12px; font-weight: 800; }
.sh-modal__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--lv-ink); }
.sh-modal textarea {
    width: 100%; min-height: 180px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--lv-border); background: var(--lv-surface);
    color: var(--lv-ink); font: 14px/1.6 var(--lv-font); resize: vertical; outline: none;
}
.sh-modal textarea:focus { border-color: color-mix(in srgb, var(--color-primary) 60%, var(--lv-border)); }
.sh-modal__dur { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--lv-sunken); font-size: 13px; font-weight: 600; color: var(--lv-text); }
.sh-modal__dur input { width: 90px; height: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--lv-border); background: var(--lv-surface); color: var(--lv-ink); font-variant-numeric: tabular-nums; }
.sh-modal__msg { min-height: 20px; margin: 10px 0; font-size: 13.5px; }
.sh-modal__msg .ok { color: var(--lv-brand-deep); }
.sh-modal__msg .err { color: var(--lv-warn-deep); }
.sh-modal__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sh-modal__acts--end { justify-content: flex-end; }
.sh-modal__acts--center { justify-content: center; }
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font: 700 15px var(--lv-font); }
.sh-btn--primary { background: var(--lv-brand-strong); color: var(--lv-on); }
.sh-btn--primary:disabled { opacity: .6; cursor: default; }
.sh-btn--ghost { background: var(--lv-surface); color: var(--lv-ink); border-color: var(--lv-border); }
.sh-btn--warn { background: var(--color-warning); color: var(--lv-night); }
.sh-warn { margin-bottom: 16px; padding: 10px 12px; border-radius: 10px; background: var(--color-warning-soft); color: var(--lv-warn-deep); font-size: 13.5px; line-height: 1.55; text-align: left; }
.sh-toast {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 1300; transform: translate(-50%, 14px);
    max-width: min(92vw, 440px); padding: 12px 18px; border-radius: 12px; background: var(--color-snackbar); color: var(--color-on-dark);
    font-size: 14px; font-weight: 600; box-shadow: var(--lv-sh-3); opacity: 0; pointer-events: none; transition: opacity var(--lv-dur) var(--lv-ease), transform var(--lv-dur) var(--lv-ease);
}
.sh-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ═══ MÀN VỪA / ĐIỆN THOẠI ═══ */
@media (max-width: 1100px) {
    .shb-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .shb-resume { max-width: 640px; }
    .shb-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .shb-band { --lv-band-pb: 96px; }
    .shb-quick { gap: 8px; margin-top: 14px; }
    .shb-pill { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
    .shb-resume { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 18px; }
    .shb-resume__t { font-size: 15.5px; }
    .shb-resume__sub { margin: 4px 0 8px; font-size: 13px; }
    .shb-resume__go { min-height: 44px; width: 100%; margin-top: 10px; }
    .shb { margin-top: -70px; padding-bottom: 40px; }
    .shb-sheet { padding: 16px 14px 18px; border-radius: 18px; }
    .shb-sheet + .shb-sheet, .shb-notice + .shb-sheet { margin-top: 14px; }
    .shb-h h2 { font-size: 18px; }
    .shb-row { grid-auto-columns: 72%; gap: 12px; }
    .shb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .shb-grid .shb-c__b { padding: 10px 11px 12px; }
    .shb-grid .shb-c__b h3 { font-size: 14px; }
    .shb-grid .shb-c__ph { padding: 36px 11px 12px; }
    .shb-grid .shb-c__ph b { font-size: 14px; -webkit-line-clamp: 2; }
    .shb-seg { width: 100%; }
    .shb-seg > :is(a, button) { flex: 1 1 0; min-width: 0; padding: 0 8px; }
    .shb-lvs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
    .shb-lvs::-webkit-scrollbar { display: none; }
    .shb-lvs a { flex: none; }
    .shb-sub a { margin-left: 0; flex-basis: 100%; }
    .shb-levels { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .shb-lvc { grid-template-columns: 76px minmax(0, 1fr); }
    .shb-lvhead h1 { font-size: 22px; }
    .shb.shb--level { margin-top: 16px; }
}
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
    .shb :is(input[type="search"], input[type="url"]), .shb-paste__input { font-size: max(16px, 1em); }
}

/* ═══ TTKK (24/10/2026, đợt S1): bổ sung cho bản chép ═══ */
.shb-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: 13.5px; font-weight: 650; color: var(--lv-muted); text-decoration: none; }
.shb-back:hover { color: var(--lv-brand-fg); text-decoration: none; }
.shb-hero__copy .shb-plan { margin-top: 6px; font-size: 13.5px; color: var(--lv-on-3); }
.shb-h span a { color: var(--lv-brand-fg); font-weight: 650; }
.shb-paste__quota a.shp__buy { margin-left: 8px; font-weight: 700; color: var(--lv-brand-fg); }
