/* v402.7: clean rebase. Only theory-card compact + modal. No keyboard/waterfall changes. */
.ptp-theory-card-compact-v4027{
  max-height: 178px !important;
  overflow: hidden !important;
  position: relative !important;
  border-color: rgba(34,211,238,.45) !important;
}
.ptp-theory-large-btn-v4027{
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 0 8px 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(34,211,238,.55) !important;
  background: linear-gradient(180deg,#35e4ff,#0da9d6) !important;
  color:#00131c !important;
  font-weight: 900 !important;
  cursor:pointer !important;
  box-shadow: 0 0 14px rgba(34,211,238,.18) !important;
}
.ptp-theory-compact-note-v4027{
  font-size: 11px !important;
  line-height: 1.35 !important;
  color:#aeefff !important;
  margin: 0 0 8px 0 !important;
  opacity: .95 !important;
}
.ptp-theory-card-compact-v4027 p,
.ptp-theory-card-compact-v4027 ul,
.ptp-theory-card-compact-v4027 ol,
.ptp-theory-card-compact-v4027 li,
.ptp-theory-card-compact-v4027 small:not(.ptp-keep),
.ptp-theory-card-compact-v4027 .description,
.ptp-theory-card-compact-v4027 .desc{
  display: none !important;
}
#ptp-theory-modal-v4027{display:none;position:fixed;inset:0;z-index:2147483000;font-family:system-ui,Segoe UI,Arial,sans-serif;}
#ptp-theory-modal-v4027.open{display:block;}
#ptp-theory-modal-v4027 .ptp-theory-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(3px);}
#ptp-theory-modal-v4027 .ptp-theory-modal-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(980px,92vw);height:min(720px,88vh);background:#071525;border:1px solid rgba(34,211,238,.45);border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.55);color:#eef8ff;display:flex;flex-direction:column;overflow:hidden;}
#ptp-theory-modal-v4027 .ptp-theory-modal-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid rgba(148,163,184,.18);background:linear-gradient(180deg,#0e223b,#091827);}
#ptp-theory-modal-v4027 .ptp-theory-modal-head b{font-size:20px;color:#f7d36a;}
#ptp-theory-modal-v4027 .ptp-theory-close{border:1px solid rgba(247,211,106,.45);background:linear-gradient(180deg,#26384f,#101d30);color:#fff;border-radius:10px;padding:9px 14px;font-weight:800;cursor:pointer;}
#ptp-theory-modal-v4027 .ptp-theory-modal-body{padding:18px;overflow:auto;font-size:18px;line-height:1.55;}
#ptp-theory-modal-v4027 .ptp-theory-modal-body *{max-width:100%;}
#ptp-theory-modal-v4027 .ptp-theory-modal-body button,
#ptp-theory-modal-v4027 .ptp-theory-modal-body a{font-size:16px!important;min-height:42px!important;}
