/* Mobay — công cụ kí tự khoảng trống. Nền sáng, nhấn cam/teal theo theme. */
.mb-kt{background:#fff;border:1px solid var(--line);border-radius:26px;padding:18px;margin:0 0 26px;box-shadow:0 10px 30px rgba(51,55,63,.06)}
.mb-kt>div+div{margin-top:16px;padding-top:16px;border-top:1px dashed var(--line)}
.mb-kt-lbl{margin:0 0 10px;font-size:14px;color:var(--ink2);display:flex;align-items:center;justify-content:space-between;gap:10px}
.mb-kt-types{display:flex;flex-wrap:wrap;gap:8px}
.mb-kt-types::after{content:"";flex:999 1 0}
.mb-kt-type{flex:1 1 auto;display:flex;flex-direction:column;align-items:flex-start;gap:1px;background:var(--soft);border:1.5px solid transparent;border-radius:14px;padding:8px 12px;cursor:pointer;font-family:inherit;text-align:left;color:var(--ink)}
.mb-kt-type .n{font-size:14px;line-height:1.25}
.mb-kt-type .c{font-size:11.5px;color:var(--muted2);font-family:ui-monospace,Menlo,Consolas,monospace}
.mb-kt-type.on{border-color:var(--orange);background:#fff5ee}
.mb-kt-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mb-kt-qty{display:flex;align-items:center;background:var(--soft);border-radius:14px;overflow:hidden}
.mb-kt-qty button{width:44px;height:44px;border:none;background:none;font-size:22px;cursor:pointer;color:var(--ink);font-family:inherit}
.mb-kt-n{min-width:34px;text-align:center;font-size:18px}
.mb-kt-pre{display:flex;gap:6px}
.mb-kt-preset{min-width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;cursor:pointer;font-family:inherit;font-size:14px;color:var(--muted)}
.mb-kt-copy,.mb-kt-copy2{flex:1 1 180px;height:46px;border:none;border-radius:14px;background:var(--orange);color:#fff;font-size:15.5px;cursor:pointer;font-family:inherit;box-shadow:0 8px 20px rgba(255,106,44,.3)}
.mb-kt-view{display:flex;flex-wrap:wrap;gap:4px;margin:12px 0 0;min-height:22px}
.mb-kt-cell{width:16px;height:22px;border:1.5px dashed rgba(31,171,189,.55);border-radius:5px;background:rgba(31,171,189,.06)}
.mb-kt-meta{margin:10px 0 0;font-size:13px;color:var(--muted);line-height:1.6}
.mb-kt-meta code{background:var(--soft);padding:1px 6px;border-radius:6px;font-size:12.5px}
.mb-kt-join{display:flex;flex-wrap:wrap;gap:8px}
.mb-kt-in{flex:1 1 220px;min-width:0;height:46px;border:1.5px solid rgba(51,55,63,.16);border-radius:14px;padding:0 14px;font:inherit;font-size:16px;background:var(--soft);color:var(--ink)}
.mb-kt-mode{flex:0 1 auto;height:46px;border:1.5px solid rgba(51,55,63,.16);border-radius:14px;padding:0 10px;font:inherit;font-size:14.5px;background:#fff;color:var(--ink)}
.mb-kt-res{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;border-radius:14px;background:#f0fbfc;border:1px solid rgba(31,171,189,.25)}
.mb-kt-res.bad{background:#fff4f0;border-color:rgba(255,106,44,.35)}
.mb-kt-out{flex:1 1 160px;font-size:18px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
.mb-kt-len{font-size:13px;color:var(--muted2)}
.mb-kt-copy2{flex:0 1 150px;height:40px;font-size:14.5px}
.mb-kt-warn{margin:8px 0 0;font-size:13px;color:#c2410c;min-height:0}
.mb-kt-warn:empty{display:none}
.mb-kt-clear{background:none;border:none;color:var(--muted2);cursor:pointer;font-family:inherit;font-size:12.5px;text-decoration:underline}
.mb-kt-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.mb-kt-list li{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mb-kt-list small{color:var(--muted2);font-size:12px}
/* Lưới tên khoảng trống trong bài: item tự do kích thước, dàn kín hàng */
.mb-body .mb-copyblock.kt .mb-nick{flex:1 1 auto;justify-content:center;white-space:pre}
.mb-body .mb-copyblock.kt::after{content:"";flex:999 1 0}
.mb-kt-hint{display:none;font-size:12px;color:var(--muted2)}
@media (max-width:520px){.mb-kt{padding:14px;border-radius:20px}.mb-kt>div+div{margin-top:12px;padding-top:12px}.mb-kt-hint{display:inline}.mb-kt-types{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding-bottom:6px;margin:0 -14px;padding-left:14px;padding-right:14px}.mb-kt-types::after{display:none}.mb-kt-type{flex:0 0 auto;padding:7px 11px;scroll-snap-align:start}.mb-kt-pre{order:3}}
.kt-gap{display:inline-block;width:.55em;height:1.05em;margin:0 1px;vertical-align:-.15em;border-bottom:2px dashed rgba(31,171,189,.75);background:rgba(31,171,189,.08);border-radius:3px}
.mb-nick.kt-blank{flex-wrap:wrap;gap:2px 1px;max-width:100%}
.mb-nick.kt-blank small{flex-basis:100%;text-align:center;font-size:11.5px;color:var(--muted2);font-family:ui-monospace,Menlo,Consolas,monospace}
.mb-body td .mb-nick{min-width:48px;justify-content:center}
