/* Hop huong dan "Cài app lên điện thoại" (public/js/cai-app.js) */
.cai-app-nen { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(28, 25, 23, .55); }
.cai-app-hop { width: min(380px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 22px 20px 18px; border-radius: 20px;
  background: var(--color-surface, #fff); color: var(--color-text, var(--color-gray-900, #3b2a22)); box-shadow: 0 18px 50px rgba(0, 0, 0, .25); text-align: center; font-family: inherit; }
.cai-app-hop img { border-radius: 16px; }
.cai-app-hop h2 { margin: 10px 0 8px; font-size: 1.15rem; }
.cai-app-hop p { margin: 0 0 8px; line-height: 1.5; }
.cai-app-hop ol { margin: 0 0 16px; padding-left: 1.3em; text-align: left; line-height: 1.6; }
.cai-app-hop li { margin: 4px 0; }
.cai-app-ic { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 6px; background: rgba(0, 122, 255, .12); color: #007aff; font-weight: 700; }
.cai-app-dong { min-height: 46px; padding: 0 28px; border: 0; border-radius: 14px; background: #c8372d; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.cai-app-dong:focus-visible { outline: 3px solid #ecb365; outline-offset: 2px; }

/* 🔔 Thông báo (public/js/thong-bao.js): hộp ở trang chủ (dùng .cai-app-hop) + thẻ gọn trên /khoa-hoc (#khThongBao) */
.tb-hop { text-align: left; }
.tb-hop h2 { text-align: center; }
.tb-hop .cai-app-dong { display: block; margin: 14px auto 0; background: transparent; color: inherit; border: 2px solid rgba(43, 29, 58, .25); }
.tb-than p { margin: 0 0 10px; line-height: 1.5; }
.tb-than ol, .tb-than ul { margin: 0 0 12px; padding-left: 1.3em; line-height: 1.6; }
.tb-gt { font-size: .9rem; opacity: .85; }
.tb-on { font-weight: 700; color: #2f8f6a; }
.tb-loi { color: #b3261e; font-weight: 600; font-size: .92rem; }
.tb-nut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; margin: 2px 0;
  border: 2px solid rgba(43, 29, 58, .85); border-radius: 14px; background: #fffdf8; color: #2b1d3a; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.tb-nut.is-chinh { background: #c8372d; border-color: #c8372d; color: #fff; width: 100%; }
.tb-nut.is-tat-het { color: #b3261e; }
.tb-nut[disabled] { opacity: .6; cursor: default; }
.tb-nut:focus-visible, .tb-loai:focus-within { outline: 3px solid #ecb365; outline-offset: 2px; }
.tb-ds { display: grid; gap: 8px; margin: 0 0 10px; }
.tb-loai { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 2px solid rgba(43, 29, 58, .18); border-radius: 14px; cursor: pointer; background: rgba(255, 255, 255, .6); }
.tb-loai input { flex: none; width: 22px; height: 22px; accent-color: #c8372d; }
.tb-loai span { display: grid; gap: 2px; }
.tb-loai small { font-size: .84rem; opacity: .8; }
.tb-loai.is-tat { opacity: .55; cursor: default; }
.tb-hang { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-hang .tb-nut { flex: 1 1 140px; }
.tb-gon summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 30px; cursor: pointer; list-style: none; }
.tb-gon summary::-webkit-details-marker { display: none; }
.tb-gon summary::after { content: '▾'; margin-left: auto; font-size: .9rem; opacity: .6; }
.tb-gon[open] summary::after { content: '▴'; }
.tb-gon[open] summary { margin-bottom: 10px; }
.tb-tit { font-weight: 800; }
.tb-tt { font-size: .9rem; opacity: .8; }
.tb-tt.is-bat { color: #2f8f6a; font-weight: 700; opacity: 1; }
.tb-tt.is-tat { color: #c8372d; font-weight: 700; opacity: 1; }
