/* Globyr G47 — market-position controls and risk health gauge */
#globyr-lending-modal .globyr-collateral-entry{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;
}
#globyr-lending-modal #lending-collateral-entry{
  width:100%;min-width:0;min-height:48px;padding:5px 2px;
  border:0;background:transparent;color:var(--ink);font-size:30px;line-height:1.2;
}
#globyr-lending-modal #lending-collateral-unit{
  width:auto;max-width:8rem;min-height:44px;padding:6px 8px;
  background:var(--surface);border:1px solid var(--muted);color:var(--ink);
}
#globyr-lending-modal #lending-collateral-entry:focus-visible,
#globyr-lending-modal #lending-collateral-unit:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#globyr-lending-modal #lending-collateral-quote{
  margin:0;color:var(--ink-soft);font-size:13px;overflow-wrap:anywhere;
}
#globyr-lending-modal #lending-collateral-quote:empty{display:none}
#globyr-lending-modal .lending-tabs{
  display:inline-flex!important;align-items:stretch;justify-content:flex-start;
  flex-wrap:nowrap;gap:4px!important;padding:5px!important;margin:0 0 20px!important;
  max-width:100%;box-sizing:border-box;
  background:rgba(154,177,134,.075);border:1px solid rgba(205,227,192,.16);
  border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)
}
#globyr-lending-modal .lending-tabs button{
  flex:1 1 auto;min-height:45px!important;min-width:94px!important;padding:10px 23px!important;
  border:1px solid transparent!important;border-radius:13px!important;
  color:var(--ink,#e9eee1)!important;background:transparent!important;white-space:nowrap;
  font-size:.95rem;font-weight:630;letter-spacing:-.02em;
  transition:background-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease
}
#globyr-lending-modal .lending-tabs button[aria-selected="true"]{
  background:var(--accent-fill,#afe000)!important;color:#14200d!important;
  border-color:rgba(201,255,93,.5)!important;
  box-shadow:0 1px 8px rgba(118,185,0,.10),inset 0 1px 0 rgba(255,255,255,.23)
}
#globyr-lending-modal .lending-tabs button:not([aria-selected="true"]):hover{
  background:rgba(210,230,196,.12)!important;transform:translateY(-1px)
}
#globyr-lending-modal #lending-manage.globyr-manage-visible{
  display:flex!important;flex-wrap:wrap;gap:9px!important;align-items:center;
  margin:0 0 23px!important;padding:0!important;border:0!important;
}
#globyr-lending-modal #lending-manage.globyr-manage-visible h3{
  flex:0 0 100%;margin:2px 0 5px!important;color:var(--ink,#e8eee1);
  font-size:.82rem;font-weight:700;letter-spacing:.055em;text-transform:uppercase;
  opacity:.79;
}
#globyr-lending-modal #lending-manage.globyr-manage-visible button{
  --manage-icon:"+";
  position:relative;display:inline-flex;justify-content:center;align-items:center;
  gap:9px;flex:0 1 auto;min-height:44px!important;min-width:0!important;
  margin:0!important;padding:11px 15px!important;
  color:var(--ink,#e7ede0)!important;
  background:var(--surface-deep)!important;
  border:1px solid var(--muted)!important;border-radius:12px!important;
  font-size:.88rem;font-weight:650;line-height:1.2;letter-spacing:-.012em;
  white-space:nowrap;cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease
}
#globyr-lending-modal #lending-manage.globyr-manage-visible button::before{
  content:var(--manage-icon);font-size:1.04rem;font-weight:650;
  line-height:1;display:inline-grid;place-items:center;
  width:24px;height:24px;border:1px solid currentColor;
  background:transparent;border-radius:7px;
}
#globyr-lending-modal #lending-manage #lending-tab-deposit{--manage-icon:"+"}
#globyr-lending-modal #lending-manage #lending-tab-repay{--manage-icon:"↺"}
#globyr-lending-modal #lending-manage #lending-tab-withdraw{--manage-icon:"↗"}
#globyr-lending-modal #lending-manage #lending-tab-withdrawLend{--manage-icon:"↙"}
#globyr-lending-modal #lending-manage.globyr-manage-visible button[aria-selected="true"]{
  color:var(--on-accent)!important;background:var(--accent-fill)!important;
  border-color:var(--muted)!important;
  box-shadow:0 4px 17px rgba(125,187,0,.14),inset 0 1px 0 rgba(255,255,255,.25)
}
#globyr-lending-modal #lending-manage.globyr-manage-visible button[aria-selected="true"]::before{
  border-color:rgba(24,42,7,.15);background:rgba(18,32,9,.11)
}
#globyr-lending-modal #lending-manage.globyr-manage-visible button:enabled:not([aria-selected="true"]):hover{
  border-color:var(--ink)!important;
  background:var(--selected)!important
}
#globyr-lending-modal #lending-manage.globyr-manage-visible button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
#globyr-lending-modal .lending-tabs button:focus-visible{outline:2px solid var(--accent-fill,#afe000);outline-offset:3px}
#globyr-lending-modal #lending-manage.globyr-manage-visible button:disabled,
#globyr-lending-modal .lending-tabs button:disabled{opacity:.45;cursor:not-allowed;transform:none!important}
#globyr-lending-modal #lending-simulation,
#globyr-lending-modal #lending-stress-field,
#globyr-lending-modal .lending-risk label:has(#lending-stress-toggle){display:none!important}
#globyr-lending-modal .globyr-health-meter{margin-top:17px;max-width:100%}
#globyr-lending-modal .globyr-health-track{
  height:12px;width:100%;border-radius:100px;position:relative;
  background:linear-gradient(90deg,#ea454c 0%,#ef6d40 22%,#e2ac39 43%,#a1d849 68%,#35bf70 100%);
  box-shadow:inset 0 1px 2px rgba(17,32,10,.24),0 1px 0 rgba(255,255,255,.06);
}
#globyr-lending-modal .globyr-health-needle{
  position:absolute;top:50%;width:17px;height:23px;
  transform:translate(-50%,-50%);border-radius:7px;
  border:3px solid #fffdf5;background:#203017;
  box-shadow:0 0 0 1px rgba(0,0,0,.23),0 2px 7px rgba(0,0,0,.22);
}
#globyr-lending-modal .globyr-health-labels{
  display:flex;justify-content:space-between;gap:6px;min-width:0;
  margin:9px 0 0!important;color:var(--ink-soft,#cbd5c4);
  opacity:.76;font-size:.67rem;font-weight:560;line-height:1.3
}
#globyr-lending-modal .globyr-health-caption{
  display:block;margin:8px 0 0!important;
  color:var(--ink,#e8f1e0);font-size:.79rem!important;font-weight:620!important;line-height:1.4
}
#globyr-lending-modal .globyr-health-meter.is-no-debt .globyr-health-track{opacity:.42}
#globyr-lending-modal .globyr-risk-card dl>div{flex-wrap:wrap;column-gap:10px}
#globyr-lending-modal .globyr-risk-card dd{max-width:100%;overflow-wrap:anywhere}
#globyr-lending-modal .globyr-risk-card.globyr-after{border-color:rgba(176,216,116,.29)}
#globyr-lending-modal .globyr-risk-card-head h4{font-size:1rem;font-weight:700}
#globyr-lending-modal .globyr-risk-foot{font-size:.74rem}
@media(max-width:670px){
 #globyr-lending-modal .lending-tabs{width:100%;display:flex!important;justify-content:stretch}
 #globyr-lending-modal .lending-tabs button{min-width:0!important;flex:1 1 50%}
 #globyr-lending-modal #lending-manage.globyr-manage-visible{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 #globyr-lending-modal #lending-manage.globyr-manage-visible h3{grid-column:1/-1}
 #globyr-lending-modal #lending-manage.globyr-manage-visible button{width:100%;white-space:normal;text-align:left;padding:10px 11px!important;justify-content:flex-start;font-size:.82rem;gap:7px;min-height:47px!important}
 #globyr-lending-modal #lending-manage.globyr-manage-visible button::before{flex:0 0 23px}
 #globyr-lending-modal .globyr-risk-card{padding:16px!important}
 #globyr-lending-modal .globyr-health-track{height:11px}
}
@media(prefers-reduced-motion:reduce){
 #globyr-lending-modal .lending-tabs button,#globyr-lending-modal #lending-manage.globyr-manage-visible button{transition:none!important}
}
/* CSP-compliant positions: classes, never inline styles. */
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-0{left:0%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-1{left:1%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-2{left:2%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-3{left:3%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-4{left:4%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-5{left:5%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-6{left:6%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-7{left:7%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-8{left:8%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-9{left:9%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-10{left:10%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-11{left:11%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-12{left:12%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-13{left:13%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-14{left:14%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-15{left:15%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-16{left:16%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-17{left:17%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-18{left:18%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-19{left:19%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-20{left:20%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-21{left:21%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-22{left:22%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-23{left:23%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-24{left:24%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-25{left:25%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-26{left:26%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-27{left:27%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-28{left:28%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-29{left:29%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-30{left:30%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-31{left:31%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-32{left:32%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-33{left:33%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-34{left:34%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-35{left:35%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-36{left:36%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-37{left:37%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-38{left:38%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-39{left:39%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-40{left:40%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-41{left:41%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-42{left:42%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-43{left:43%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-44{left:44%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-45{left:45%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-46{left:46%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-47{left:47%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-48{left:48%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-49{left:49%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-50{left:50%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-51{left:51%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-52{left:52%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-53{left:53%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-54{left:54%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-55{left:55%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-56{left:56%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-57{left:57%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-58{left:58%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-59{left:59%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-60{left:60%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-61{left:61%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-62{left:62%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-63{left:63%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-64{left:64%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-65{left:65%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-66{left:66%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-67{left:67%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-68{left:68%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-69{left:69%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-70{left:70%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-71{left:71%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-72{left:72%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-73{left:73%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-74{left:74%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-75{left:75%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-76{left:76%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-77{left:77%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-78{left:78%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-79{left:79%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-80{left:80%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-81{left:81%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-82{left:82%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-83{left:83%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-84{left:84%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-85{left:85%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-86{left:86%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-87{left:87%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-88{left:88%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-89{left:89%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-90{left:90%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-91{left:91%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-92{left:92%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-93{left:93%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-94{left:94%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-95{left:95%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-96{left:96%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-97{left:97%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-98{left:98%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-99{left:99%}
#globyr-lending-modal .globyr-health-needle.globyr-hf-pos-100{left:100%}
