/* Production controls share the approved Indexes layout and network palettes. */
.iv-live-layout {
  max-width: 1320px;
  margin: auto;
}
.iv-live-form {
  display: grid;
  gap: 18px;
}
.iv-live-form input,
.iv-live-form select,
.iv-live-form textarea,
.iv-address-open input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--color-border, #303831);
  border-radius: 10px;
  color: inherit;
  background: var(--color-surface-1, #111611);
  font: inherit;
}
.iv-live-form textarea {
  min-height: 100px;
  resize: vertical;
}
.iv-live-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.iv-live-form input[type='checkbox'] {
  width: auto;
}
.iv-live-form .iv-check {
  display: flex;
  align-items: start;
}
.iv-address-open {
  display: flex;
  gap: 10px;
  margin: 22px 0;
}
.iv-address-open input {
  flex: 1;
}
.iv-live-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.iv-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.iv-live-full {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.iv-live-claim {
  border-top: 1px solid var(--color-border, #303831);
  padding: 20px 0;
}
.iv-live-seed {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 10px;
}
.iv-live-notice {
  padding: 16px;
  border: 1px solid var(--color-border, #303831);
  border-radius: 12px;
  margin: 16px 0;
  line-height: 1.6;
}
.iv-live-event {
  border-top: 1px solid var(--color-border, #303831);
  padding: 14px 0;
}
.iv-live-event p {
  overflow-wrap: anywhere;
}
.iv-live-muted {
  color: var(--color-text-muted, #9eaa9d);
}
.iv-live-chart {
  width: 100%;
  height: 220px;
}
.iv-live-chart polyline {
  fill: none;
  stroke: var(--color-accent, #ccff00);
  stroke-width: 2;
}
#index-status:not([hidden]) {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
#iv-dialog-body {
  overflow-wrap: anywhere;
}
#iv-dialog-body .iv-line b {
  text-align: right;
  max-width: 72%;
}
#iv-dialog {
  max-height: 90dvh;
  overflow-y: auto;
}
@media (max-width: 650px) {
  .iv-live-seed {
    grid-template-columns: 1fr;
  }
  .iv-address-open {
    flex-direction: column;
  }
}
[data-indexes-mode='live'] .iv-shell > .iv-panel {
  margin: 22px 0;
}
[data-indexes-mode='live'] .iv-live-orbit {
  width: 240px;
  height: 240px;
  border: 22px solid var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 30px auto;
  box-shadow: 0 0 55px color-mix(in srgb, var(--lime) 12%, transparent);
}
.iv-live-orbit > span {
  font-size: 64px;
  letter-spacing: -6px;
  color: var(--lime);
}
[data-indexes-mode='live'] .iv-hero-art > p {
  text-align: center;
}
[data-indexes-mode='live'] .iv-live-form {
  padding-top: 12px;
}
[data-indexes-mode='live'] .iv-live-form label {
  color: var(--muted);
}
[data-indexes-mode='live'] .iv-live-form input,
[data-indexes-mode='live'] .iv-live-form select,
[data-indexes-mode='live'] .iv-live-form textarea {
  color: var(--text);
  background: var(--ff-inset, #151a16);
  border-color: var(--line);
}
#iv-dialog-body .iv-line .iv-live-full {
  display: block;
  margin-top: 5px;
  font-weight: 400;
  color: var(--muted);
}

.iv-profile-hero {
  display: flex;
  gap: 28px;
  padding: 38px 0;
  align-items: flex-start;
}
.iv-profile-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--lime);
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
}
.iv-profile-hero h1 {
  margin: 6px 0 12px;
}
.iv-profile-address {
  font-family: monospace;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--muted);
}
.iv-profile-bio {
  max-width: 680px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.iv-profile-x {
  display: inline-flex;
  margin: 10px 12px 8px 0;
  font-weight: 700;
}
.iv-profile-badge {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--lime);
  font-size: 12px;
}
.iv-profile-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
}
.iv-profile-layout .iv-live-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.iv-share-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--lime);
  border-radius: 16px;
}
@media (max-width: 760px) {
  .iv-profile-layout {
    grid-template-columns: 1fr;
  }
  .iv-profile-hero {
    gap: 16px;
  }
  .iv-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 22px;
  }
}

/* Searchable basket picker; native dialog supplies focus trapping and Escape. */
.iv-icon-button {
  display: grid; place-items: center; width: 36px; height: 36px;
  flex-shrink: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); font: inherit; font-size: 23px; cursor: pointer;
}
.iv-icon-button:hover { color: var(--text); background: #ffffff0b; }
.iv-token-picker {
  width: min(540px, calc(100vw - 32px)); max-height: min(800px, calc(100dvh - 40px));
  padding: 24px; border: 1px solid var(--iv-border); border-radius: 24px;
  background: var(--panel-solid); color: var(--text); box-shadow: 0 24px 100px #0008;
  overflow: hidden; font: inherit;
}
.iv-token-picker[open] { display: flex; flex-direction: column; gap: 16px; }
.iv-token-picker::backdrop { background: #080b09ad; backdrop-filter: blur(7px); }
.iv-picker-head, .iv-picker-selection, .iv-picker-results-head, .iv-basket-heading,
.iv-basket-allocation { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.iv-picker-head h2 { margin: 5px 0 0; font-size: 26px; letter-spacing: -.7px; }
.iv-picker-head .iv-eyebrow { margin: 0; font-size: 10px; }
.iv-picker-search { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink); }
.iv-picker-search:focus-within { border-color: var(--lime); }
.iv-picker-search > span { font-size: 26px; color: var(--muted); }
.iv-picker-search input { width: 100%; min-width: 0; background: transparent; color: var(--text); border: 0; outline: 0; padding: 0; font: inherit; font-size: 14px; }
.iv-picker-tabs { display: flex; gap: 7px; }
.iv-picker-tabs button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 20px; font: inherit; font-size: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.iv-picker-tabs button[aria-pressed=true] { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 700; }
.iv-picker-selection, .iv-picker-results-head, .iv-basket-allocation { font-size: 12px; color: var(--muted); }
.iv-picker-selection button, .iv-picker-results-head button, .iv-basket-allocation button { padding: 0; border: 0; color: var(--lime); background: transparent; font: inherit; cursor: pointer; }
.iv-picker-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 74px; overflow-y: auto; flex-shrink: 0; }
.iv-picker-chips:empty { display: none; }
.iv-picker-chips button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--ink); font: inherit; font-size: 11px; cursor: pointer; }
.iv-picker-chips span { color: var(--muted); margin-left: 5px; }
.iv-picker-results { min-height: 110px; height: 330px; overflow-y: auto; overscroll-behavior: contain; margin: -4px -12px; padding: 0 4px; }
.iv-picker-token { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 12px; cursor: pointer; }
.iv-picker-token:hover, .iv-picker-token:has(:checked) { background: #ffffff06; }
.iv-picker-token input { order: 4; margin-left: 2px; width: 17px; height: 17px; accent-color: var(--lime); flex-shrink: 0; }
.iv-token-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: color-mix(in srgb, var(--lime) 12%, var(--ink)); color: var(--lime); font-size: 10px; font-weight: 750; letter-spacing: -.3px; }
.iv-token-copy { display: grid; gap: 4px; min-width: 0; text-align: left; }
.iv-token-copy b { color: var(--text); font-size: 15px; }
.iv-token-copy small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-token-address { color: var(--muted); font-size: 10px; margin-left: auto; white-space: nowrap; }
.iv-picker-empty { display: grid; justify-items: center; gap: 14px; padding: 40px 12px; text-align: center; line-height: 1.5; color: var(--muted); }
.iv-picker-empty code { overflow-wrap: anywhere; font-size: 12px; max-width: 100%; }
.iv-picker-error { color: var(--lime); margin: 0; font-size: 12px; flex-shrink: 0; }
.iv-picker-error:empty { display: none; }
.iv-picker-foot { border-top: 1px solid var(--line); padding-top: 16px; flex-shrink: 0; }
.iv-picker-foot p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.iv-picker-foot > div { display: flex; gap: 10px; }
.iv-picker-foot .iv-primary { flex: 1; }
.iv-token-picker button:focus-visible, .iv-basket-token:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
#index-basket { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.iv-basket-heading { margin-bottom: 20px; }
.iv-basket-heading h3 { margin: 0; font-size: 20px; }
.iv-basket-heading h3 span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.iv-basket-heading p { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.iv-basket-heading .iv-button { font-size: 12px; padding: 11px 15px; }
.iv-basket-allocation { margin-bottom: 12px; }
.iv-basket-allocation > span { color: var(--lime); }
.iv-basket-row { grid-template-columns: minmax(0, 1fr) 140px 36px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.iv-basket-row:last-child { border: 0; }
.iv-basket-token { display: flex; gap: 12px; align-items: center; min-width: 0; background: transparent; border: 0; padding: 0; cursor: pointer; font: inherit; }
.iv-basket-token .iv-token-copy > span { color: var(--muted); font-size: 10px; }
.iv-live-form .iv-basket-weight, .iv-live-form .iv-basket-quantity { font-size: 11px; }
.iv-basket-weight > div { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--ff-inset, #151a16); padding-right: 12px; }
.iv-live-form .iv-basket-weight input { border: 0; background: transparent; padding: 10px; text-align: right; }
.iv-basket-empty { display: grid; justify-items: center; text-align: center; border: 1px dashed var(--iv-border); border-radius: 16px; padding: 30px 20px; }
.iv-basket-empty-mark { font-size: 28px; color: var(--lime); margin-bottom: 12px; }
.iv-basket-empty p { color: var(--muted); font-size: 13px; max-width: 300px; line-height: 1.6; margin: 10px 0 20px; }
.iv-basket-empty[hidden], .iv-basket-allocation[hidden], .iv-live-form label[hidden] { display: none; }
@media (max-width: 560px) {
  .iv-token-picker { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); padding: 18px; border-radius: 20px; }
  .iv-picker-head h2 { font-size: 23px; }
  .iv-picker-tabs button { padding: 8px 11px; }
  .iv-token-address { display: none; }
  .iv-picker-token input { margin-left: auto; }
  .iv-basket-row { grid-template-columns: minmax(0, 1fr) 92px 28px; gap: 8px; }
  .iv-basket-row .iv-icon-button { width: 28px; }
  .iv-basket-token { gap: 8px; }
  .iv-basket-token .iv-token-mark { width: 32px; height: 32px; font-size: 9px; }
  .iv-basket-token small { display: none; }
  .iv-basket-allocation { align-items: start; }
  .iv-basket-allocation > span { max-width: 190px; line-height: 1.5; }
}
.iv-token-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--ff-inset, #151a16); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.iv-token-choice:hover { border-color: var(--lime); }
.iv-picker-search input:focus { box-shadow: none; }
.iv-live-form .iv-basket-weight input[type=range] { appearance: none; width: 100%; height: 28px; padding: 0; margin: 2px 0 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; box-shadow: none; }
.iv-basket-weight input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 8px; background: linear-gradient(to right, var(--lime) var(--weight), var(--line) var(--weight)); }
.iv-basket-weight input[type=range]::-moz-range-track { height: 5px; border-radius: 8px; background: linear-gradient(to right, var(--lime) var(--weight), var(--line) var(--weight)); }
.iv-basket-weight input[type=range]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border: 3px solid var(--panel-solid); border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.iv-basket-weight input[type=range]::-moz-range-thumb { box-sizing: border-box; width: 18px; height: 18px; border: 3px solid var(--panel-solid); border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.iv-basket-weight input[type=range]:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 5px; }
.iv-live-form [hidden] { display: none; }
@media (max-width: 560px) {
  .iv-basket-row { grid-template-columns: minmax(0, 1fr) 112px 28px; }
  .iv-live-form .iv-basket-weight input[type=range] { height: 36px; }
}
.iv-create-progress { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--lime); line-height: 1.6; }
.iv-create-progress[hidden] { display: none; }
.iv-create-progress.is-error { color: #f2bd9c; }
.iv-draft-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.iv-draft-actions button { border: 0; background: transparent; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; }

.iv-manager-heading,
.iv-activity-heading { display:flex; align-items:start; justify-content:space-between; gap:20px; }
.iv-manager-heading h2 { margin:4px 0 10px; }
.iv-manager-tabs { display:flex; gap:8px; border-bottom:1px solid var(--line,#303831); margin:24px 0; padding-bottom:12px; }
.iv-manager-tabs button { border:0; border-radius:10px; padding:11px 22px; background:transparent; color:var(--muted,#969e93); font:inherit; cursor:pointer; }
.iv-manager-tabs button[aria-selected='true'] { background:var(--lime,#c6f777); color:var(--ink,#10150e); font-weight:650; }
.iv-manager-tabs button:focus-visible { outline:2px solid var(--lime,#c6f777); outline-offset:3px; }
.iv-manager-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; }
.iv-manager-grid h3 { margin:0 0 12px; }
.iv-manager-grid > div > p { max-width:44ch; line-height:1.7; }
.iv-manager-steps { display:flex; gap:10px; flex-wrap:wrap; padding:0; list-style:none; counter-reset:step; margin:24px 0; }
.iv-manager-steps li { display:flex; gap:8px; align-items:center; font-size:12px; counter-increment:step; }
.iv-manager-steps li::before { content:counter(step); border:1px solid var(--line,#303831); padding:5px 9px; border-radius:50%; }
.iv-manager-fees { display:flex; gap:32px; margin:24px 0; }
.iv-manager-fees small { display:block; color:var(--muted,#969e93); margin-bottom:8px; }
.iv-manager-fees strong { font-size:28px; font-weight:600; }
.iv-manager-notices { border-top:1px solid var(--line,#303831); margin-top:32px; padding-top:24px; }
.iv-manager-setting { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:32px; padding-top:24px; border-top:1px solid var(--line,#303831); }
.iv-manager-setting p { max-width:60ch; }
.iv-manager-danger { border-top:1px solid var(--line,#303831); margin-top:24px; padding-top:20px; }
.iv-manager-danger summary { cursor:pointer; color:var(--muted,#969e93); font-size:13px; }
.iv-manager-danger button { border-color:#b36457; color:#e1a092; }
.iv-activity-heading small { color:var(--muted,#969e93); white-space:nowrap; }
.iv-live-event > p { max-width:85ch; line-height:1.7; color:var(--muted,#969e93); }
#index-price-status { min-height:22px; line-height:1.7; margin:0 0 24px; }
@media(max-width:700px) {
  .iv-manager-grid { grid-template-columns:1fr; gap:20px; }
  .iv-manager-heading, .iv-manager-setting, .iv-activity-heading { flex-direction:column; gap:12px; }
  .iv-manager-tabs button { flex:1; padding:11px 14px; }
  .iv-manager-steps { margin:16px 0; }
}
