/* RS Bayi — MediaTek Flash & Password Recovery (RSPRO 1:1 workflow · RSBayi theme) */
.mtk-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mtk-page [hidden] { display: none !important; }
.mtk-page .mtk-boot { flex: 1; min-height: 320px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 11px; }
.mtk-page .mtk-boot-ico { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--gold-2); }
.mtk-page .mtk-boot b { display: block; color: var(--text); font-size: 12px; font-weight: 600; }
.mtk-page .mtk-boot span { display: block; color: var(--faint); font-size: 9.5px; margin-top: 2px; }
.mtk-page .mtk-grid { min-height: 0; height: 100%; }
.mtk-page .mtk-main { padding: 10px 12px; gap: 8px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.mtk-page .mtk-log-panel { height: 100%; display: flex; flex-direction: column; }
.mtk-page .mtk-chip-badge { display: inline-flex; align-items: center; max-width: 340px; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-2); color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtk-page .mtk-chip-badge.on { border-color: rgba(163,77,84,.45); color: #f4dadd; background: rgba(141,61,67,.16); }
.mtk-page .mtk-da-mode { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: rgba(141,61,67,.20); color: #f09aa2; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; }
.mtk-page .mtk-da-mode:empty { display: none; }
.mtk-page .mtk-head-actions { display: flex; align-items: center; gap: 8px; }
.mtk-page .mtk-status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-2); color: var(--muted); font-size: 10px; font-weight: 500; }
.mtk-page .mtk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.mtk-page .mtk-dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.mtk-page .mtk-dot.wait { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.mtk-page .mtk-dot.err { background: var(--err); }

/* RSPRO Toolbar (DA Model + Scatter + Gelişmiş) */
.mtk-page .mtk-toolbar { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.012); flex-shrink: 0; }
.mtk-page .mtk-toolbar-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.mtk-page .mtk-lbl { color: var(--muted); font-size: 10px; font-weight: 600; white-space: nowrap; }
.mtk-page .mtk-da-search { width: 165px; flex: 0 0 165px; height: 28px; padding: 0 9px; font-size: 10.5px; }
.mtk-page .mtk-da-model-wrap { flex: 1 1 220px; min-width: 180px; position: relative; }
.mtk-page .mtk-da-model-btn { width: 100%; height: 28px; padding: 0 28px 0 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--paper-2); color: var(--text); font: 500 10.5px/1 inherit; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; transition: border-color .14s ease, background .14s ease; }
.mtk-page .mtk-da-model-btn:hover { border-color: #8d3d43; background: var(--paper-3); }
.mtk-page .mtk-da-model-btn::after { content: ""; position: absolute; right: 10px; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.mtk-page .mtk-da-model-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; z-index: 80; padding: 4px; border: 1px solid #4d2429; border-radius: 9px; background: #141011; box-shadow: 0 16px 38px rgba(0,0,0,.68); display: flex; flex-direction: column; gap: 1px; }
.mtk-page .mtk-da-model-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: 500 10.5px/1.25 inherit; text-align: left; cursor: pointer; }
.mtk-page .mtk-da-model-item:hover { background: rgba(141,61,67,.22); color: #f4dadd; }
.mtk-page .mtk-da-model-item.on { background: rgba(141,61,67,.32); color: #ffd8dc; font-weight: 600; }
.mtk-page .mtk-da-model-item small { color: var(--faint); font-size: 9.5px; font-family: "JetBrains Mono", monospace; flex-shrink: 0; }
.mtk-page .mtk-da-manual-wrap { flex: 1 1 260px; display: flex; align-items: center; gap: 6px; min-width: 200px; }
.mtk-page .mtk-da-path { flex: 1; min-width: 120px; height: 28px; padding: 0 9px; font-size: 10.5px; }
.mtk-page .mtk-scatter-input { flex: 1 1 190px; min-width: 140px; height: 28px; padding: 0 9px; font-size: 10.5px; }
.mtk-page .mtk-flash-mode { width: 148px; height: 28px; font-size: 10.5px; }
.mtk-page .mtk-mini { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-2); border-radius: 7px; background: var(--paper-2); color: var(--muted); cursor: pointer; flex-shrink: 0; transition: all .14s ease; }
.mtk-page .mtk-mini:hover { color: var(--text); border-color: #753338; background: var(--paper-3); }
.mtk-page .mtk-checkline { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; font-weight: 500; cursor: pointer; user-select: none; white-space: nowrap; }
.mtk-page .mtk-checkline input[type="checkbox"] { accent-color: #8d3d43; width: 13px; height: 13px; margin: 0; cursor: pointer; }
.mtk-page .mtk-advanced { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; border-top: 1px dashed var(--line); }
.mtk-page .mtk-storage-chips { display: inline-flex; align-items: center; gap: 4px; }
.mtk-page .mtk-root-chip { height: 22px; padding: 0 8px; border: 1px solid #303030; border-radius: 5px; background: #181818; color: #a0a0a0; font: 500 10px/1 inherit; cursor: pointer; transition: all .12s ease; }
.mtk-page .mtk-root-chip:hover { background: #222; border-color: #404040; color: #d0d0d0; }
.mtk-page .mtk-root-chip.on { background: #2a1618; border-color: #8d3d43; color: #f4dadd; font-weight: 600; }

/* Device Info Strip */
.mtk-page .mtk-info-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; flex-shrink: 0; }
.mtk-page .mtk-info-strip > span { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); font-size: 9.5px; }
.mtk-page .mtk-info-strip b { color: var(--faint); font-weight: 600; flex-shrink: 0; }
.mtk-page .mtk-info-strip em { color: var(--text); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Partition Table (Fastboot Flash fbf-table-wrap / fbf-row 1:1) */
.mtk-page .mtk-part-toolbar { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 2px 0; }
.mtk-page .mtk-count { height: 24px; padding: 0 10px; font-size: 11px; }
.mtk-page .mtk-part-search { margin-left: auto; width: 190px; height: 28px; padding: 0 10px; font-size: 11px; }
.mtk-page .mtk-table-wrap { flex: 1 1 auto; min-height: 180px; display: flex; flex-direction: column; overflow: hidden; }
.mtk-page .mtk-thead,
.mtk-page .mtk-fbf-row {
  grid-template-columns: 34px 38px minmax(170px, 1.35fr) 100px 88px minmax(140px, 1.6fr) 28px !important;
}
.mtk-page .mtk-part-list { flex: 1 1 auto; min-height: 150px; overflow-y: auto; padding: 6px; }
.mtk-page .mtk-fbf-row { cursor: pointer; }
.mtk-page .mtk-row-menu { width: 22px; height: 20px; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer; }
.mtk-page .mtk-row-menu:hover { border-color: var(--line-2); background: var(--paper-2); color: var(--text); }
.mtk-page .mtk-row-pop { position: fixed; z-index: 95; min-width: 132px; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); box-shadow: 0 12px 30px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 2px; }
.mtk-page .mtk-row-pop button { display: flex; align-items: center; gap: 7px; width: 100%; height: 26px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font: 500 10.5px/1 inherit; cursor: pointer; text-align: left; }
.mtk-page .mtk-row-pop button:hover { background: rgba(141,61,67,.22); color: #f4dadd; }
.mtk-page .mtk-empty { margin: auto; padding: 28px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); }
.mtk-page .mtk-empty b { color: var(--text); font-size: 11.5px; font-weight: 600; }
.mtk-page .mtk-empty span { color: var(--faint); font-size: 10px; margin-bottom: 4px; }

/* RSPRO 4x3 Bottom Action Grid */
.mtk-page .mtk-bottom-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; flex-shrink: 0; }
.mtk-page .mtk-bottom-actions .tls-btn { justify-content: center; height: 28px; padding: 0 8px; font-size: 10.5px; font-weight: 600; gap: 5px; }
.mtk-page .mtk-bottom-actions .tls-btn svg { width: 13.5px; height: 13.5px; flex-shrink: 0; }
.mtk-page .mtk-stop { border-color: rgba(214, 48, 49, .28); color: #e7b4b4; }
.mtk-page .mtk-stop:not(:disabled) { border-color: rgba(214, 48, 49, .62); color: #ffd0d0; background: rgba(214, 48, 49, .14); }
.mtk-page .mtk-stop:not(:disabled):hover { border-color: #d63031; color: #fff; background: rgba(214, 48, 49, .28); }
.mtk-page .mtk-stop:disabled { opacity: .42; }
.mtk-page .mtk-busy { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border: 1px solid rgba(163,77,84,.45); border-radius: 7px; background: rgba(141,61,67,.14); color: #f4dadd; font-size: 10px; font-weight: 500; flex-shrink: 0; }
.mtk-page .mtk-busy i { width: 11px; height: 11px; border: 2px solid rgba(244,218,221,.25); border-top-color: #f4dadd; border-radius: 50%; animation: mtkSpin .75s linear infinite; }
@keyframes mtkSpin { to { transform: rotate(360deg); } }

/* Flash Log (Right Panel — RSPRO # Step: Status 1:1) */
.mtk-page .mtk-log-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; color: #b8b8b8; flex-shrink: 0; }
.mtk-page .mtk-log { flex: 1; min-height: 0; padding: 10px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; font-family: "Segoe UI", "Noto Sans", sans-serif; font-size: 13.5px; background: var(--card); color: var(--text); }
.mtk-page .mtk-log .log-line { line-height: 1.48; padding: 1px 0; }
.mtk-page .mtk-log .mtk-log-hash {
  color: #5B5B5B;
  font-size: 1em;
  font-weight: 400;
  margin-right: 8px;
  position: static;
  top: auto;
}
.mtk-page .mtk-log .c-rslabel { color: #E0E0E0; }
html[data-theme="light"] .mtk-page .mtk-log .mtk-log-hash { color: #9aa0a8; }
.mtk-page .mtk-log .c-rsok { color: #4CAF50; font-weight: 650; }
.mtk-page .mtk-log .c-rsinfo { color: #4FC3F7; }
.mtk-page .mtk-log .c-rswarn { color: #FFA726; }
.mtk-page .mtk-log .c-rserr { color: #EF5350; font-weight: 650; }
.mtk-page .mtk-log .c-rsbakir { color: #C2700C; font-weight: 700; }
.mtk-page .mtk-log .c-rsgold { color: #D19C4F; }
html[data-theme="light"] .mtk-page .mtk-log .c-rslabel { color: #1a1d22; }
html[data-theme="light"] .mtk-page .mtk-log .c-rsok { color: #2E7D32; }
html[data-theme="light"] .mtk-page .mtk-log .c-rsinfo { color: #0277BD; }
html[data-theme="light"] .mtk-page .mtk-log .c-rswarn { color: #E65100; }
html[data-theme="light"] .mtk-page .mtk-log .c-rserr { color: #C62828; }
html[data-theme="light"] .mtk-page .mtk-log .c-rsbakir { color: #C2700C; }

/* Modals Common */
.mtk-modal-back { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .74); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.mtk-modal { width: min(560px, 96vw); max-height: 92vh; border: 1px solid #2e2022; border-radius: 14px; background: #101012; color: #f2f2f2; box-shadow: 0 26px 72px rgba(0, 0, 0, .78); display: flex; flex-direction: column; overflow: hidden; }
.mtk-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mtk-modal-head b { font-size: 13px; font-weight: 600; }
.mtk-modal-body { padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.mtk-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.mtk-x { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-2); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.mtk-x:hover { color: var(--text); }

/* ================================================================== */
/* RSPRO PasswordRecoveryModeDialogView (RSBayi Crimson Theme)        */
/* ================================================================== */
.mtk-mode-dialog { width: min(440px, 95vw); padding: 18px 20px; border: 1px solid #352024; border-radius: 14px; background: #111113; box-shadow: 0 24px 64px rgba(0,0,0,.84); display: flex; flex-direction: column; gap: 13px; }
.mtk-mode-head { display: flex; align-items: center; gap: 11px; }
.mtk-mode-iconwell { width: 38px; height: 38px; border-radius: 10px; background: #2a1618; border: 1px solid #6e2c33; display: grid; place-items: center; color: #e06c75; flex-shrink: 0; }
.mtk-mode-titles { display: flex; flex-direction: column; gap: 2px; }
.mtk-mode-titles b { font-size: 14px; font-weight: 600; color: #f2f2f2; }
.mtk-mode-titles span { font-size: 11px; color: #8a8a8a; }
.mtk-mode-desc { font-size: 11.5px; line-height: 1.45; color: #a5a5ae; margin: 0; }
.mtk-mode-rpmb { padding: 10px 12px; border-radius: 10px; background: #151517; border: 1px solid #26262a; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mtk-mode-rpmb-lbl { font-size: 11px; color: #e6a8ae; font-weight: 600; }
.mtk-mode-rpmb-sub { font-size: 10.5px; color: #858585; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.mtk-mode-foot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding-top: 2px; }
.mtk-mode-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border: 1px solid #2e2e34; border-radius: 9px; background: #1a1a1f; color: #e4e4ea; font: 600 11.5px/1 inherit; cursor: pointer; transition: all .14s ease; }
.mtk-mode-btn:hover { background: #232329; border-color: #3f3f47; }
.mtk-mode-btn.ghost { background: #2a1416; color: #ffd8dc; border-color: #5a262b; }
.mtk-mode-btn.ghost:hover { background: #381a1d; border-color: #783239; }
.mtk-mode-btn.primary { background: #2a1618; border-color: #753338; color: #f4dadd; }
.mtk-mode-btn.primary:hover { background: #381c20; border-color: #964047; color: #ffffff; }

/* ================================================================== */
/* RSPRO PasswordVerifyWindow (Şifre Doğrulama · RSBayi Theme)        */
/* ================================================================== */
.mtk-pv-window { width: min(840px, 96vw); min-height: 610px; max-height: 94vh; padding: 18px 20px 16px; border: 1px solid #2b2022; border-radius: 15px; background: #0e0e0e; color: #f4f4f4; box-shadow: 0 28px 80px rgba(0,0,0,.85); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.mtk-pv-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 2px; flex-shrink: 0; }
.mtk-pv-shield { width: 42px; height: 42px; border-radius: 12px; background: #2a1618; border: 1px solid #6e2c33; display: grid; place-items: center; color: #e06c75; }
.mtk-pv-titleblock { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mtk-pv-titlerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mtk-pv-titlerow b { font-size: 16px; font-weight: 600; color: #f4f4f4; }
.mtk-pv-kindbadge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 7px; background: #1f1416; border: 1px solid #4d2429; color: #e6a8ae; font-size: 10.5px; font-weight: 600; }
.mtk-pv-subline { font-size: 12px; color: #8a8680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtk-pv-headbtns { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mtk-pv-engine {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  max-width: min(360px, 46vw); height: 32px; padding: 0 10px;
  border-radius: 10px; background: #161616; border: 1px solid #2c2c2c; color: #e8e4de;
}
.mtk-pv-engine .mtk-dot { width: 6px; height: 6px; background: #d4b36a; box-shadow: 0 0 8px rgba(212,179,106,.45); }
.mtk-pv-engine.is-gpu .mtk-dot { background: #6fba94; box-shadow: 0 0 8px rgba(111,186,148,.55); }
.mtk-pv-engine b { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.mtk-pv-engine span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #d7c2c4; font-size: 11.5px; font-weight: 600;
}
@media (max-width: 980px) {
  .mtk-pv-engine { display: none; }
}
.mtk-pv-ghostbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: #171717; border: 1px solid #2a2a2a; color: #d8d8d8; font: 500 11.5px/1 inherit; cursor: pointer; transition: all .14s ease; }
.mtk-pv-ghostbtn:hover { background: #1f1f1f; border-color: #3a3a3a; color: #ffffff; }
.mtk-pv-ghostbtn:disabled { opacity: .45; cursor: not-allowed; }

/* Body Grid: Left Controls (1fr) + Right Lock Stage (348px) — exact RSPRO 1:1 */
.mtk-pv-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 18px; overflow: hidden; }
.mtk-pv-left { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding-right: 2px; }
.mtk-pv-card { background: #141414; border: 1px solid #242424; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mtk-pv-card-top { display: flex; flex-direction: column; gap: 10px; }
.mtk-pv-card-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.mtk-pv-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mtk-pv-card-h b { font-size: 11px; font-weight: 600; color: #e0a8ae; }
.mtk-pv-manual-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.mtk-pv-field { width: 100%; min-height: 38px; padding: 7px 12px; border-radius: 10px; background: #161616; border: 1px solid #2c2c2c; color: #e8e8e8; font: 500 13px/1.3 inherit; outline: none; transition: border-color .14s ease, background .14s ease; }
.mtk-pv-field:focus { background: #181818; border-color: #8d3d43; }
.mtk-pv-field::placeholder { color: #676767; }
.mtk-pv-primarybtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 15px; border-radius: 10px; background: #2a1618; border: 1px solid #753338; color: #f4dadd; font: 600 12px/1 inherit; cursor: pointer; transition: all .14s ease; white-space: nowrap; }
.mtk-pv-primarybtn:hover { background: #381c20; border-color: #964047; color: #ffffff; }
.mtk-pv-primarybtn:active { background: #221113; }
.mtk-pv-primarybtn:disabled { opacity: .42; cursor: not-allowed; }
.mtk-pv-dangerbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 0 14px; border-radius: 10px; background: #2a1416; border: 1px solid #5a262b; color: #ffd8dc; font: 600 11.5px/1 inherit; cursor: pointer; transition: all .14s ease; }
.mtk-pv-dangerbtn:hover { background: #381a1d; border-color: #783239; }

/* Segmented Tabs (Hazır liste / Elle + charset) */
.mtk-pv-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 12px; background: #1a1a1a; border: 1px solid #2e2e2e; }
.mtk-pv-seg button { height: 30px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #9a9a9a; font: 500 12px/1 inherit; cursor: pointer; transition: all .12s ease; }
.mtk-pv-seg button:hover { color: #e4e4e4; }
.mtk-pv-seg button.on { background: #2a1618; border-color: #753338; color: #f4dadd; font-weight: 600; }

.mtk-pv-select { width: 100%; height: 36px; padding: 0 10px; border-radius: 10px; background: #161616; border: 1px solid #2c2c2c; color: #edeae6; font: 500 12.5px/1 inherit; outline: none; cursor: pointer; }
.mtk-pv-select:focus { border-color: #8d3d43; }
.mtk-pv-filerow .rs-dd { width: 100%; min-width: 0; }
html[data-theme] .rs-dd-pv .rs-dd-btn {
  height: 36px;
  min-height: 36px;
  padding: 0 32px 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 34px;
  color: #edeae6;
  background-color: #161616;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
}
html[data-theme] .rs-dd-pv .rs-dd-btn:hover { border-color: #4a3034; }
html[data-theme] .rs-dd-pv .rs-dd-btn:focus { border-color: #8d3d43; }
html[data-theme] .rs-dd-menu.rs-dd-menu-pv {
  z-index: 160;
  background: #141011;
  border: 1px solid #4d2429;
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .68);
}
html[data-theme] .rs-dd-menu-pv .rs-dd-item {
  font-size: 12.5px;
  color: #e8e4de;
  border-radius: 8px;
}
html[data-theme] .rs-dd-menu-pv .rs-dd-item:hover,
html[data-theme] .rs-dd-menu-pv .rs-dd-item.on {
  background: #2a1618;
  color: #f4dadd;
}
.mtk-pv-detail { font-size: 11px; color: #8a8a8a; padding: 0 2px; line-height: 1.38; }
.mtk-pv-filerow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.mtk-pv-textarea { min-height: 54px; max-height: 76px; resize: vertical; font-size: 11.5px; font-family: "JetBrains Mono", Consolas, monospace; }
.mtk-pv-charset-box { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 1px solid #222222; }
.mtk-pv-charset-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: #cfcfcf; }
.mtk-pv-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.mtk-pv-chip { height: 24px; padding: 0 9px; border-radius: 7px; background: #191919; border: 1px solid #2c2c2c; color: #cfcfcf; font: 600 10.5px/1 inherit; cursor: pointer; }
.mtk-pv-chip:hover { background: #2a1618; border-color: #753338; color: #f4dadd; }
.mtk-pv-lenrow { display: grid; grid-template-columns: auto 48px auto 48px auto; gap: 6px; align-items: center; font-size: 11px; color: #8d8d8d; }
.mtk-pv-lenrow input { height: 30px; padding: 0 6px; text-align: center; border-radius: 8px; background: #161616; border: 1px solid #2c2c2c; color: #f2f2f2; font: 600 11.5px/1 inherit; }
.mtk-pv-pbar { width: 100%; height: 4px; border-radius: 2px; background: #2a2a2a; overflow: hidden; }
.mtk-pv-pbar > i { display: block; height: 100%; width: 0%; background: #a34d54; transition: width .08s linear; }

/* Right Lock Stage (exact RSPRO 1:1: ComputeBadge top, #0C0C0C rounded stage middle, Caption + SpacedPassword bottom) */
.mtk-pv-stage { background: #121212; border: 1px solid #242424; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.mtk-pv-canvas-host { flex: 1; background: #0c0c0c; border: 1px solid #1e1e1e; border-radius: 22px; display: grid; place-items: center; min-height: 290px; position: relative; user-select: none; overflow: hidden; }
.mtk-pv-canvas { display: block; max-width: 100%; }

/* Footer Card (exact RSPRO 1:1) */
.mtk-pv-foot { flex-shrink: 0; background: #141414; border: 1px solid #242424; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.mtk-pv-foot-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mtk-pv-verified-box { background: #121a16; border: 1px solid #2a4a38; border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mtk-pv-failed-box { background: #1a1414; border: 1px solid #3a2828; border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; color: #e8c8c8; font-size: 13px; font-weight: 600; }

/* Auth Dialog */
.mtk-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mtk-field { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--muted); }
.mtk-field.span2 { grid-column: span 2; }
.mtk-field input, .mtk-field select, .mtk-field textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--paper-2); color: var(--text); font: 500 11px/1.35 inherit; }
.mtk-inline { display: flex; gap: 6px; align-items: stretch; }
.mtk-inline textarea { flex: 1; font-family: "JetBrains Mono", monospace; font-size: 10.5px; }
.mtk-auth-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mtk-auth-status { color: var(--muted); font-size: 10.5px; }
.mtk-auth-code { padding: 6px 9px; border-radius: 7px; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; font-family: "JetBrains Mono", monospace; font-size: 10.5px; }

@media (max-width: 820px) {
  .mtk-pv-body { grid-template-columns: 1fr; overflow-y: auto; }
  .mtk-page .mtk-info-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mtk-page .mtk-bottom-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
