/* Dạng bài mới (2026-11-28): chọn dạng bài, chọn vị trí, yêu cầu riêng, sắp xếp hội thoại. Dùng biến màu chung nên tự hợp giao diện tối. */
.sheet.cw { max-height: min(88vh, 860px); overflow-y: auto; }
.gl-tyg .cw-o { padding: 10px 14px; }
.gl-tyg .cw-o .cw-i { width: 44px; height: 44px; }
.gl-tyg .cw-o b { font-size: 1.02rem; }
.gl-tyn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.gl-tyn span { font-weight: 800; margin-right: 4px; }
.gl-tyn .ppill { min-width: 52px; }
.gl-req { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, #e8962e 16%, var(--card)); border: 1.5px dashed color-mix(in srgb, #e8962e 55%, var(--line)); font-weight: 700; color: var(--fg); }
.gl-req .ic { flex: none; width: 18px; height: 18px; }
.gl-pos { font-size: 1.5rem; letter-spacing: .02em; }
.gl-posopts { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.gl-posopts .glopt { justify-content: center; } .gl-posopts .glopt i { width: 40px; height: 40px; font-size: 1.2rem; }
.gl-pm { font-family: system-ui, sans-serif; line-height: 1; display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; margin: 0 3px; border-radius: 8px; background: #e8962e; color: #2b1a03; font-family: var(--sans, inherit); font-size: .75em; font-weight: 900; vertical-align: .15em; }
.glword { font-size: 2.4rem; line-height: 1.2; }
.gl-w .glsen { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gl-w .dsay { flex: none; }
.rdl-seq { list-style: none; margin: 10px 0; padding: 10px; display: flex; flex-direction: column; gap: 8px; border-radius: 18px; border: 2px dashed var(--line); counter-reset: rs; min-height: 60px; }
.rdl-seq.ok { border-color: #7cc79a; } .rdl-seq.no { border-color: #e0866f; }
.rdl-seq li { counter-increment: rs; display: flex; gap: 8px; align-items: stretch; }
.rdl-seq li::before { content: counter(rs); flex: none; width: 28px; display: grid; place-items: center; font-weight: 900; color: var(--muted); }
.rdl-seq li.e { min-height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 5%, transparent); }
.rdl-pool { display: flex; flex-direction: column; gap: 8px; }
.rdl-line { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; text-align: left; padding: 10px 14px; border-radius: 16px; background: var(--card); color: var(--fg); border: 2px solid color-mix(in srgb, var(--fg) 14%, transparent); box-shadow: 0 3px 0 color-mix(in srgb, var(--fg) 10%, transparent); min-height: 0; }
.rdl-line .zh { font-size: 1.2rem; }
.rdl-line small { flex-basis: 100%; color: var(--muted); }
.rdl-line .rdl-who { font-style: normal; font-weight: 900; color: #c0761c; }
.rdl-seq .rdl-line { background: color-mix(in srgb, var(--t-blue, #dfe8f7) 60%, var(--card)); }
.rdl-ok { margin: 4px 0; }
@media (max-width: 640px) { .glword { font-size: 2rem; } .gl-pos { font-size: 1.3rem; } .rdl-line .zh { font-size: 1.1rem; } }
@media (min-width: 720px) { .sheet.cw.gl-ty { width: min(760px, 94vw); max-width: none; } .gl-tyg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .gl-tyg > .cw-o:first-child { grid-column: 1 / -1; } }
