/* RELOOP Member Tier V1 — Merchant Program Builder */
.reloop-mt-card{
  margin:18px 0 24px;
  overflow:hidden;
  border:1px solid #dbe9f5;
  border-radius:26px;
  background:#fff;
  box-shadow:0 18px 46px rgba(31,84,124,.07);
}

.reloop-mt-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:24px 26px 20px;
  background:
    radial-gradient(circle at 92% 8%,rgba(22,139,255,.10) 0 14%,transparent 14.5%),
    linear-gradient(135deg,#f9fcff 0%,#eef7ff 100%);
}

.reloop-mt-head-copy{min-width:0}
.reloop-mt-kicker{
  display:flex;
  align-items:center;
  gap:8px;
  color:#0879dc;
  font-size:10px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.reloop-mt-kicker i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#168bff;
  box-shadow:0 0 0 5px rgba(22,139,255,.10);
}
.reloop-mt-head h3{
  margin:7px 0 6px;
  color:#173f5d;
  font-size:22px;
  line-height:1.2;
}
.reloop-mt-head p{
  max-width:650px;
  margin:0;
  color:#718b9f;
  font-size:11.5px;
  line-height:1.6;
}

.reloop-mt-switch{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:180px;
  padding:10px 12px 10px 14px;
  border:1px solid rgba(183,215,239,.92);
  border-radius:16px;
  background:rgba(255,255,255,.74);
  box-shadow:0 8px 20px rgba(31,84,124,.05);
  cursor:pointer;
  user-select:none;
}
.reloop-mt-switch>span{
  display:grid;
  gap:2px;
  flex:1;
}
.reloop-mt-switch>span b{
  color:#274c67;
  font-size:10.5px;
}
.reloop-mt-switch>span small{
  color:#8aa0b2;
  font-size:9px;
}
.reloop-mt-switch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.reloop-mt-switch>i{
  position:relative;
  width:38px;
  height:22px;
  flex:0 0 38px;
  border-radius:999px;
  background:#cbd9e4;
  transition:.2s ease;
}
.reloop-mt-switch>i:after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 7px rgba(30,67,95,.18);
  transition:.2s ease;
}
.reloop-mt-switch input:checked+ i{background:#168bff}
.reloop-mt-switch input:checked+ i:after{transform:translateX(16px)}

.reloop-mt-saved-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 26px 8px;
}
.reloop-mt-saved-label span{
  color:#506f84;
  font-size:10px;
  font-weight:800;
}
.reloop-mt-saved-label small{
  color:#93a6b5;
  font-size:9px;
}

.reloop-mt-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  padding:0 26px;
}
.reloop-mt-summary-item{
  display:flex;
  align-items:flex-start;
  gap:11px;
  min-height:76px;
  padding:14px;
  border:1px solid #e0ebf4;
  border-radius:17px;
  background:#fbfdff;
}
.reloop-mt-summary-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#eaf5ff;
  color:#168bff;
  font-size:11px;
  font-weight:900;
}
.reloop-mt-summary-item>div{
  min-width:0;
  display:grid;
  gap:2px;
}
.reloop-mt-summary small{
  color:#8aa0b2;
  font-size:9px;
}
.reloop-mt-summary b{
  color:#214862;
  font-size:13px;
  line-height:1.35;
}
.reloop-mt-summary em{
  color:#8ba0b1;
  font-size:9px;
  font-style:normal;
  line-height:1.35;
}

.reloop-mt-program-map{
  margin:14px 26px 0;
  padding:14px;
  border:1px solid #e1ebf3;
  border-radius:18px;
  background:#f9fcff;
}
.reloop-mt-program-map-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:11px;
}
.reloop-mt-program-map-title span{
  color:#45667d;
  font-size:10px;
  font-weight:800;
}
.reloop-mt-program-map-title small{
  color:#96a8b6;
  font-size:8.5px;
}
.reloop-mt-read-tiers{
  display:flex;
  align-items:stretch;
  gap:8px;
  overflow-x:auto;
  padding:1px 1px 3px;
}
.reloop-mt-read-step{
  position:relative;
  min-width:120px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 11px;
  border:1px solid #dfeaf2;
  border-radius:14px;
  background:#fff;
}
.reloop-mt-read-step:not(:last-child):after{
  content:"›";
  position:absolute;
  right:-7px;
  top:50%;
  z-index:2;
  transform:translateY(-50%);
  width:14px;
  height:14px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eef6fc;
  color:#7f99ab;
  font-size:11px;
  font-weight:900;
}
.reloop-mt-read-level{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#eaf5ff;
  color:#168bff;
  font-size:10px;
  font-weight:900;
}
.reloop-mt-read-step>div{
  min-width:0;
  display:grid;
  gap:2px;
}
.reloop-mt-read-step b{
  max-width:110px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#254b66;
  font-size:10px;
}
.reloop-mt-read-step small{
  color:#879cab;
  font-size:8.5px;
}
.reloop-mt-read-step[data-style="silver"] .reloop-mt-read-level{background:#eef2f5;color:#617382}
.reloop-mt-read-step[data-style="gold"] .reloop-mt-read-level{background:#fff5d8;color:#a9760c}
.reloop-mt-read-step[data-style="violet"] .reloop-mt-read-level{background:#f1ebff;color:#7357b5}
.reloop-mt-read-step[data-style="emerald"] .reloop-mt-read-level{background:#e8f8f0;color:#23845e}
.reloop-mt-read-step[data-style="slate"] .reloop-mt-read-level{background:#edf1f5;color:#475d70}

.reloop-mt-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:16px 26px 22px;
  padding:14px 16px;
  border:1px solid #dce9f3;
  border-radius:17px;
  background:#fff;
  box-shadow:0 8px 20px rgba(31,84,124,.04);
}
.reloop-mt-toolbar>div{
  display:grid;
  gap:3px;
}
.reloop-mt-toolbar b{
  color:#2e526c;
  font-size:10.5px;
}
.reloop-mt-toolbar span{
  color:#8aa0b2;
  font-size:9px;
}
.reloop-mt-toolbar .btn{
  min-width:136px;
  height:38px;
  border-radius:12px;
}

.reloop-mt-editor{
  margin:0 20px 22px;
  overflow:hidden;
  border:1px solid #dce8f2;
  border-radius:22px;
  background:#f8fbfe;
}
.reloop-mt-editor.hide{display:none}

.reloop-mt-editor-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 20px 17px;
  border-bottom:1px solid #e4edf4;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.reloop-mt-editor-kicker{
  display:block;
  margin-bottom:5px;
  color:#168bff;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:.11em;
}
.reloop-mt-editor-head h4{
  margin:0;
  color:#1d4562;
  font-size:17px;
}
.reloop-mt-editor-head p{
  max-width:620px;
  margin:5px 0 0;
  color:#8197a8;
  font-size:10px;
  line-height:1.55;
}
.reloop-mt-draft-state{
  display:grid;
  grid-template-columns:8px auto;
  column-gap:7px;
  row-gap:1px;
  min-width:180px;
  padding:9px 11px;
  border:1px solid #dbe7f0;
  border-radius:13px;
  background:#f7fafc;
}
.reloop-mt-draft-state i{
  width:8px;
  height:8px;
  margin-top:3px;
  border-radius:50%;
  background:#8da2b2;
}
.reloop-mt-draft-state span{
  color:#536f83;
  font-size:9.5px;
  font-weight:800;
}
.reloop-mt-draft-state small{
  grid-column:2;
  color:#98a8b5;
  font-size:8px;
}
.reloop-mt-draft-state.dirty{
  border-color:#bfdfff;
  background:#eef7ff;
}
.reloop-mt-draft-state.dirty i{background:#168bff}
.reloop-mt-draft-state.dirty span{color:#1769ad}

.reloop-mt-builder-section{
  padding:20px;
  border-bottom:1px solid #e4edf4;
}
.reloop-mt-builder-section:last-of-type{border-bottom:0}
.reloop-mt-section-head{
  margin-bottom:14px;
}
.reloop-mt-section-head>div{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.reloop-mt-section-no{
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#168bff;
  color:#fff;
  font-size:9px;
  font-weight:900;
  box-shadow:0 6px 14px rgba(22,139,255,.16);
}
.reloop-mt-section-head h5{
  margin:0;
  color:#264e69;
  font-size:12px;
}
.reloop-mt-section-head p{
  margin:4px 0 0;
  color:#8ba0b1;
  font-size:9px;
  line-height:1.45;
}

.reloop-mt-levels-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.reloop-mt-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.reloop-mt-field{
  display:grid;
  gap:6px;
}
.reloop-mt-field>span{
  color:#365970;
  font-size:10px;
  font-weight:800;
}
.reloop-mt-field small{
  color:#8ba0b1;
  font-size:8.5px;
  line-height:1.45;
}
.reloop-mt-field input,
.reloop-mt-field select,
.reloop-mt-field textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #cfdeea;
  border-radius:12px;
  background:#fff;
  color:#173e5c;
  padding:10px 11px;
  font:inherit;
  font-size:11.5px;
  outline:none;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.reloop-mt-field input:hover,
.reloop-mt-field select:hover,
.reloop-mt-field textarea:hover{border-color:#b9d0e1}
.reloop-mt-field input:focus,
.reloop-mt-field select:focus,
.reloop-mt-field textarea:focus{
  border-color:#168bff;
  box-shadow:0 0 0 3px rgba(22,139,255,.09);
}
.reloop-mt-field input:disabled{
  background:#f3f7fa;
  color:#8ca0af;
  cursor:not-allowed;
}
.reloop-mt-field textarea{
  min-height:86px;
  resize:vertical;
  line-height:1.55;
}

.reloop-mt-input-suffix{
  position:relative;
}
.reloop-mt-input-suffix input{padding-right:48px}
.reloop-mt-input-suffix>span{
  position:absolute;
  right:11px;
  top:50%;
  transform:translateY(-50%);
  color:#8da1b1;
  font-size:9px;
  font-weight:700;
  pointer-events:none;
}

.reloop-mt-tier-list{
  display:grid;
  gap:12px;
}
.reloop-mt-tier{
  --tier-accent:#168bff;
  position:relative;
  overflow:hidden;
  border:1px solid #dce8f2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 18px rgba(31,84,124,.035);
}
.reloop-mt-tier:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:var(--tier-accent);
}
.reloop-mt-tier[data-style="silver"]{--tier-accent:#8294a4}
.reloop-mt-tier[data-style="gold"]{--tier-accent:#d5a020}
.reloop-mt-tier[data-style="violet"]{--tier-accent:#7959cb}
.reloop-mt-tier[data-style="emerald"]{--tier-accent:#279267}
.reloop-mt-tier[data-style="slate"]{--tier-accent:#586f82}

.reloop-mt-tier-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 14px 12px 16px;
  border-bottom:1px solid #edf2f6;
  background:#fbfdff;
}
.reloop-mt-tier-identity{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.reloop-mt-level{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eaf5ff;
  color:#168bff;
  font-size:11px;
  font-weight:900;
}
.reloop-mt-tier[data-style="silver"] .reloop-mt-level{background:#eef2f5;color:#617382}
.reloop-mt-tier[data-style="gold"] .reloop-mt-level{background:#fff5d8;color:#a9760c}
.reloop-mt-tier[data-style="violet"] .reloop-mt-level{background:#f1ebff;color:#7357b5}
.reloop-mt-tier[data-style="emerald"] .reloop-mt-level{background:#e8f8f0;color:#23845e}
.reloop-mt-tier[data-style="slate"] .reloop-mt-level{background:#edf1f5;color:#475d70}
.reloop-mt-tier-identity>div{
  min-width:0;
  display:grid;
  gap:2px;
}
.reloop-mt-tier-identity small{
  color:#98a8b5;
  font-size:8px;
}
.reloop-mt-tier-identity b{
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#244c67;
  font-size:12px;
}

.reloop-mt-tier-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.reloop-mt-tier-meta>span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 8px;
  border-radius:999px;
  background:#f3f7fa;
  color:#6f8798;
  font-size:8.5px;
  font-weight:700;
}
.reloop-mt-tier-meta>span i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--tier-accent);
}
.reloop-mt-tier .remove{
  height:28px;
  padding:0 9px;
  border:1px solid #efd9d9;
  border-radius:9px;
  background:#fffafa;
  color:#b65b5b;
  cursor:pointer;
  font-size:8.5px;
  font-weight:800;
}
.reloop-mt-tier .remove:hover:not(:disabled){background:#fff2f2}
.reloop-mt-tier .remove:disabled{
  opacity:.38;
  cursor:not-allowed;
}

.reloop-mt-tier-body{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(260px,.9fr);
  gap:14px;
  padding:14px 14px 15px 16px;
}
.reloop-mt-tier-fields{
  display:grid;
  grid-template-columns:1.05fr .75fr .85fr .7fr;
  gap:10px;
  align-items:start;
}
.reloop-mt-benefits{
  padding-left:14px;
  border-left:1px solid #edf2f6;
}

.reloop-mt-add{
  min-width:108px;
  height:34px;
  padding:0 12px;
  border:1px dashed #9fc9e8;
  border-radius:11px;
  background:#f3f9ff;
  color:#0879dc;
  font-size:9.5px;
  font-weight:850;
  cursor:pointer;
}
.reloop-mt-add:hover:not(:disabled){background:#eaf5ff}
.reloop-mt-add:disabled{opacity:.45;cursor:not-allowed}

.reloop-mt-v1-hint{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:18px 20px 0;
  padding:11px 12px;
  border:1px solid #d9e8f4;
  border-radius:14px;
  background:#f2f8fd;
}
.reloop-mt-v1-hint>span{
  width:20px;
  height:20px;
  flex:0 0 20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#dceeff;
  color:#168bff;
  font-size:10px;
  font-weight:900;
}
.reloop-mt-v1-hint b{
  display:block;
  color:#315d7b;
  font-size:9.5px;
}
.reloop-mt-v1-hint p{
  margin:3px 0 0;
  color:#7890a2;
  font-size:8.5px;
  line-height:1.5;
}

.reloop-mt-savebar{
  position:sticky;
  bottom:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:18px;
  padding:15px 20px;
  border-top:1px solid #dce8f2;
  background:rgba(255,255,255,.96);
  box-shadow:0 -10px 24px rgba(31,84,124,.055);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.reloop-mt-savebar>div{
  display:grid;
  gap:3px;
}
.reloop-mt-savebar b{
  color:#2b516c;
  font-size:10px;
}
.reloop-mt-savebar span{
  color:#8a9eae;
  font-size:8.5px;
}
.reloop-mt-savebar .btn{
  min-width:176px;
  height:40px;
  border-radius:12px;
}
#reloopMtMsg{
  padding:0 20px 16px;
  background:#fff;
}
#reloopMtMsg:empty{padding:0}

html[data-theme="dark"] .reloop-mt-card,
html[data-theme="dark"] .reloop-mt-tier,
html[data-theme="dark"] .reloop-mt-toolbar{
  background:#0e2131;
  border-color:#29465c;
}
html[data-theme="dark"] .reloop-mt-head{
  background:
    radial-gradient(circle at 92% 8%,rgba(22,139,255,.10) 0 14%,transparent 14.5%),
    linear-gradient(135deg,#10273a,#0e2131);
}
html[data-theme="dark"] .reloop-mt-head h3,
html[data-theme="dark"] .reloop-mt-summary b,
html[data-theme="dark"] .reloop-mt-tier-identity b,
html[data-theme="dark"] .reloop-mt-editor-head h4,
html[data-theme="dark"] .reloop-mt-section-head h5{color:#edf7ff}
html[data-theme="dark"] .reloop-mt-head p,
html[data-theme="dark"] .reloop-mt-switch>span small,
html[data-theme="dark"] .reloop-mt-toolbar span,
html[data-theme="dark"] .reloop-mt-editor-head p{color:#9bb2c2}
html[data-theme="dark"] .reloop-mt-switch{
  background:#10283a;
  border-color:#31516a;
}
html[data-theme="dark"] .reloop-mt-switch>span b{color:#dfeef8}
html[data-theme="dark"] .reloop-mt-summary-item,
html[data-theme="dark"] .reloop-mt-program-map,
html[data-theme="dark"] .reloop-mt-read-step,
html[data-theme="dark"] .reloop-mt-editor{
  background:#10283a;
  border-color:#29485f;
}
html[data-theme="dark"] .reloop-mt-toolbar b,
html[data-theme="dark"] .reloop-mt-read-step b{color:#dceef9}
html[data-theme="dark"] .reloop-mt-editor-head,
html[data-theme="dark"] .reloop-mt-tier-head{
  background:#10283a;
  border-color:#29485f;
}
html[data-theme="dark"] .reloop-mt-builder-section{border-color:#29485f}
html[data-theme="dark"] .reloop-mt-field input,
html[data-theme="dark"] .reloop-mt-field select,
html[data-theme="dark"] .reloop-mt-field textarea{
  background:#0d1f2f;
  border-color:#31516a;
  color:#edf7ff;
}
html[data-theme="dark"] .reloop-mt-field input:disabled{background:#102332;color:#8299aa}
html[data-theme="dark"] .reloop-mt-tier-body,
html[data-theme="dark"] .reloop-mt-tier-head{background:#0f2333}
html[data-theme="dark"] .reloop-mt-tier-head{border-color:#294458}
html[data-theme="dark"] .reloop-mt-tier-meta>span{background:#142b3c;color:#a3b6c5}
html[data-theme="dark"] .reloop-mt-benefits{border-color:#294458}
html[data-theme="dark"] .reloop-mt-v1-hint{
  background:#102b40;
  border-color:#294d68;
}
html[data-theme="dark"] .reloop-mt-v1-hint b{color:#cce6f8}
html[data-theme="dark"] .reloop-mt-v1-hint p{color:#9bb2c2}
html[data-theme="dark"] .reloop-mt-savebar{
  background:rgba(14,33,49,.96);
  border-color:#29465c;
}
html[data-theme="dark"] #reloopMtMsg{background:#0e2131}
html[data-theme="dark"] .reloop-mt-savebar b{color:#e2f1fb}

@media(max-width:1180px){
  .reloop-mt-tier-body{grid-template-columns:1fr}
  .reloop-mt-benefits{
    padding-left:0;
    padding-top:12px;
    border-left:0;
    border-top:1px solid #edf2f6;
  }
}

@media(max-width:900px){
  .reloop-mt-summary{grid-template-columns:1fr}
  .reloop-mt-tier-fields{grid-template-columns:1fr 1fr}
  .reloop-mt-tier-fields .reloop-mt-field:last-child{grid-column:1/-1}
}

@media(max-width:720px){
  .reloop-mt-head{
    padding:18px;
    flex-direction:column;
  }
  .reloop-mt-switch{
    width:100%;
    box-sizing:border-box;
  }
  .reloop-mt-saved-label{padding:15px 18px 7px}
  .reloop-mt-summary{padding:0 18px}
  .reloop-mt-program-map{margin-left:18px;margin-right:18px}
  .reloop-mt-toolbar{
    margin-left:18px;
    margin-right:18px;
    align-items:stretch;
    flex-direction:column;
  }
  .reloop-mt-toolbar .btn{width:100%}
  .reloop-mt-editor{
    margin:0 12px 18px;
    border-radius:19px;
  }
  .reloop-mt-editor-head{
    flex-direction:column;
    padding:17px;
  }
  .reloop-mt-draft-state{
    width:100%;
    box-sizing:border-box;
  }
  .reloop-mt-builder-section{padding:17px}
  .reloop-mt-grid{grid-template-columns:1fr}
  .reloop-mt-levels-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .reloop-mt-add{width:100%}
  .reloop-mt-tier-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .reloop-mt-tier-meta{justify-content:flex-start}
  .reloop-mt-tier-fields{grid-template-columns:1fr}
  .reloop-mt-tier-fields .reloop-mt-field:last-child{grid-column:auto}
  .reloop-mt-v1-hint{margin-left:17px;margin-right:17px}
  .reloop-mt-savebar{
    align-items:stretch;
    flex-direction:column;
    padding:14px 17px;
  }
  .reloop-mt-savebar .btn{width:100%}
}


/* RELOOP Member Tier V1 — readability pass */
.reloop-mt-kicker{font-size:11px}
.reloop-mt-head p{font-size:13px}
.reloop-mt-switch>span b{font-size:12px}
.reloop-mt-switch>span small{font-size:10px}
.reloop-mt-saved-label span{font-size:11px}
.reloop-mt-saved-label small{font-size:10px}
.reloop-mt-summary small{font-size:10.5px}
.reloop-mt-summary b{font-size:14px}
.reloop-mt-summary em{font-size:10.5px}
.reloop-mt-program-map-title span{font-size:11.5px}
.reloop-mt-program-map-title small{font-size:10px}
.reloop-mt-read-step b{font-size:11.5px}
.reloop-mt-read-step small{font-size:9.5px}
.reloop-mt-toolbar b{font-size:12px}
.reloop-mt-toolbar span{font-size:10.5px}
.reloop-mt-editor-kicker{font-size:10px}
.reloop-mt-editor-head h4{font-size:20px}
.reloop-mt-editor-head p{font-size:12px}
.reloop-mt-draft-state span{font-size:11px}
.reloop-mt-draft-state small{font-size:9.5px}
.reloop-mt-section-no{font-size:10px}
.reloop-mt-section-head h5{font-size:14px}
.reloop-mt-section-head p{font-size:10.5px}
.reloop-mt-field>span{font-size:12px}
.reloop-mt-field small{font-size:10px}
.reloop-mt-field input,
.reloop-mt-field select,
.reloop-mt-field textarea{font-size:13px}
.reloop-mt-input-suffix>span{font-size:10.5px}
.reloop-mt-tier-identity small{font-size:9.5px}
.reloop-mt-tier-identity b{font-size:13.5px}
.reloop-mt-tier-meta>span{font-size:9.5px}
.reloop-mt-tier .remove{font-size:9.5px}
.reloop-mt-add{font-size:10.5px}
.reloop-mt-v1-hint b{font-size:11px}
.reloop-mt-v1-hint p{font-size:10px}
.reloop-mt-savebar b{font-size:11.5px}
.reloop-mt-savebar span{font-size:9.5px}

@media(max-width:720px){
  .reloop-mt-head p{font-size:12px}
  .reloop-mt-editor-head h4{font-size:18px}
  .reloop-mt-section-head h5{font-size:13px}
  .reloop-mt-field>span{font-size:11.5px}
  .reloop-mt-field input,
  .reloop-mt-field select,
  .reloop-mt-field textarea{font-size:12.5px}
}


/* RELOOP Member Tier V2.2 — Card Theme Builder */
.reloop-mt-tier{--tier-accent:var(--mt-accent,#168bff)}
.reloop-mt-tier:before{background:var(--mt-accent,#168bff)}
.reloop-mt-level{background:color-mix(in srgb,var(--mt-accent,#168bff) 12%,#fff);color:var(--mt-accent,#168bff)}
.reloop-mt-tier-fields{grid-template-columns:1.15fr .9fr .75fr}
.reloop-mt-read-level{background:color-mix(in srgb,var(--mt-accent,#168bff) 12%,#fff);color:var(--mt-accent,#168bff)}
.reloop-mt-read-step{border-color:color-mix(in srgb,var(--mt-accent,#168bff) 18%,#dfeaf2)}
.reloop-mt-read-step:before{content:"";position:absolute;inset:0;border-radius:14px;background:linear-gradient(135deg,var(--mt-bg-soft,#fff),var(--mt-bg,#eef7ff));opacity:.55;z-index:0}
.reloop-mt-read-step>*{position:relative;z-index:1}
.reloop-mt-read-step:not(:last-child):after{z-index:3}

.reloop-mt-theme-panel{
  padding:15px 16px 17px;
  border-top:1px solid #edf2f6;
  background:linear-gradient(180deg,#fbfdff,#f7fbfe);
}
.reloop-mt-theme-copy{display:grid;gap:3px;margin-bottom:12px}
.reloop-mt-theme-copy b{color:#315873;font-size:12px}
.reloop-mt-theme-copy span{color:#879cab;font-size:10px;line-height:1.45}
.reloop-mt-theme-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:16px;align-items:stretch}
.reloop-mt-theme-controls{min-width:0}
.reloop-mt-palette{display:flex;flex-wrap:wrap;gap:8px}
.reloop-mt-swatch{
  display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:5px 9px 5px 6px;
  border:1px solid #d9e6f0;border-radius:11px;background:#fff;color:#617b8e;
  font:inherit;font-size:9.5px;font-weight:750;cursor:pointer;transition:.16s ease
}
.reloop-mt-swatch:hover{border-color:#a9cbe4;transform:translateY(-1px)}
.reloop-mt-swatch.on{border-color:#168bff;box-shadow:0 0 0 3px rgba(22,139,255,.08);color:#176fae}
.reloop-mt-swatch i{width:23px;height:23px;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(20,50,70,.08)}
.reloop-mt-custom-btn{
  margin-top:10px;min-height:35px;padding:0 12px;border:1px dashed #aacce5;border-radius:11px;
  background:#f5faff;color:#2678b4;font:inherit;font-size:10px;font-weight:800;cursor:pointer
}
.reloop-mt-custom-btn.on{border-style:solid;border-color:#168bff;background:#eaf5ff;color:#086fc4}
.reloop-mt-custom-colors{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:8px;margin-top:10px}
.reloop-mt-custom-colors.hide{display:none}
.reloop-mt-custom-colors label{
  display:grid;grid-template-columns:28px 1fr;grid-template-areas:"color name" "color code";column-gap:7px;
  align-items:center;padding:7px;border:1px solid #dfe9f1;border-radius:10px;background:#fff
}
.reloop-mt-custom-colors label>span{grid-area:name;color:#607b8e;font-size:8.5px;font-weight:800}
.reloop-mt-custom-colors input[type="color"]{grid-area:color;width:28px;height:34px;padding:0;border:0;background:none;cursor:pointer}
.reloop-mt-custom-colors code{grid-area:code;color:#8a9eae;font:inherit;font-size:7.8px}
.reloop-mt-card-preview{
  position:relative;overflow:hidden;isolation:isolate;min-height:144px;padding:16px;border-radius:19px;
  border:1px solid color-mix(in srgb,var(--mt-accent,#168bff) 25%,#dbe7f0);
  background:
    radial-gradient(circle at 92% 4%,color-mix(in srgb,var(--mt-accent,#168bff) 18%,transparent) 0 22%,transparent 22.5%),
    linear-gradient(140deg,var(--mt-bg-soft,#fff),var(--mt-bg,#eaf5ff));
  box-shadow:0 12px 28px color-mix(in srgb,var(--mt-accent,#168bff) 10%,transparent)
}
.reloop-mt-card-preview:after{content:"";position:absolute;left:-45px;bottom:-70px;width:140px;height:140px;border-radius:50%;background:color-mix(in srgb,var(--mt-accent,#168bff) 9%,transparent);z-index:-1}
.reloop-mt-card-preview-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.reloop-mt-card-preview-top small{display:block;color:color-mix(in srgb,var(--mt-text,#173452) 62%,transparent);font-size:7.5px;font-weight:900;letter-spacing:.08em}
.reloop-mt-card-preview-top b{display:block;margin-top:4px;color:var(--mt-text,#173452);font-size:20px;line-height:1.1}
.reloop-mt-card-preview-top>span{padding:5px 8px;border-radius:999px;background:color-mix(in srgb,var(--mt-bg-soft,#fff) 78%,transparent);border:1px solid color-mix(in srgb,var(--mt-accent,#168bff) 18%,#fff);color:var(--mt-text,#173452);font-size:8px;font-weight:900}
.reloop-mt-card-preview-progress{height:7px;margin-top:18px;border-radius:999px;background:color-mix(in srgb,var(--mt-text,#173452) 9%,transparent);overflow:hidden}
.reloop-mt-card-preview-progress i{display:block;width:72%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--mt-accent,#168bff),var(--mt-progress,#2ea7ff))}
.reloop-mt-card-preview-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.reloop-mt-card-preview-foot span{max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:color-mix(in srgb,var(--mt-text,#173452) 78%,transparent);font-size:8.5px}
.reloop-mt-card-preview-foot b{color:var(--mt-text,#173452);font-size:9px}

html[data-theme="dark"] .reloop-mt-theme-panel{background:#0f2333;border-color:#294458}
html[data-theme="dark"] .reloop-mt-theme-copy b{color:#dceef9}
html[data-theme="dark"] .reloop-mt-theme-copy span{color:#9cb1c1}
html[data-theme="dark"] .reloop-mt-swatch,
html[data-theme="dark"] .reloop-mt-custom-colors label{background:#10283a;border-color:#31516a;color:#b5c8d6}
html[data-theme="dark"] .reloop-mt-custom-btn{background:#10283a;border-color:#3a6784;color:#91c9ef}

@media(max-width:1100px){
  .reloop-mt-theme-layout{grid-template-columns:1fr}
  .reloop-mt-custom-colors{grid-template-columns:repeat(3,minmax(100px,1fr))}
}
@media(max-width:900px){
  .reloop-mt-tier-fields{grid-template-columns:1fr 1fr}
  .reloop-mt-tier-fields .reloop-mt-field:last-child{grid-column:1/-1}
}
@media(max-width:720px){
  .reloop-mt-tier-fields{grid-template-columns:1fr}
  .reloop-mt-tier-fields .reloop-mt-field:last-child{grid-column:auto}
  .reloop-mt-custom-colors{grid-template-columns:1fr 1fr}
  .reloop-mt-card-preview{min-height:132px}
}


/* RELOOP Member Tier V2.4 — always-on LINE notifications */
.reloop-mt-auto-notify{
  margin:14px 20px 0;
  padding:14px 15px;
  border:1px solid #d9e8f4;
  border-radius:16px;
  background:linear-gradient(135deg,#f7fbff,#eef7ff);
}
.reloop-mt-auto-notify-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.reloop-mt-auto-notify-head>div{display:grid;gap:2px}
.reloop-mt-auto-notify-head span{
  color:#168bff;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:.09em;
}
.reloop-mt-auto-notify-head b{
  color:#315873;
  font-size:12px;
}
.reloop-mt-auto-notify-head em{
  padding:6px 9px;
  border-radius:999px;
  background:#e7f7ef;
  border:1px solid #c9ead8;
  color:#24845e;
  font-size:9px;
  font-style:normal;
  font-weight:850;
  white-space:nowrap;
}
.reloop-mt-auto-notify>p{
  margin:7px 0 0;
  color:#7c93a5;
  font-size:10px;
  line-height:1.55;
}
.reloop-mt-auto-notify-events{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}
.reloop-mt-auto-notify-events span{
  padding:7px 9px;
  border:1px solid #dce8f2;
  border-radius:999px;
  background:#fff;
  color:#536f83;
  font-size:9.5px;
  font-weight:750;
}
html[data-theme="dark"] .reloop-mt-auto-notify{
  background:#10283a;
  border-color:#31516a;
}
html[data-theme="dark"] .reloop-mt-auto-notify-head b{color:#dceef9}
html[data-theme="dark"] .reloop-mt-auto-notify>p{color:#9bb2c2}
html[data-theme="dark"] .reloop-mt-auto-notify-events span{
  background:#0e2131;
  border-color:#31516a;
  color:#b7c9d6;
}
@media(max-width:720px){
  .reloop-mt-auto-notify{margin-left:17px;margin-right:17px}
  .reloop-mt-auto-notify-head{align-items:flex-start}
}
