/* One continuous settings surface, with vertically ordered sections. */
.collection-settings { --setting-line: rgba(143,187,203,.16); --setting-muted: #91a6b3; padding: 16px 20px 24px; color: #e8f0f4; }
.collection-page-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:22px; }
.collection-page-heading h1 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.collection-page-heading p { margin: 5px 0 0; color: var(--setting-muted); font-size: 12px; }
.collection-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0; }
.collection-tabs-row > span { font-size: 11px; color: var(--setting-muted); }
.collection-tabs-row .range-tabs { margin: 0; }
.collection-sections { display: block; width: 100%; border: 1px solid var(--setting-line); border-radius: 12px; background: linear-gradient(135deg,rgba(29,48,55,.5),rgba(16,30,37,.55)); box-shadow: inset 0 1px rgba(227,255,248,.035); }
.collection-section { min-width: 0; padding: 10px 16px 6px; }
.collection-section + .collection-section { border-top: 1px solid var(--setting-line); }
.collection-section-title { display: flex; gap: 10px; align-items: baseline; padding-bottom: 6px; }
.collection-section-title > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.collection-section-index { font: 11px var(--mono); color: #66cbb5; letter-spacing: .04em; }
.collection-section-title h2 { margin: 0; font-size: 14px; font-weight: 650; line-height: 20px; }
.collection-section-title p { margin: 0; font-size: 11px; line-height: 1.5; color: var(--setting-muted); }
.collection-fields { display: block; }
.collection-field { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 132px; gap: 0 20px; align-items: center; min-height: 34px; padding: 3px 0; }
.collection-field + .collection-field { border-top: 1px solid rgba(143,187,203,.075); }
.collection-field-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.collection-field-description { margin: 0; font-size: 11px; line-height: 1.5; color: var(--setting-muted); }
.collection-risk-fields { min-width: 0; }
.collection-label { display: flex; align-items: center; flex-shrink: 0; gap: 5px; font-size: 12px; line-height: 1.45; }
.collection-input { justify-self: end; height: 28px; width: 132px; display: flex; align-items: center; border: 1px solid rgba(142,189,208,.27); border-radius: 6px; background: rgba(12,26,33,.65); box-shadow: inset 0 1px rgba(255,255,255,.025); transition: border-color .15s, background .15s; }
.collection-input:focus-within { border-color: #55d5b2; background: rgba(22,43,50,.75); outline: 2px solid rgba(85,213,178,.10); }
.collection-input.is-dirty { border-color: rgba(85,213,178,.6); }
.collection-input.is-invalid { border-color: #dd8686; }
.collection-input input { appearance: textfield; -moz-appearance: textfield; min-width: 0; width: 100%; padding: 0 8px; height: 100%; border: 0; border-radius: inherit; outline: none; background: transparent; color: #edf4f7; font: 13px var(--mono); }
.collection-input input::-webkit-inner-spin-button, .collection-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.collection-input > span { padding-right: 8px; white-space: nowrap; font-size: 11px; color: #aac0cf; }
.collection-input:has(input:disabled) { opacity: .55; }
.collection-help { grid-column: 1 / -1; margin-top: 4px; line-height: 1.4; font-size: 11px; }
.collection-settings .error { color: #ee9898; }
.collection-tip { position: static; display: inline-flex; flex: 0 0 auto; border-radius: 50%; }
.collection-tip img, .collection-save-note > img { width: 12px; height: 12px; filter: invert(77%) sepia(12%) saturate(492%) hue-rotate(156deg); }
.collection-tip > span { display: none; position: absolute; top: calc(100% + 5px); left: 0; width: min(280px,100%); padding: 8px 10px; border-radius: 6px; border: 1px solid var(--setting-line); background: #192a32; color: #deebef; font-size: 12px; line-height: 1.6; box-shadow: 0 8px 24px #0006; z-index: 10; }
.collection-tip:hover > span, .collection-tip:focus > span { display: block; }
.collection-toggle-row { position: relative; display: flex; align-items: center; gap: 5px; margin: 0 0 8px; min-height: 30px; font-size: 12px; }
.collection-toggle-row > .collection-tip { order: 1; }
.collection-switch { justify-self: end; padding: 3px; width: 34px; height: 20px; border: 0; border-radius: 20px; background: #3f5058; cursor: pointer; transition: background .15s; flex: 0 0 auto; }
.collection-switch > span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #effaf7; transition: transform .15s; }
.collection-switch.on { background: #4ed5b4; }
.collection-switch.on > span { transform: translateX(14px); }
.collection-switch:disabled { opacity: .5; cursor: not-allowed; }
.collection-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.collection-save-note { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--setting-muted); }
.collection-footer-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.collection-text-action { padding: 0; border: 0; background: transparent; color: #a7b8c1; font: inherit; font-size: 12px; cursor: pointer; }
.collection-text-action:hover:not(:disabled) { color: #e7f8f3; text-decoration: underline; }
.collection-text-action:disabled { opacity: .45; cursor: not-allowed; }
.collection-save { height: 30px; min-width: 92px; font-size: 12px; border-radius: 6px; }
.collection-save:disabled { opacity: .5; cursor: not-allowed; }
.collection-notice { padding: 10px 0; font-size: 12px; color: #d5bf80; }
.collection-notice button, .collection-save-note button { border: 0; padding: 0; background: transparent; text-decoration: underline; color: inherit; cursor: pointer; margin-left: 8px; }
.collection-blacklist { margin-top: 0; border-top: 1px solid var(--setting-line); padding-top: 8px; }
.collection-blacklist > summary { cursor: pointer; color: var(--setting-muted); font-size: 12px; }
.collection-blacklist + .collection-blacklist { margin-top: 12px; }
.collection-coins { padding: 8px 0 0; font-size: 12px; }
.collection-coins > p { margin: 0 0 10px; color: var(--setting-muted); font-size: 11px; }
.collection-coins-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.collection-coins .coin-tags.expanded { flex: 0 1 auto; justify-content: flex-start; max-height: 96px; }
.collection-coins .coin-add { margin-left: auto; align-items: center; gap: 10px; }
.collection-coins .coin-add button { flex-shrink: 0; white-space: nowrap; }
.collection-coins-feedback { min-height: 24px; padding-top: 6px; font-size: 11px; color: #55d5b2; }
.collection-settings button:focus-visible, .collection-tip:focus-visible, .collection-blacklist > summary:focus-visible { outline: 2px solid #55d5b2; outline-offset: 3px; }
@media (max-width: 900px) {
  .collection-tabs-row { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 600px) {
  .collection-settings { padding: 12px 12px 72px; }
  .collection-page-heading h1 { font-size: 22px; }
  .collection-section { padding: 10px 12px 6px; }
  .collection-field { grid-template-columns: minmax(0,1fr) 104px; column-gap: 12px; min-height: 40px; padding: 4px 0; }
  .collection-field-copy { display: block; }
  .collection-label { flex-shrink: 1; }
  .collection-field-description { margin-top: 2px; }
  .collection-input { width: 104px; }
  .collection-input { height: 32px; }
  .collection-footer { flex-wrap: wrap; gap: 12px; }
  .collection-footer-actions { margin-left: auto; gap: 16px; }
}

/* Approved numeric matrix: short editors on one continuous graphite/glass surface. */
.collection-settings-scanner { padding:18px 24px 24px; background:radial-gradient(ellipse 480px 300px at 95% 65%,rgba(32,91,96,.16),transparent 75%),radial-gradient(ellipse 480px 320px at 5% 70%,rgba(14,101,104,.12),transparent 80%),linear-gradient(130deg,rgba(25,51,60,.42),rgba(12,29,37,.38)); }
.collection-settings .collection-tabs-row .range-tabs { width:auto; gap:24px; padding:0; border:0; border-radius:0; background:none; }
.collection-settings .collection-tabs-row .range-tabs button { padding:7px 0 9px; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; box-shadow:none; font-size:13px; color:#9db1bf; }
.collection-settings .collection-tabs-row .range-tabs button.on { border-bottom-color:#61ded2; color:#e3f4f1; }
.collection-settings-scanner .collection-page-heading { gap:18px; margin-bottom:12px; }
.collection-settings-scanner .collection-page-heading h1 { font-size:22px; }
.collection-settings-scanner .collection-save { min-width:84px; height:28px; padding:0 12px; }
.collection-settings-scanner .collection-footer { padding:10px 0; border-top:1px solid var(--setting-line); }
.collection-matrix { border:0; border-radius:0; box-shadow:none; background:transparent; }
.collection-matrix .collection-section { padding:12px 0 16px; }
.collection-matrix .collection-section-title { gap:10px; padding:0; align-items:center; }
.collection-matrix .collection-section-title>div { gap:10px; }
.collection-matrix .collection-section-title h2 { font-size:15px; line-height:21px; font-weight:650; }
.collection-matrix .collection-section-title p { margin-left:4px; font-size:11px; }
.collection-matrix .collection-section-index { font:12px var(--sans); color:#66ded0; }
.collection-matrix .collection-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px 24px; padding:14px 24px 0; }
.collection-matrix .collection-parameter-row,.collection-matrix .collection-row-inputs { display:contents; }
.collection-matrix .collection-field { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; min-height:0; padding:0; border:0; }
.collection-matrix .collection-label { color:#adc1ce; font-size:12px; line-height:18px; white-space:normal; }
.collection-matrix .collection-input { width:128px; max-width:100%; min-width:0; height:26px; justify-content:flex-start; gap:8px; border:0; border-radius:0; background:transparent; box-shadow:none; outline:0; }
.collection-matrix .collection-input:focus-within,.collection-matrix .collection-input.is-dirty { background:transparent; box-shadow:none; outline:0; }
.collection-matrix .collection-number { display:flex; align-items:center; flex:1; min-width:0; height:100%; border-bottom:1px solid #49606a; border-image:linear-gradient(90deg,#69cfc7,#49606a) 1; cursor:text; }
.collection-matrix .collection-input:focus-within .collection-number,.collection-matrix .collection-input.is-dirty .collection-number { border-image:none; border-bottom-color:#67ddd2; background:rgba(104,211,197,.025); }
.collection-matrix .collection-input:focus-within .collection-number { box-shadow:0 1px 0 #67ddd2; }
.collection-matrix .collection-input.is-invalid .collection-number { border-image:none; border-bottom-color:#ee9898; box-shadow:0 1px 0 #ee9898; }
.collection-matrix .collection-input input { flex:0 1 80px; width:80px; padding:0 5px; font-size:15px; font-weight:400; font-variant-numeric:tabular-nums; }
.collection-matrix .collection-input>span { flex:none; padding-right:2px; font-size:11px; color:#acc3cf; }
.collection-matrix .collection-input:not(:has(>span)) { width:104px; }
.collection-matrix .collection-input-volume { width:192px; }
.collection-matrix .collection-input-capacity { width:116px; }
.collection-matrix .collection-input-volume input { flex-basis:110px; width:110px; }
.collection-matrix .collection-help { margin-top:0; font-size:11px; }
.collection-matrix .collection-parameter-balanced .collection-field { align-self:center; }
.collection-matrix .collection-parameter-compact { display:flex; flex-direction:column; gap:8px; }
.collection-matrix .collection-row-label { display:flex; align-items:center; gap:6px; color:#e1ecf1; font-size:12px; font-weight:600; line-height:18px; }
.collection-matrix .collection-parameter-compact .collection-row-inputs { display:grid; gap:8px; }
.collection-matrix .collection-parameter-compact .collection-field { display:grid; grid-template-columns:minmax(0,1fr) 96px; column-gap:8px; align-items:center; }
.collection-matrix .collection-parameter-compact .collection-label { font-size:12px; }
.collection-matrix .collection-parameter-compact .collection-input { width:96px; height:26px; gap:8px; }
.collection-matrix .collection-parameter-compact input { flex:1; width:100%; font-size:14px; padding-left:5px; }
.collection-matrix .collection-parameter-compact .collection-help { grid-column:1/-1; }
@media(max-width:1000px) {
  .collection-matrix .collection-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; }
  .collection-matrix .collection-parameter-compact { grid-column:1/-1; }
  .collection-matrix .collection-parameter-compact .collection-row-inputs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .collection-matrix .collection-parameter-compact .collection-field { display:flex; }
  .collection-matrix .collection-parameter-compact .collection-input { width:128px; height:26px; gap:8px; }
  .collection-matrix .collection-parameter-compact input { flex:0 1 80px; width:80px; font-size:15px; padding-left:5px; }
}
@media(max-width:640px) {
  .collection-settings-scanner { padding:14px 16px 100px; }
  .collection-page-heading { flex-wrap:wrap; gap:10px; margin-bottom:10px; }
  .collection-settings-scanner .collection-page-heading { position:sticky; top:0; z-index:20; padding:10px 16px 6px; margin:-10px -16px 14px; background:rgba(14,31,39,.94); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
  .collection-settings-scanner .collection-page-heading h1 { font-size:20px; }
  .collection-tabs-row { width:100%; gap:12px; }
  .collection-settings-scanner .collection-tabs-row { flex-wrap:nowrap; }
  .collection-settings .collection-tabs-row .range-tabs { gap:16px; }
  .collection-settings .collection-tabs-row .range-tabs button { font-size:12px; }
  .collection-settings-scanner .collection-save { min-width:78px; padding:0 10px; }
  .collection-matrix .collection-section { padding:12px 0 16px; }
  .collection-matrix .collection-section-title>div { gap:6px; }
  .collection-matrix .collection-section-title h2 { font-size:14px; }
  .collection-matrix .collection-section-title p { flex-basis:100%; margin:0; font-size:11px; }
  .collection-matrix .collection-fields { padding:12px 8px 0; gap:16px 16px; }
  .collection-matrix .collection-label { min-height:32px; font-size:12px; }
  .collection-matrix .collection-field-copy { display:flex; }
  .collection-matrix .collection-input,.collection-matrix .collection-parameter-compact .collection-input { height:32px; width:128px; }
  .collection-matrix .collection-input-volume { width:176px; }
  .collection-matrix .collection-input-capacity { width:116px; }
  .collection-matrix .collection-input-volume input { flex-basis:86px; width:86px; }
  .collection-matrix .collection-parameter-compact .collection-row-inputs { gap:16px; }
  .collection-settings-scanner .collection-save-note { font-size:10px; }
}

.collection-matrix .collection-parameter-separate { display:grid; grid-column:1/-1; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px 24px; }
@media(max-width:1000px) { .collection-matrix .collection-parameter-separate { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; } }
@media(max-width:640px) { .collection-matrix .collection-parameter-separate { gap:16px 16px; } }
