/* HỒ SƠ HÀ NỘI — giao diện thêm 27/10. Nạp SAU room.css.
   ip- điện thoại kiểu iPhone (js/phone.js) · br- giới thiệu vụ án (js/brief.js)
   zm- khung soi vật chứng (js/soi.js) · pp- tờ giấy tờ in rõ chữ (js/soi.js)
   Cuối file: làm mới mặt bảng điều tra + chế độ bảng toàn màn hình (js/board.js). */

/* ================= ĐIỆN THOẠI KIỂU IPHONE ================= */
.phn.ip { aspect-ratio: 9 / 19.5; height: 94%; border-radius: calc(var(--u) * 3.6); background: #000; border: calc(var(--u) * .5) solid #111;
  box-shadow: 0 0 0 calc(var(--u) * .28) #8a8a8f, 0 0 0 calc(var(--u) * .4) #2b2b2e, 0 2em 5em #000; font-family: -apple-system, 'SF Pro Text', 'Segoe UI', var(--ui); color: #fff; }
.ip-island { position: absolute; left: 50%; top: 1.4%; transform: translateX(-50%); width: 31%; height: 3.3%; border-radius: 3em; background: #000; z-index: 6; }
.ip-scr { background: #000; }
.ip-v-home .ip-scr { background: radial-gradient(ellipse 80% 45% at 70% 18%, rgba(224, 168, 90, .55), transparent 70%),
  radial-gradient(ellipse 70% 40% at 15% 80%, rgba(40, 90, 160, .75), transparent 70%), linear-gradient(170deg, #1b2440, #0c0f1c 60%, #1d1220); }
.ip-status { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 3.6% 8% 0 11%; height: 5.5%; font-size: calc(var(--u) * 1.12); }
.ip-status b { font-weight: 600; }
.ip-status > span { display: flex; align-items: center; gap: .35em; }
.ip-sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: .75em; }
.ip-sig i { width: 3px; border-radius: 1px; background: #fff; }
.ip-sig i:nth-child(1) { height: 30%; } .ip-sig i:nth-child(2) { height: 55%; } .ip-sig i:nth-child(3) { height: 80%; } .ip-sig i:nth-child(4) { height: 100%; }
.ip-wifi { width: 1.15em; height: .8em; }
.ip-bat { position: relative; width: 1.7em; height: .82em; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: .28em; padding: 1px; box-sizing: border-box; }
.ip-bat::after { content: ''; position: absolute; right: -4px; top: 30%; width: 2px; height: 40%; border-radius: 0 2px 2px 0; background: rgba(255, 255, 255, .5); }
.ip-bat i { display: block; width: 68%; height: 100%; border-radius: .15em; background: #fff; }
.ip-homebar { position: absolute; left: 34%; right: 34%; bottom: 1.1%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .85); z-index: 6; cursor: pointer; }
.ip-body { flex: 1; display: flex; flex-direction: column; min-height: 0; font-size: calc(var(--u) * 1.15); }
/* màn hình chính */
.ip-widget { margin: 9% 7% 0; padding: 7% 7% 6%; border-radius: 1.4em; background: rgba(255, 255, 255, .13); backdrop-filter: blur(16px); display: grid; gap: .1em; }
.ip-widget small { color: rgba(255, 255, 255, .75); font-size: .9em; }
.ip-widget b { font-size: calc(var(--u) * 5); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.ip-widget span { color: rgba(255, 255, 255, .7); font-size: .85em; }
.ip-dock { margin: auto 4% 9%; padding: 5% 3% 4%; border-radius: 1.8em; background: rgba(255, 255, 255, .17); backdrop-filter: blur(18px); display: grid; grid-template-columns: repeat(3, 1fr); }
.ip-app { position: relative; display: grid; justify-items: center; gap: .35em; background: none; border: 0; color: #fff; font-size: calc(var(--u) * .85); cursor: pointer; }
.ip-ico { display: grid; place-items: center; width: calc(var(--u) * 4.6); aspect-ratio: 1; border-radius: 23%; box-shadow: 0 .2em .5em rgba(0, 0, 0, .35); }
.ip-ico svg { width: 72%; height: 72%; }
.ip-ico-msg { background: linear-gradient(#67f27e, #13bf31); }
.ip-ico-dos { background: linear-gradient(#ffd977, #f0a51c); }
.ip-ico-room { background: linear-gradient(#9a6c3e, #5b3c1f); }
.ip-app em { position: absolute; top: -.35em; right: 14%; min-width: 1.5em; padding: .1em .35em; box-sizing: border-box; border-radius: 1em; background: #ff3b30; font-style: normal; font-size: .95em; font-weight: 600; }
/* danh sách tin nhắn */
.ip-nav { padding: 2% 4% 0; }
.ip-nav button, .ip-back { background: none; border: 0; color: #0a84ff; font-size: calc(var(--u) * 1.15); cursor: pointer; padding: 0; }
.ip-large { margin: 1% 6% 3%; font-size: calc(var(--u) * 2.5); font-weight: 800; letter-spacing: -.01em; }
.ip-list { flex: 1; overflow-y: auto; }
.ip-row { display: grid; grid-template-columns: auto 1fr; gap: .75em; align-items: center; padding: .55em 5% 0; cursor: pointer; }
.ip-row:hover { background: rgba(255, 255, 255, .05); }
.ip-rt { display: grid; grid-template-columns: 1fr auto; gap: .1em .4em; padding-bottom: .65em; border-bottom: 1px solid #2c2c2e; min-width: 0; }
.ip-rt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-rt small { color: #8e8e93; font-size: .82em; }
.ip-rt span { grid-column: 1 / -1; color: #8e8e93; font-size: .9em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ip-av { display: grid; place-items: center; width: calc(var(--u) * 3.5); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(#a5a5aa, #6c6c71); font-style: normal; font-weight: 600; font-size: .85em; color: #fff; }
.ip-av.sm { width: calc(var(--u) * 2.8); margin: 0 auto .15em; font-size: .7em; }
.ip-empty { padding: 20% 0; text-align: center; color: #8e8e93; }
/* cuộc trò chuyện */
.ip-thead { position: relative; display: grid; place-items: center; padding: 1% 0 .6em; background: rgba(28, 28, 30, .92); border-bottom: 1px solid #2c2c2e; }
.ip-thead > div { display: grid; justify-items: center; font-size: .8em; }
.ip-thead b { font-weight: 500; }
.ip-back { position: absolute; left: 4%; top: 30%; font-size: calc(var(--u) * 2.4) !important; line-height: 1; }
.ip-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 3% 4% 2%; }
.ip-stamp { align-self: center; margin: .4em 0 .8em; color: #8e8e93; font-size: .75em; text-align: center; }
.ip-from { margin: .6em 0 .1em .9em; color: #8e8e93; font-size: .72em; }
.ip-bub { position: relative; z-index: 1; align-self: flex-start; max-width: 76%; padding: .45em .8em; border-radius: 1.1em; background: #26252a; line-height: 1.32; font-size: calc(var(--u) * 1.08); word-wrap: break-word; }
.ip-bub.me { align-self: flex-end; background: #0a84ff; }
.ip-bub.tail { margin-bottom: .35em; }
/* đuôi bong bóng kiểu iMessage: một mảnh cùng màu + một mảnh màu nền đè lên để cắt cong */
.ip-bub.tail::before, .ip-bub.tail::after { content: ''; position: absolute; bottom: 0; height: 1.1em; z-index: -1; }
.ip-bub.tail::before { left: -.4em; width: 1.1em; background: #26252a; border-bottom-right-radius: .9em; }
.ip-bub.tail::after { left: -.62em; width: .62em; background: #000; border-bottom-right-radius: .55em; }
.ip-bub.me.tail::before { left: auto; right: -.4em; background: #0a84ff; border-bottom-right-radius: 0; border-bottom-left-radius: .9em; }
.ip-bub.me.tail::after { left: auto; right: -.62em; border-bottom-right-radius: 0; border-bottom-left-radius: .55em; }
.ip-asks { display: flex; flex-direction: column; align-items: flex-end; gap: .35em; margin: 0 3% .5em; }
.ip-ask { max-width: 85%; padding: .45em .9em; border: 1px solid #0a84ff; border-radius: 1.1em; background: transparent; color: #4da3ff; font: inherit; font-size: .88em; text-align: left; cursor: pointer; }
.ip-ask:hover { background: rgba(10, 132, 255, .15); }
.ip-input { display: flex; align-items: center; gap: .5em; margin: 0 3% 9%; }
.ip-input i { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: #2c2c2e; color: #8e8e93; font-style: normal; }
.ip-input span { flex: 1; padding: .35em .9em; border: 1px solid #3a3a3c; border-radius: 1.2em; color: #636366; font-size: .9em; }
/* cuộc gọi */
.ip-call .ip-scr { background: linear-gradient(175deg, #47505f, #1c222c 55%, #0d1015); }
.ip-cbody { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ip-cwho { margin-top: 20%; display: grid; justify-items: center; gap: .3em; text-align: center; }
.ip-cwho b { font-size: calc(var(--u) * 2.1); font-weight: 400; }
.ip-cwho span { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.ip-cbtns { margin-top: auto; display: flex; justify-content: space-around; padding-bottom: 20%; }
.ip-cbtns > div { display: grid; justify-items: center; gap: .5em; font-size: .85em; }
.ip-cbtns button { width: calc(var(--u) * 5.6); aspect-ratio: 1; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; }
.ip-cbtns svg { width: 48%; height: 48%; }
.ip-dec { background: #ff3b30; } .ip-dec svg { transform: rotate(135deg); }
.ip-ans { background: #34c759; animation: blink 1.2s infinite; }
.ip-sub { margin: 8% 7% 0 !important; min-height: 5.5em; padding: .7em .9em; border-radius: 1em; background: rgba(0, 0, 0, .35); font-family: inherit !important; font-size: calc(var(--u) * 1.2) !important; color: #fff !important; text-align: center; line-height: 1.4; }
.ip-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em .4em; margin: 8% 9% 0; opacity: .55; }
.ip-keys div { display: grid; justify-items: center; gap: .3em; font-size: .68em; text-align: center; }
.ip-keys i { width: calc(var(--u) * 3.8); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ip-next { margin: auto auto 16%; padding: .55em 2.2em; border: 0; border-radius: 2em; background: rgba(255, 255, 255, .22); color: #fff; font-size: calc(var(--u) * 1.1); cursor: pointer; }
/* thông báo trượt xuống */
#phbanner { display: flex; align-items: flex-start; gap: .7em; width: 38%; padding: .75em .9em; border-radius: 1.5em; background: rgba(38, 38, 42, .86); backdrop-filter: blur(20px); font-family: -apple-system, 'SF Pro Text', 'Segoe UI', var(--ui); color: #fff; }
#phbanner .ip-ico { width: calc(var(--u) * 2.8); flex: none; border-radius: 22%; }
#phbanner > div { flex: 1; min-width: 0; }
#phbanner small { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .55); font-size: .75em; letter-spacing: .03em; }
#phbanner b { display: block; margin: .1em 0; }
#phbanner p { margin: 0; color: rgba(255, 255, 255, .9); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ================= GIỚI THIỆU VỤ ÁN ================= */
#brief { z-index: 100; background: radial-gradient(ellipse at 50% 40%, rgba(30, 26, 20, .96), rgba(0, 0, 0, .97)); }
#brief.on { display: grid; place-items: center; }
.br-box { position: relative; width: 74%; height: 88%; box-sizing: border-box; display: flex; flex-direction: column; padding: calc(var(--u) * 1.6) calc(var(--u) * 3) calc(var(--u) * 1.4);
  color: #1d1a14; border-radius: .3em; font-family: var(--ui); animation: rise .35s;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .025) 0 2px, transparent 2px 5px), linear-gradient(#ece3cb, #e0d4b4); box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 5) #000; }
.br-box::before { content: 'MẬT'; position: absolute; right: calc(var(--u) * 4); top: calc(var(--u) * 4.5); padding: .05em .5em; border: 3px solid rgba(179, 36, 28, .6); color: rgba(179, 36, 28, .6); font-weight: 800; letter-spacing: .2em; font-size: calc(var(--u) * 1.6); transform: rotate(8deg); pointer-events: none; }
.br-label { display: flex; justify-content: space-between; padding-bottom: .5em; border-bottom: 2px solid #1d1a14; font-family: Cousine, monospace; font-size: calc(var(--u) * 1); letter-spacing: .12em; color: #6d2a12; }
.br-body { flex: 1; min-height: 0; overflow-y: auto; padding: calc(var(--u) * 1) calc(var(--u) * .5) 0; }
.br-body h2 { margin: .1em 0 .5em; font-family: 'Noto Serif', serif; font-size: calc(var(--u) * 2.6); }
.br-body p { margin: 0 0 .7em; font-size: calc(var(--u) * 1.3); line-height: 1.6; max-width: 92%; }
.br-img { position: relative !important; inset: auto !important; height: calc(var(--u) * 17); margin-bottom: 1em; border: calc(var(--u) * .5) solid #fff; box-shadow: 0 .4em 1em rgba(0, 0, 0, .35); transform: rotate(-.6deg); background: #222; }
.br-img img { object-fit: cover; }
.br-cast { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 1.6); margin-bottom: 1.2em; }
.br-p { width: calc(var(--u) * 11.5); display: grid; gap: .2em; font-size: calc(var(--u) * 1); }
.br-p:nth-child(odd) .br-por { transform: rotate(-1.5deg); }
.br-p:nth-child(even) .br-por { transform: rotate(1.2deg); }
.br-por { position: relative !important; inset: auto !important; aspect-ratio: 3 / 4; border: calc(var(--u) * .45) solid #fff; box-shadow: 0 .3em .8em rgba(0, 0, 0, .35); }
.br-p b { margin-top: .4em; font-size: 1.1em; }
.br-p small { color: #5b4a30; line-height: 1.3; }
.br-tl { position: relative; display: grid; gap: .6em; margin: .2em 0 1.2em; padding-left: 1.4em; font-size: calc(var(--u) * 1.25); }
.br-tl::before { content: ''; position: absolute; left: .35em; top: .4em; bottom: .4em; width: 2px; background: #6d2a12; }
.br-tl div { position: relative; display: grid; grid-template-columns: 4.2em 1fr; }
.br-tl div::before { content: ''; position: absolute; left: -1.33em; top: .45em; width: .6em; height: .6em; border-radius: 50%; background: #b3241c; }
.br-tl b { font-family: Cousine, monospace; color: #6d2a12; }
.br-how { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * .9); font-size: calc(var(--u) * 1.1); }
.br-how div { display: grid; gap: .2em; padding: .7em .9em; background: rgba(0, 0, 0, .05); border-left: 3px solid #b3241c; line-height: 1.45; }
.br-how b { font-size: 1.05em; }
.br-nav { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding-top: calc(var(--u) * 1); border-top: 1px dashed rgba(0, 0, 0, .3); }
.br-box .btn { color: #1d1a14; background: rgba(0, 0, 0, .06); border-color: #6d5a3a; font-size: calc(var(--u) * 1.15); }
.br-box .btn:not(.btn-line) { background: #1d1a14; color: #f4ecd8; border-color: #1d1a14; }
.br-box .btn:disabled { opacity: .3; }
.br-dots { display: flex; gap: .5em; }
.br-dots i { width: .6em; height: .6em; border-radius: 50%; background: rgba(0, 0, 0, .2); }
.br-dots i.on { background: #b3241c; }
.br-skip { position: absolute; right: calc(var(--u) * 1); top: calc(var(--u) * -2.6); color: var(--dim); font-size: calc(var(--u) * 1); cursor: pointer; }
.br-skip:hover { color: var(--ink); }
.intro-brief { opacity: .85; }

/* ================= KHUNG SOI VẬT CHỨNG ================= */
#zoom { z-index: 120; background: rgba(6, 6, 7, .97); font-family: var(--ui); }
.zm-top { position: absolute; left: 0; right: 0; top: 0; height: 8%; z-index: 3; display: flex; align-items: center; gap: calc(var(--u) * .6); padding: 0 2%; box-sizing: border-box; background: rgba(0, 0, 0, .6); border-bottom: 1px solid rgba(233, 228, 216, .12); font-size: calc(var(--u) * 1.1); }
.zm-cap { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f1e7d2; }
.zm-n { font-family: Cousine, monospace; color: var(--dim); }
.zm-b { padding: .35em .8em; border: 1px solid rgba(233, 228, 216, .25); border-radius: .3em; background: rgba(255, 255, 255, .05); color: var(--ink); white-space: nowrap; cursor: pointer; }
.zm-b:hover { border-color: var(--amber); }
.zm-b.on { background: rgba(224, 168, 90, .25); border-color: var(--amber); color: #fff; }
.zm-x { font-size: calc(var(--u) * 1.7); line-height: 1; padding: .1em .55em; }
.zm-vp { position: absolute; left: 0; right: 0; top: 8%; bottom: 6%; overflow: hidden; cursor: grab; touch-action: none; }
.zm-vp:active { cursor: grabbing; }
.zm-vp.lensing { cursor: crosshair; }
.zm-c { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.zm-c > img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; box-shadow: 0 1em 3em rgba(0, 0, 0, .8); }
.zm-c > .pp { margin: 0; }
.zm-lens { position: absolute; z-index: 2; display: none; width: 240px; height: 240px; overflow: hidden; border-radius: 50%; border: 3px solid var(--amber); background: #000; box-shadow: 0 0 0 2px #000, 0 1em 2.5em rgba(0, 0, 0, .8); pointer-events: none; }
.zm-lens > * { position: absolute !important; left: 0; top: 0; margin: 0 !important; transform-origin: 0 0; }
.zm-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: calc(var(--u) * 4); height: calc(var(--u) * 8); border: 1px solid rgba(233, 228, 216, .25); border-radius: .4em; background: rgba(0, 0, 0, .55); color: #fff; font-size: calc(var(--u) * 3); cursor: pointer; }
.zm-prev { left: 1%; } .zm-next { right: 1%; }
.zm-help { position: absolute; left: 0; right: 0; bottom: 0; height: 6%; display: grid; place-items: center; color: var(--dim); font-size: calc(var(--u) * .95); }
.zm-miss { display: grid; place-items: center; text-align: center; padding: 40px; box-sizing: border-box; background: #18181a; border: 3px dashed #444; color: #9a948a; font: 28px/1.5 var(--ui); }
.zm-can { cursor: zoom-in; }
.zm-open { display: block; margin: .6em auto 0; padding: .35em 1.1em; border-radius: 1em; background: rgba(224, 168, 90, .16); border: 1px solid var(--amber); color: #f3d9a4; font-size: calc(var(--u) * 1.05); cursor: pointer; }
.zm-open:hover { background: rgba(224, 168, 90, .3); }
.paper .zm-open { color: #6d3a10; background: rgba(179, 120, 40, .12); }
.insp .zm-can { position: relative; }
.insp .zm-can::after { content: '🔍'; position: absolute; right: .4em; bottom: .3em; font-size: calc(var(--u) * 1.6); filter: drop-shadow(0 0 4px #000); pointer-events: none; }

/* ================= TỜ GIẤY TỜ (bản đọc rõ chữ) ================= */
/* Cỡ chữ tính bằng em: ở bàn làm việc theo --u, trong khung soi cố định 22px (tờ giấy rộng 760px) */
#zoom .pp { font-size: 22px; }
.dk-read .pp { font-size: calc(var(--u) * 1.08); }
/* giấy viết tay: chữ to hơn chữ in một chút */
#zoom .pp-notebook, #zoom .pp-board, #zoom .pp-sleeve, #zoom .pp-back { font-size: 27px; }
.dk-read .pp-notebook, .dk-read .pp-board, .dk-read .pp-sleeve, .dk-read .pp-back { font-size: calc(var(--u) * 1.32); }
.pp { position: relative; box-sizing: border-box; margin: .6em 0 1.2em; padding: 2.2em 2.6em 2em; background: #fbf8f0; color: #1b1a17; font-family: 'Noto Serif', serif; line-height: 1.6; box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .3); }
.pp .pp-l, .pp .dk-line { margin: .2em 0; }
.pp .dk-line { font-family: inherit; font-size: 1em; line-height: inherit; padding: .05em .3em; }
.pp .pp-title { text-align: center; font-weight: 700; letter-spacing: .04em; font-size: 1.12em; margin: .5em 0 .8em; }
.pp-nat { text-align: center; line-height: 1.35; }
.pp-nat b { display: block; font-size: .85em; letter-spacing: .02em; }
.pp-nat span { display: block; font-size: .85em; font-weight: 700; }
.pp-nat i { display: block; width: 28%; height: 1px; margin: .3em auto 0; background: #1b1a17; }
.pp-no { margin: .6em 0 .2em; text-align: right; font-family: Cousine, monospace; font-size: .78em; color: #555; }
.pp-sign { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.6em; text-align: center; font-size: .85em; }
.pp-sign > div { position: relative; }
.pp-sign b, .pp-sign1 b { display: block; letter-spacing: .03em; }
.pp-scr { display: block; width: 9em; height: 2.8em; margin: .2em auto 0; color: #1f3d8a; }
/* kích thước con dấu tính theo cỡ chữ riêng của nó (.6em) nên width/height lớn để ra vòng ~6em của tờ giấy */
.pp-seal { position: absolute; left: 50%; top: .4em; display: grid; place-items: center; align-content: center; width: 11em; height: 11em; box-sizing: border-box; padding: 2.6em; border-radius: 50%; transform: translateX(-80%) rotate(-14deg);
  border: .45em solid rgba(196, 30, 30, .72); outline: .15em solid rgba(196, 30, 30, .6); outline-offset: -1.3em; color: rgba(196, 30, 30, .85); font-family: var(--ui); font-weight: 800; font-size: .6em; line-height: 1.15; text-align: center; mix-blend-mode: multiply; pointer-events: none; }
.pp-seal::before { content: '★'; display: block; font-size: 1.4em; }
.pp-sign1 { margin-top: 1.3em; margin-left: auto; width: 13em; text-align: center; font-size: .85em; }
/* phiếu giao hàng: giấy than hồng, đánh máy */
.pp-receipt { background: #f7dfe4; font-family: Cousine, monospace; padding-top: 1.4em; }
.pp-receipt .pp-l, .pp-receipt .dk-line { border-bottom: 1px dotted rgba(0, 0, 0, .3); }
.pp-rhead { display: flex; justify-content: space-between; font-size: .75em; color: #8a3a4a; }
/* sổ tay: dòng kẻ xanh, lề đỏ, chữ viết tay */
.pp-notebook { padding-left: 3.6em; background: repeating-linear-gradient(transparent 0 1.6em, rgba(60, 110, 190, .32) 1.6em calc(1.6em + 1px)), #fdfbf2; font-family: 'Patrick Hand', cursive; color: #1f3d8a; line-height: 1.6em; }
.pp-notebook::before { content: ''; position: absolute; left: 2.6em; top: 0; bottom: 0; width: 2px; background: rgba(200, 60, 60, .5); }
.pp-notebook .pp-l, .pp-notebook .dk-line { margin: 0; }
.pp-notebook .pp-title { text-align: left; color: #1b1a17; }
/* bảng trắng: khung nhôm, bút dạ */
.pp-board { background: linear-gradient(160deg, #ffffff, #eef1f3); border: .6em solid #b9bec4; border-radius: .3em; font-family: 'Patrick Hand', cursive; color: #1d3f9a; }
.pp-board .pp-title { color: #c0392b; }
/* vòng giấy bọc cốc: giấy kraft, mép xé, mực xanh */
.pp-sleeve { padding: 1.4em 3.2em; background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .12), transparent 60%), #c9a777; font-family: 'Patrick Hand', cursive; color: #1f3d8a;
  clip-path: polygon(0 4%, 3% 0, 97% 2%, 100% 0, 99% 22%, 100% 41%, 98% 63%, 100% 82%, 98% 100%, 2% 97%, 0 100%, 2% 78%, 0 58%, 2% 37%, 0 18%); box-shadow: none; }
/* thuộc tính file trên máy tính */
.pp-file { padding: 0 0 1.2em; background: #1e1f22; color: #e6e6e6; font-family: Cousine, monospace; border-radius: .6em; border: 1px solid #3a3b3f; }
.pp-file .pp-l, .pp-file .dk-line { padding-left: 1.3em; padding-right: 1.3em; }
.pp-file .dk-line:hover { background: rgba(224, 168, 90, .18); }
.pp-win { display: flex; align-items: center; gap: .45em; margin-bottom: 1em; padding: .6em .9em; background: #2b2c30; border-radius: .6em .6em 0 0; }
.pp-win i { width: .75em; height: .75em; border-radius: 50%; background: #ff5f57; }
.pp-win i:nth-child(2) { background: #febc2e; } .pp-win i:nth-child(3) { background: #28c840; }
.pp-win span { margin-left: .7em; color: #a8a8ad; font-size: .85em; }
/* biên bản lời khai / bản ghi lời thoại: đánh máy */
.pp-record, .pp-transcript { background: #f4f1e6; font-family: Cousine, monospace; }
.pp-rec { text-align: center; padding-bottom: .6em; margin-bottom: .4em; border-bottom: 2px solid #1b1a17; }
.pp-rec b { display: block; letter-spacing: .14em; }
.pp-rec span { font-size: .72em; color: #555; }
/* mặt sau ảnh: ghi chú tay */
.pp-back { background: #ebe5d4; font-family: 'Patrick Hand', cursive; color: #2f2c28; }
/* tờ A4 dán tường: hai mẩu băng dính */
.pp-sheet::before, .pp-sheet::after { content: ''; position: absolute; top: -.6em; width: 5em; height: 1.4em; background: rgba(240, 236, 220, .7); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.pp-sheet::before { left: 8%; transform: rotate(-4deg); } .pp-sheet::after { right: 8%; transform: rotate(5deg); }
/* ảnh chất liệu giấy (Codex đợt L4): chỉ áp khi có file, soi.js thêm lớp i-<tên> vào #stage */
#stage.i-pp_giay .pp-contract, #stage.i-pp_giay .pp-sheet, #stage.i-pp_giay .pp-record, #stage.i-pp_giay .pp-transcript { background: var(--i-pp_giay) center / cover; }
#stage.i-pp_kraft .pp-sleeve { background: var(--i-pp_kraft) center / cover; }
#stage.i-pp_carbon .pp-receipt { background: var(--i-pp_carbon) center / cover; }
#room.i-bd_tape .bd-q::before { width: 84px; height: 28px; margin-left: -42px; top: -13px; background: var(--i-bd_tape) center / 100% 100% no-repeat; box-shadow: none; }

/* ================= BẢNG ĐIỀU TRA: LÀM MỚI ================= */
/* khung gỗ dày quanh mặt bần */
.bd-vp { border: calc(var(--u) * .9) solid #4a2f19; border-image: linear-gradient(135deg, #7a5230, #3b2414 30%, #6b4423 55%, #2f1c0f 80%, #6b4423) 1; box-shadow: inset 0 0 calc(var(--u) * 4) rgba(0, 0, 0, .75), inset 0 calc(var(--u) * .4) calc(var(--u) * .6) rgba(0, 0, 0, .6); }
/* thẻ vật chứng = ảnh polaroid, chú thích viết tay */
.bd-ev { padding: 9px 9px 12px; background: #f7f4ec; }
.bd-ev .bd-vis { height: 120px; border: 1px solid rgba(0, 0, 0, .15); }
.bd-ev > span { font-family: 'Patrick Hand', cursive; font-size: 16px; line-height: 1.15; color: #23201a; }
.bd-ev > span i { font-family: Cousine, monospace; font-size: 12px; color: #a3311b; }
/* ảnh nhân vật = ảnh hồ sơ có dải tên đen */
.bd-p { padding: 7px 7px 0; background: #ece8de; }
.bd-p .bd-vis { height: 146px; }
.bd-p > span { margin: 6px -7px 0; padding: 4px 6px 5px; background: #1d1a14; color: #f4f1ea; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
/* câu trích có băng dính ở mép trên */
.bd-q::before { content: ''; position: absolute; left: 50%; top: -9px; width: 70px; height: 20px; margin-left: -35px; background: rgba(245, 240, 220, .75); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transform: rotate(-3deg); }
.bd-q .bd-pin { display: none; }
#room.i-bd_pin_yellow .bd-q .bd-pin { display: none; }
/* dây len: dày hơn, có viền tối cho nổi trên mặt bần */
.bd-str { stroke-width: 4.5; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)) drop-shadow(0 4px 3px rgba(0, 0, 0, .35)); }
.bd-card:hover { box-shadow: 0 10px 22px rgba(0, 0, 0, .55); }
.bd-bar { background: linear-gradient(#17181c, #0c0d10); }
.bd-t-full, .bd-t-tray { color: #f3d9a4; }
.bd-t-full { margin-left: calc(var(--u) * .4); border-color: rgba(224, 168, 90, .6); }
/* chế độ toàn màn hình: ẩn thanh trên của phòng, bảng chiếm cả khung */
#room.rm-full .rm-top { display: none; }
#room.rm-full .rm-main { top: 0; }
.bd-notray .bd-tl, .bd-notray .bd-tray { display: none; }
