.oracle-instance-picker {
  container-type: inline-size;
  min-width: 0;
  display: grid;
  gap: .7rem;
  margin: .75rem 0 .9rem;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--primary, #4FD1C5) 20%, var(--border, rgba(137, 164, 198, .2)));
  border-radius: 14px;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--surface-2, #182233) 92%, var(--primary, #4FD1C5) 8%),
    var(--surface, #121b29));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 8px 20px rgba(0,0,0,.08);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.oracle-instance-picker:focus-within { border-color:color-mix(in srgb, var(--primary, #4FD1C5) 42%, var(--border, #24344A)); box-shadow:0 0 0 3px color-mix(in srgb, var(--primary, #4FD1C5) 9%, transparent), inset 0 1px 0 rgba(255,255,255,.025); }
.oracle-picker-heading { display:grid; grid-template-columns:26px minmax(0,1fr) max-content; align-items:center; gap:.55rem; min-width:0; color:var(--fg, var(--text-muted, #9aabc1)); font-size:.74rem; font-weight:700; }
.oracle-picker-heading-icon { display:grid; width:26px; height:26px; place-items:center; border:1px solid color-mix(in srgb, var(--primary, #4FD1C5) 26%, transparent); border-radius:8px; background:color-mix(in srgb, var(--primary, #4FD1C5) 10%, transparent); color:var(--primary, #4FD1C5); }
.oracle-picker-heading-icon svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.oracle-picker-title { min-width:0; letter-spacing:.01em; }
.oracle-picker-status { display:inline-flex; width:max-content; min-width:max-content; max-width:none; flex:0 0 auto; align-items:center; justify-content:flex-end; gap:.35rem; padding:.28rem .48rem; border:1px solid color-mix(in srgb, var(--primary, #4FD1C5) 20%, transparent); border-radius:999px; background:color-mix(in srgb, var(--primary, #4FD1C5) 8%, transparent); color:var(--primary, #4ee1d0); font-size:.64rem; font-weight:600; line-height:1.35; letter-spacing:0; text-align:right; white-space:nowrap; }
.oracle-picker-status:empty { display:none; }
.oracle-picker-status::before { width:6px; height:6px; flex:0 0 auto; border-radius:50%; background:currentColor; content:""; }
.oracle-instance-picker .oracle-picker-field { display:grid; min-width:0; gap:.34rem; color:var(--fg-label, var(--text-muted, #9aabc1)); font-size:.73rem; font-weight:600; }
.oracle-picker-field select { width:100%; min-width:0; min-height:2.45rem; padding:.5rem 2rem .5rem .68rem; overflow:hidden; border:1px solid var(--border-input, var(--line, rgba(137,164,198,.25))); border-radius:9px; background-color:var(--surface-2, #121b29); color:var(--fg, var(--text, #edf3fb)); font-family:var(--font-sans, sans-serif); font-size:.76rem; font-weight:600; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.oracle-picker-field select:hover:not(:disabled) { border-color:color-mix(in srgb, var(--primary, #4FD1C5) 42%, var(--border-input, #314463)); }
.oracle-picker-field select:focus-visible { border-color:var(--primary, #4FD1C5); outline:2px solid color-mix(in srgb, var(--primary, #4FD1C5) 75%, transparent); outline-offset:2px; }
.oracle-picker-field select:disabled { cursor:not-allowed; opacity:.65; }
.oracle-picker-saved { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; min-width:0; }
.oracle-picker-saved[hidden] { display:none; }
.oracle-picker-preview { grid-column:1/-1; min-width:0; margin:0; padding-top:.05rem; color:var(--fg-muted, var(--text-muted, #9aabc1)); font-size:.69rem; line-height:1.45; overflow-wrap:anywhere; }
.oracle-picker-preview:empty { display:none; }
.oracle-picker-warning { grid-column:1/-1; margin:0; padding:.58rem .68rem; border:1px solid color-mix(in srgb, var(--sum-warn, #E8B14C) 42%, transparent); border-radius:9px; background:color-mix(in srgb, var(--sum-warn, #E8B14C) 9%, transparent); color:var(--sum-warn, #ffd18a); font-size:.74rem; line-height:1.45; }
.oracle-picker-warning[hidden] { display:none; }
.oracle-picker-offline { margin:.45rem 0; padding:.55rem .65rem; border:1px solid var(--border, rgba(137,164,198,.2)); border-radius:9px; background:var(--surface-2, #182233); color:var(--fg-muted, var(--text-muted, #9aabc1)); font-size:.75rem; line-height:1.45; }
@container (max-width: 380px) {
  .oracle-picker-heading { grid-template-columns:26px minmax(0,1fr); }
  .oracle-picker-status { grid-column:2; justify-self:start; width:max-content; min-width:0; max-width:100%; justify-content:flex-start; text-align:left; white-space:normal; }
  .oracle-picker-saved { grid-template-columns:minmax(0,1fr); gap:.55rem; }
  .oracle-picker-preview { grid-column:1; }
}
@media (prefers-reduced-motion: no-preference) {
  .oracle-instance-picker { animation: oracle-picker-in .18s ease-out both; }
  @keyframes oracle-picker-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .oracle-instance-picker, .oracle-picker-field select { transition:none; animation:none; }
}
