.studio-home {
  --home-ink: #162e28;
  --home-muted: #516961;
  --home-border: #d9e5df;
  --home-green: #18624b;
  display: grid;
  gap: 18px;
  color: var(--home-ink);
}

.home-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #26594d;
  border-radius: 20px;
  background: radial-gradient(ellipse at 82% 48%, #216354 0, transparent 53%),
    linear-gradient(120deg, #102d27, #153e34 67%, #123029);
  color: #f1fff9;
  box-shadow: 0 12px 30px #143e3020;
}

.home-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#c5f8dd55 1px, transparent 1px);
  background-size: 19px 19px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 76%);
  opacity: .6;
  pointer-events: none;
}

.home-circuit {
  position: absolute;
  z-index: -1;
  inset: 50% 0 auto auto;
  transform: translateY(-50%);
  width: min(63%, 690px);
  color: #9af5cf;
  opacity: .65;
  pointer-events: none;
}
.home-circuit-lines { stroke: currentColor; stroke-width: 1; opacity: .58; }
.home-circuit-nodes { fill: currentColor; }
.home-circuit text {
  fill: currentColor;
  font: 650 47px system-ui, sans-serif;
  letter-spacing: .08em;
}

.home-banner-copy { position: relative; padding: 28px clamp(20px, 4vw, 52px); max-width: 68%; }
.home-banner-label { display: inline-flex; align-items: center; gap: 9px; color: #b7f3d5; font-weight: 650; font-size: 13px; letter-spacing: .12em; }
.home-banner-label i { width: 7px; height: 7px; border-radius: 50%; background: #8cf5bf; box-shadow: 0 0 12px #8cf5bf; }
.home-banner h2 { margin: 8px 0 6px; color: inherit; font: 750 clamp(27px, 3.3vw, 46px)/1.17 system-ui, sans-serif; }
.home-banner p { margin: 0; color: #c5e2d7; font-size: 14px; line-height: 1.55; }
.home-create {
  margin-top: 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 14px;
  min-height: 42px;
  color: #0d3025;
  background: #aff1cf;
  font-weight: 700;
}
.home-create:hover { background: #d5ffe9; }

.home-overview, .home-capability-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-summary, .home-capability { background: #fcfefc; border: 1px solid var(--home-border); border-radius: 15px; }
.home-summary { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 16px clamp(12px, 2vw, 22px); }
.home-summary-label { display: flex; align-items: center; gap: 9px; }
.home-summary-label h3 { margin: 0; color: var(--home-ink); font: 700 15px/1.4 system-ui, sans-serif; }
.home-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: #e6f3ec; color: var(--home-green); font-size: 17px; font-weight: 700; }
.home-metric, .home-profile-name { margin: 8px 0 2px; color: var(--home-ink); font: 720 clamp(24px, 2.75vw, 37px)/1.24 system-ui, sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-metric .balance-amount { white-space: normal; }
.home-metric .balance-digits { min-width: 0; overflow-wrap: anywhere; }
.home-profile-name { font-size: clamp(20px, 2.2vw, 29px); }
.home-note { margin: 3px 0 10px; color: var(--home-muted); font-size: 12px; line-height: 1.5; }
.home-profile { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 3px 0 9px; font-size: 12px; color: var(--home-muted); }
.home-profile div { display: flex; gap: 5px; min-width: 0; }
.home-profile dt { flex: none; }
.home-profile dd { margin: 0; color: var(--home-ink); overflow-wrap: anywhere; }
.home-link { margin: auto 0 0; padding: 5px 0; min-height: 30px; background: transparent; border: 0; color: var(--home-green); font-weight: 700; font-size: 13px; }
.home-link:hover { text-decoration: underline; }
.home-capabilities h2 { margin: 0 0 10px; font: 750 20px/1.3 system-ui, sans-serif; }
.home-capability-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.home-capability {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 3px 9px;
  align-items: start;
  text-align: start;
  padding: 13px 23px 13px 12px;
  color: var(--home-ink);
  min-width: 0;
}
.home-capability .home-icon { grid-row: span 2; }
.home-capability b { font-size: 14px; }
.home-capability span:not(.home-icon) { color: var(--home-muted); font-size: 12px; line-height: 1.5; }
.home-capability i { position: absolute; top: 13px; right: 10px; color: var(--home-green); font-style: normal; font-size: 12px; }
.home-capability:hover { border-color: #70a68d; background: #f0faf4; }
.studio-home button:focus-visible { outline: 2px solid #209574; outline-offset: 3px; }

.main-panel:has([data-page-panel="dashboard"].active) #wallet-balance { display: none; }

@media (max-width: 1050px) {
  .home-banner-copy { max-width: 76%; }
  .home-circuit { right: -5%; opacity: .48; }
}
@media (max-width: 640px) {
  .main-panel:has([data-page-panel="dashboard"].active) #provider-chip { display: none; }
  .studio-home { gap: 14px; }
  .home-overview { grid-template-columns: 1fr; gap: 9px; }
  .home-banner-copy { max-width: none; padding: 20px; }
  .home-circuit { right: -12%; width: 110%; opacity: .21; }
  .home-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-capability { grid-template-columns: 1fr; grid-template-rows: none; padding: 10px 15px 10px 10px; }
  .home-capability .home-icon { grid-row: auto; }
}
