/* 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 h1 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 720; 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: 16px; padding: 12px 0 10px; }
.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; }
}
