/* Theo Properties RC1.0.15.121 — Referrals & Rewards Premium SaaS Experience Lock
   Presentation-only refinement. Referral attribution, reward, redemption and Supabase logic are unchanged. */

:root{
  --ref121-navy:#0f3046;
  --ref121-navy-2:#17465f;
  --ref121-ink:#15364c;
  --ref121-muted:#728795;
  --ref121-line:#d9e5ec;
  --ref121-surface:#ffffff;
  --ref121-canvas:#f5f8fa;
  --ref121-gold:#bc7d22;
  --ref121-gold-soft:#fff7e8;
  --ref121-blue:#3679c9;
  --ref121-blue-soft:#eef6ff;
  --ref121-teal:#278979;
  --ref121-teal-soft:#edf9f6;
  --ref121-violet:#7864b8;
  --ref121-violet-soft:#f4f0ff;
  --ref121-green:#1f7a5d;
  --ref121-shadow:0 14px 38px rgba(15,48,70,.08),0 2px 8px rgba(15,48,70,.035);
}

body:has(#ref32-modal-root){overflow:hidden!important}
body:has(#ref32-modal-root) #mobile-nav{transition:opacity .16s ease}

/* App-level modal shell --------------------------------------------------- */
#ref32-modal-root{
  padding:clamp(12px,2.3vw,28px)!important;
  background:rgba(7,25,39,.68)!important;
  -webkit-backdrop-filter:blur(14px) saturate(1.06)!important;
  backdrop-filter:blur(14px) saturate(1.06)!important;
}
#ref32-modal-root .ref32-modal{
  width:min(1160px,96vw)!important;
  max-height:calc(100dvh - clamp(24px,4.6vw,56px))!important;
  border:1px solid rgba(207,220,228,.96)!important;
  border-radius:26px!important;
  background:var(--ref121-canvas)!important;
  box-shadow:0 38px 110px rgba(4,21,34,.34),0 10px 30px rgba(4,21,34,.12)!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
#ref32-modal-root .ref32-head{
  padding:24px 28px 20px!important;
  gap:18px!important;
  background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid rgba(216,229,236,.92)!important;
  -webkit-backdrop-filter:blur(20px) saturate(1.05);
  backdrop-filter:blur(20px) saturate(1.05);
  box-shadow:0 1px 0 rgba(255,255,255,.9);
}
#ref32-modal-root .ref32-head::after{
  content:"";
  position:absolute;
  left:28px;
  bottom:-1px;
  width:64px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--ref121-gold),#e1b66e);
}
#ref32-modal-root .ref32-kicker{
  color:#a86f1d!important;
  font-size:11px!important;
  line-height:1.2!important;
  letter-spacing:.19em!important;
}
#ref32-modal-root .ref32-head h2{
  margin-top:7px!important;
  color:#102f45!important;
  font-size:clamp(28px,3.25vw,40px)!important;
  line-height:1.03!important;
  letter-spacing:-.035em!important;
}
#ref32-modal-root .ref32-close{
  flex:0 0 auto;
  width:46px!important;
  height:46px!important;
  border:1px solid #e4ebef!important;
  border-radius:14px!important;
  background:#f5f7f9!important;
  color:#29495e!important;
  font-size:23px!important;
  line-height:1!important;
  box-shadow:0 4px 12px rgba(15,48,70,.035);
}
#ref32-modal-root .ref32-close:hover{background:#edf3f6!important;border-color:#d8e4ea!important}
#ref32-modal-root .ref32-close:focus-visible,
#ref32-modal-root .ref32-btn:focus-visible,
#ref32-modal-root input:focus-visible,
#ref32-modal-root select:focus-visible,
#ref32-modal-root textarea:focus-visible{
  outline:3px solid rgba(54,121,201,.18)!important;
  outline-offset:2px!important;
}
#ref32-modal-root .ref32-body{
  padding:24px 28px 30px!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(188,125,34,.055),transparent 24%),
    linear-gradient(180deg,#f8fafb 0%,#f4f7f9 100%)!important;
}

/* Share + rewards hero ---------------------------------------------------- */
#ref32-modal-root .ref32-hero{
  gap:16px!important;
  margin:0 0 18px!important;
  align-items:stretch;
}
#ref32-modal-root .ref32-share-card,
#ref32-modal-root .ref32-balance-card,
#ref32-modal-root .ref32-kpi,
#ref32-modal-root .ref32-panel{
  border:1px solid var(--ref121-line)!important;
  box-shadow:var(--ref121-shadow)!important;
}
#ref32-modal-root .ref32-share-card{
  position:relative;
  overflow:hidden;
  padding:23px 24px 21px!important;
  border-radius:20px!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(54,121,201,.075),transparent 31%),
    linear-gradient(180deg,#ffffff 0%,#fbfdfe 100%)!important;
}
#ref32-modal-root .ref32-share-card::before{
  content:"";
  position:absolute;
  left:0;
  top:22px;
  width:4px;
  height:44px;
  border-radius:0 999px 999px 0;
  background:linear-gradient(180deg,var(--ref121-gold),#e4b35c);
}
#ref32-modal-root .ref32-share-card h3{
  color:#14364c!important;
  font-size:20px!important;
  letter-spacing:-.018em;
}
#ref32-modal-root .ref32-share-card>p:first-of-type{
  max-width:780px;
  margin:7px 0 0!important;
  color:#687f8e!important;
  line-height:1.52;
}
#ref32-modal-root .ref32-linkbox{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  margin:18px 0 12px!important;
  padding:7px!important;
  border:1px solid #d9e5ec;
  border-radius:14px;
  background:#f7fafc;
  box-shadow:inset 0 1px 2px rgba(15,48,70,.025);
}
#ref32-modal-root .ref32-linkbox input{
  min-height:44px;
  border:0!important;
  border-radius:9px!important;
  padding:10px 12px!important;
  background:transparent!important;
  color:#24475d!important;
  font-size:14px;
  font-weight:650;
}
#ref32-modal-root .ref32-linkbox input:focus{outline:0!important}
#ref32-modal-root .ref32-actions{
  gap:9px!important;
  align-items:center;
}
#ref32-modal-root .ref32-btn{
  min-height:44px;
  border:1px solid #cddbe4!important;
  border-radius:11px!important;
  padding:10px 15px!important;
  background:#fff!important;
  color:#193a50!important;
  font-weight:780!important;
  line-height:1.1;
  box-shadow:0 4px 12px rgba(15,48,70,.035);
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease;
}
#ref32-modal-root .ref32-btn:not(:disabled):hover{
  transform:translateY(-1px);
  border-color:#b8ccd8!important;
  box-shadow:0 8px 18px rgba(15,48,70,.075);
}
#ref32-modal-root .ref32-btn.gold{
  border-color:#ad741f!important;
  background:linear-gradient(135deg,#be7f22,#aa6d17)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(188,125,34,.18);
}
#ref32-modal-root .ref32-share-card .ref32-actions .ref32-btn.gold{
  border-color:#197354!important;
  background:linear-gradient(135deg,#238465,#176f53)!important;
  box-shadow:0 8px 20px rgba(31,122,93,.16);
}
#ref32-modal-root .ref32-btn.primary{
  border-color:#10364d!important;
  background:linear-gradient(135deg,#133b53,#0e2d42)!important;
  color:#fff!important;
}
#ref32-modal-root .ref32-btn:disabled{
  opacity:1!important;
  background:#d8e3e9!important;
  color:#718694!important;
  border-color:#d1dde4!important;
  box-shadow:none!important;
}
#ref32-modal-root .ref32-share-card>p:last-child{
  margin:11px 0 0!important;
  padding-top:11px;
  border-top:1px solid #e5edf2;
  color:#708694!important;
  line-height:1.45;
}
#ref32-modal-root .ref32-share-card>p:last-child small{font-size:11px!important}
#ref32-modal-root .ref32-share-card>p:last-child strong{color:#31556b}

#ref32-modal-root .ref32-balance-card{
  position:relative;
  overflow:hidden;
  padding:23px!important;
  border-color:rgba(27,79,105,.24)!important;
  border-radius:20px!important;
  background:
    radial-gradient(circle at 105% -10%,rgba(237,194,115,.25),transparent 35%),
    radial-gradient(circle at 0% 100%,rgba(54,121,201,.18),transparent 42%),
    linear-gradient(145deg,#0d2d42 0%,#16445e 100%)!important;
  color:#fff!important;
}
#ref32-modal-root .ref32-balance-card::after{
  content:"";
  position:absolute;
  right:-42px;
  bottom:-54px;
  width:160px;
  height:160px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  box-shadow:0 0 0 18px rgba(255,255,255,.025),0 0 0 38px rgba(255,255,255,.018);
  pointer-events:none;
}
#ref32-modal-root .ref32-balance-card span{
  position:relative;
  z-index:1;
  color:#f1c879!important;
  font-size:11px!important;
  letter-spacing:.16em!important;
}
#ref32-modal-root .ref32-balance-card strong{
  position:relative;
  z-index:1;
  margin:11px 0 3px!important;
  color:#fff;
  font-size:clamp(42px,5vw,58px)!important;
  line-height:.95;
  letter-spacing:-.04em;
}
#ref32-modal-root .ref32-balance-card small{
  position:relative;
  z-index:1;
  max-width:250px;
  color:#c6d8e2!important;
  line-height:1.4;
}
#ref32-modal-root .ref32-balance-card .ref32-btn{
  position:relative;
  z-index:1;
  margin-top:18px!important;
  border-color:#d8aa59!important;
  background:linear-gradient(135deg,#f0c36d,#d59a3b)!important;
  color:#16364a!important;
  box-shadow:0 10px 24px rgba(2,17,27,.19);
}
#ref32-modal-root .ref32-balance-card .ref32-btn:disabled{
  border-color:rgba(255,255,255,.12)!important;
  background:rgba(228,237,242,.72)!important;
  color:#35586d!important;
}

/* KPI system -------------------------------------------------------------- */
#ref32-modal-root .ref32-kpis{
  gap:12px!important;
  margin:0 0 18px!important;
}
#ref32-modal-root .ref32-kpi{
  position:relative;
  min-width:0;
  overflow:hidden;
  padding:17px 18px 16px!important;
  border-radius:18px!important;
  background:#fff!important;
}
#ref32-modal-root .ref32-kpi::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:4px;
  background:var(--kpi-accent,var(--ref121-blue));
}
#ref32-modal-root .ref32-kpi::after{
  content:"";
  position:absolute;
  right:-20px;
  top:-24px;
  width:78px;
  height:78px;
  border-radius:50%;
  background:var(--kpi-wash,var(--ref121-blue-soft));
  opacity:.82;
  pointer-events:none;
}
#ref32-modal-root .ref32-kpi:nth-child(1){--kpi-accent:var(--ref121-blue);--kpi-wash:var(--ref121-blue-soft);background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important}
#ref32-modal-root .ref32-kpi:nth-child(2){--kpi-accent:var(--ref121-gold);--kpi-wash:var(--ref121-gold-soft);background:linear-gradient(180deg,#fff 0%,#fffaf2 100%)!important}
#ref32-modal-root .ref32-kpi:nth-child(3){--kpi-accent:var(--ref121-teal);--kpi-wash:var(--ref121-teal-soft);background:linear-gradient(180deg,#fff 0%,#f5fcfa 100%)!important}
#ref32-modal-root .ref32-kpi:nth-child(4){--kpi-accent:var(--ref121-violet);--kpi-wash:var(--ref121-violet-soft);background:linear-gradient(180deg,#fff 0%,#faf8ff 100%)!important}
#ref32-modal-root .ref32-kpi span{
  position:relative;
  z-index:1;
  color:#738995!important;
  font-size:10px!important;
  letter-spacing:.12em!important;
}
#ref32-modal-root .ref32-kpi strong{
  position:relative;
  z-index:1;
  margin:6px 0 2px!important;
  color:#12384f!important;
  font-size:31px!important;
  line-height:1;
  letter-spacing:-.035em;
}
#ref32-modal-root .ref32-kpi small{
  position:relative;
  z-index:1;
  color:#81939e!important;
}

/* Journey, qualification and activity panels ----------------------------- */
#ref32-modal-root .ref32-grid{gap:16px!important}
#ref32-modal-root .ref32-panel{
  position:relative;
  overflow:hidden;
  padding:21px!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff 0%,#fcfdfe 100%)!important;
}
#ref32-modal-root .ref32-grid>.ref32-panel:nth-child(1){
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
}
#ref32-modal-root .ref32-grid>.ref32-panel:nth-child(2){
  background:linear-gradient(180deg,#ffffff 0%,#fffbf4 100%)!important;
}
#ref32-modal-root .ref32-panel.wide:nth-of-type(3){
  background:linear-gradient(180deg,#fff 0%,#f7fcfa 100%)!important;
}
#ref32-modal-root .ref32-panel.wide:nth-of-type(4){
  background:linear-gradient(180deg,#fff 0%,#faf8ff 100%)!important;
}
#ref32-modal-root .ref32-panel::before{
  content:"";
  position:absolute;
  left:20px;
  top:0;
  width:44px;
  height:3px;
  border-radius:0 0 999px 999px;
  background:#78a7c6;
}
#ref32-modal-root .ref32-grid>.ref32-panel:nth-child(2)::before{background:#d29a45}
#ref32-modal-root .ref32-panel.wide:nth-of-type(3)::before{background:#52a28f}
#ref32-modal-root .ref32-panel.wide:nth-of-type(4)::before{background:#8a78c4}
#ref32-modal-root .ref32-panel h3{
  color:#15384e!important;
  font-size:18px!important;
  letter-spacing:-.016em;
}
#ref32-modal-root .ref32-panel>p{
  margin:5px 0 0!important;
  color:#748996!important;
  line-height:1.45;
}
#ref32-modal-root .ref32-list{
  gap:9px!important;
  margin-top:15px!important;
}
#ref32-modal-root .ref32-row{
  min-width:0;
  padding:13px 14px!important;
  border:1px solid #e1eaf0!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 3px 10px rgba(15,48,70,.025);
}
#ref32-modal-root .ref32-panel:not(.wide) .ref32-row{
  grid-template-columns:minmax(0,1fr) auto!important;
}
#ref32-modal-root .ref32-panel:not(.wide) .ref32-row>span:last-child:empty{display:none}
#ref32-modal-root .ref32-row strong{color:#173b51!important;line-height:1.25}
#ref32-modal-root .ref32-row small{color:#7d909c!important;line-height:1.4}
#ref32-modal-root .ref32-panel:first-child .ref32-row{
  border-left:3px solid #a8c9df!important;
}
#ref32-modal-root .ref32-grid>.ref32-panel:nth-child(2) .ref32-row{
  border-left:3px solid #e4c483!important;
}
#ref32-modal-root .ref32-pill{
  min-width:max-content;
  border:1px solid transparent;
  border-radius:999px!important;
  padding:6px 9px!important;
  background:#edf3f6!important;
  color:#4f6d7e!important;
  font-size:10px!important;
  letter-spacing:.02em;
}
#ref32-modal-root .ref32-pill.approved,
#ref32-modal-root .ref32-pill.fulfilled,
#ref32-modal-root .ref32-pill.converted{
  border-color:#cceadd!important;
  background:#eaf8f2!important;
  color:#1e7458!important;
}
#ref32-modal-root .ref32-pill.pending,
#ref32-modal-root .ref32-pill.requested{
  border-color:#f0ddb5!important;
  background:#fff7e8!important;
  color:#91611b!important;
}
#ref32-modal-root .ref32-pill.rejected,
#ref32-modal-root .ref32-pill.reversed{
  border-color:#efd0ce!important;
  background:#fff0ef!important;
  color:#9a433d!important;
}
#ref32-modal-root .ref32-empty{
  position:relative;
  margin-top:14px;
  padding:20px 18px!important;
  border:1px dashed #cadbe5!important;
  border-radius:14px!important;
  background:rgba(247,250,252,.88)!important;
  color:#738895!important;
  line-height:1.45;
}
#ref32-modal-root .ref32-panel.wide .ref32-row>strong:last-child{
  justify-self:end;
  color:#153b51!important;
  font-size:13px;
  white-space:nowrap;
}

/* Forms used by reward redemption / review ------------------------------- */
#ref32-modal-root .ref32-form{
  gap:14px!important;
  padding:2px 0;
}
#ref32-modal-root .ref32-form label{gap:7px!important;color:#34566c!important;font-size:13px}
#ref32-modal-root .ref32-form input,
#ref32-modal-root .ref32-form select,
#ref32-modal-root .ref32-form textarea{
  min-height:46px;
  border:1px solid #c9d9e2!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#15384f!important;
  box-shadow:inset 0 1px 2px rgba(15,48,70,.025);
}
#ref32-modal-root .ref32-form input:focus,
#ref32-modal-root .ref32-form select:focus,
#ref32-modal-root .ref32-form textarea:focus{
  border-color:#8fb9d4!important;
  box-shadow:0 0 0 3px rgba(54,121,201,.1)!important;
}
#ref32-modal-root .ref32-loading,
#ref32-modal-root .ref32-gate{
  border:1px solid var(--ref121-line)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:var(--ref121-shadow)!important;
}

/* Tablet / iPad ----------------------------------------------------------- */
@media (min-width:701px) and (max-width:1180px){
  #ref32-modal-root{padding:14px!important;align-items:center!important}
  #ref32-modal-root .ref32-modal{
    width:min(1040px,calc(100vw - 28px))!important;
    max-height:calc(100dvh - 28px)!important;
    border-radius:24px!important;
  }
  #ref32-modal-root .ref32-head{padding:22px 24px 18px!important}
  #ref32-modal-root .ref32-head::after{left:24px!important}
  #ref32-modal-root .ref32-body{padding:20px 24px 26px!important}
  #ref32-modal-root .ref32-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  #ref32-modal-root .ref32-grid{grid-template-columns:1fr 1fr!important}
  #ref32-modal-root .ref32-panel.wide{grid-column:1/-1!important}
  #ref32-modal-root .ref32-grid>.ref32-panel:nth-child(2) .ref32-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #ref32-modal-root .ref32-grid>.ref32-panel:nth-child(2) .ref32-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    align-content:start;
  }
  #ref32-modal-root .ref32-panel.wide .ref32-row{
    grid-template-columns:minmax(0,1.35fr) auto auto!important;
  }
}

@media (min-width:900px) and (max-width:1180px){
  #ref32-modal-root .ref32-hero{
    grid-template-columns:minmax(0,1.55fr) minmax(260px,.72fr)!important;
  }
}

@media (min-width:701px) and (max-width:899px){
  #ref32-modal-root .ref32-hero{grid-template-columns:1fr!important}
  #ref32-modal-root .ref32-balance-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"eyebrow action" "points action" "copy action";
    column-gap:22px;
    align-items:center;
    padding:20px 22px!important;
  }
  #ref32-modal-root .ref32-balance-card span{grid-area:eyebrow}
  #ref32-modal-root .ref32-balance-card strong{grid-area:points;margin:6px 0 3px!important;font-size:46px!important}
  #ref32-modal-root .ref32-balance-card small{grid-area:copy;max-width:none!important}
  #ref32-modal-root .ref32-balance-card .ref32-btn{grid-area:action;margin:0!important;min-width:150px}
  #ref32-modal-root .ref32-grid{grid-template-columns:1fr!important}
  #ref32-modal-root .ref32-panel.wide{grid-column:auto!important}
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width:700px){
  body:has(#ref32-modal-root) #mobile-nav{opacity:0!important;pointer-events:none!important}
  #ref32-modal-root{
    padding:max(7px,env(safe-area-inset-top)) 7px max(7px,env(safe-area-inset-bottom))!important;
    align-items:flex-start!important;
  }
  #ref32-modal-root .ref32-modal{
    width:100%!important;
    max-width:none!important;
    max-height:calc(100dvh - max(14px,env(safe-area-inset-top) + env(safe-area-inset-bottom)))!important;
    border-radius:20px!important;
  }
  #ref32-modal-root .ref32-head{
    padding:18px 17px 16px!important;
    gap:12px!important;
  }
  #ref32-modal-root .ref32-head::after{left:17px!important;width:48px!important;height:2px!important}
  #ref32-modal-root .ref32-kicker{font-size:10px!important;letter-spacing:.16em!important}
  #ref32-modal-root .ref32-head h2{font-size:28px!important;line-height:1.02!important}
  #ref32-modal-root .ref32-close{width:42px!important;height:42px!important;border-radius:12px!important}
  #ref32-modal-root .ref32-body{padding:15px 13px 20px!important}

  #ref32-modal-root .ref32-hero,
  #ref32-modal-root .ref32-grid{grid-template-columns:1fr!important;gap:12px!important}
  #ref32-modal-root .ref32-panel.wide{grid-column:auto!important}
  #ref32-modal-root .ref32-share-card,
  #ref32-modal-root .ref32-balance-card,
  #ref32-modal-root .ref32-panel{border-radius:17px!important}
  #ref32-modal-root .ref32-share-card{padding:19px 17px 17px!important}
  #ref32-modal-root .ref32-share-card::before{top:19px;height:38px}
  #ref32-modal-root .ref32-share-card h3{font-size:18px!important}
  #ref32-modal-root .ref32-share-card>p:first-of-type{font-size:13px!important}
  #ref32-modal-root .ref32-linkbox{
    grid-template-columns:1fr!important;
    gap:6px!important;
    padding:6px!important;
    margin:15px 0 10px!important;
  }
  #ref32-modal-root .ref32-linkbox input{
    min-height:42px;
    font-size:12px!important;
    text-overflow:ellipsis;
  }
  #ref32-modal-root .ref32-linkbox .ref32-btn{width:100%}
  #ref32-modal-root .ref32-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  #ref32-modal-root .ref32-actions .ref32-btn{width:100%;padding-left:8px!important;padding-right:8px!important;font-size:12px!important}
  #ref32-modal-root .ref32-share-card>p:last-child{font-size:10px!important;overflow-wrap:anywhere}

  #ref32-modal-root .ref32-balance-card{padding:19px 18px!important}
  #ref32-modal-root .ref32-balance-card strong{font-size:43px!important}
  #ref32-modal-root .ref32-balance-card small{display:block;max-width:240px}
  #ref32-modal-root .ref32-balance-card .ref32-btn{width:100%;margin-top:15px!important}

  #ref32-modal-root .ref32-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    margin-bottom:12px!important;
  }
  #ref32-modal-root .ref32-kpi{
    min-height:104px;
    padding:15px 13px 13px!important;
    border-radius:15px!important;
  }
  #ref32-modal-root .ref32-kpi span{font-size:9px!important;letter-spacing:.085em!important}
  #ref32-modal-root .ref32-kpi strong{font-size:28px!important;margin-top:7px!important}
  #ref32-modal-root .ref32-kpi small{font-size:10px!important}

  #ref32-modal-root .ref32-panel{padding:17px 14px!important}
  #ref32-modal-root .ref32-panel::before{left:14px;width:36px}
  #ref32-modal-root .ref32-panel h3{font-size:17px!important}
  #ref32-modal-root .ref32-panel>p{font-size:12px!important}
  #ref32-modal-root .ref32-list{gap:7px!important;margin-top:12px!important}
  #ref32-modal-root .ref32-row,
  #ref32-modal-root .ref32-panel:not(.wide) .ref32-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:9px!important;
    padding:11px 11px!important;
    border-radius:12px!important;
  }
  #ref32-modal-root .ref32-row strong{font-size:12px!important}
  #ref32-modal-root .ref32-row small{font-size:10px!important}
  #ref32-modal-root .ref32-pill{font-size:9px!important;padding:5px 7px!important}
  #ref32-modal-root .ref32-panel.wide .ref32-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"copy status" "copy points";
    align-items:start!important;
  }
  #ref32-modal-root .ref32-panel.wide .ref32-row>div:first-child{grid-area:copy}
  #ref32-modal-root .ref32-panel.wide .ref32-row>.ref32-pill{grid-area:status;justify-self:end}
  #ref32-modal-root .ref32-panel.wide .ref32-row>strong:last-child{grid-area:points;justify-self:end;font-size:11px!important;margin-top:2px}
  #ref32-modal-root .ref32-empty{padding:16px 13px!important;font-size:12px!important}

  #ref32-modal-root .ref32-form{grid-template-columns:1fr!important}
  #ref32-modal-root .ref32-form label.wide,
  #ref32-modal-root .ref32-form-actions{grid-column:auto!important}
  #ref32-modal-root .ref32-form-actions{display:grid!important;grid-template-columns:1fr!important}
  #ref32-modal-root .ref32-form-actions .ref32-btn{width:100%}
}

@media (max-width:390px){
  #ref32-modal-root .ref32-head h2{font-size:25px!important}
  #ref32-modal-root .ref32-actions{grid-template-columns:1fr!important}
  #ref32-modal-root .ref32-kpi{min-height:98px;padding-left:11px!important;padding-right:11px!important}
  #ref32-modal-root .ref32-kpi strong{font-size:26px!important}
}

@media (prefers-reduced-motion:reduce){
  #ref32-modal-root *,#ref32-modal-root *::before,#ref32-modal-root *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
