/* r322: indicator settings (Inputs / Style) like pro charts. Theme variables only. */
.modal-box.is322 { width: min(460px, calc(100vw - 32px)); height: auto; max-height: min(600px, 88dvh); padding: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; }
.is322 > .mh { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 18px; flex: none; }
.is322 > .mh b { font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is322 > .mh select { height: 30px; max-width: 150px; padding: 0 8px; border: 1px solid var(--hair); border-radius: 8px; background: var(--fill); color: var(--t1); font: inherit; font-size: 12px; }
.is322-tabs { display: flex; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--hair); flex: none; }
.is322-tabs button { height: 36px; padding: 0 2px; border: 0; background: transparent; color: var(--t2); font: inherit; font-size: 13.5px; font-weight: 500; box-shadow: inset 0 -2px 0 transparent; cursor: pointer; }
.is322-tabs button.on { color: var(--t1); box-shadow: inset 0 -2px 0 var(--t1); }
.is322-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 18px 14px; overscroll-behavior: contain; }
.is322-body section[hidden] { display: none; }
.is322-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--hair); }
.is322-row:last-child { border-bottom: 0; }
.is322-row > span { font-size: 13px; color: var(--t1); }
.is322-num { display: flex; align-items: stretch; width: 150px; height: 34px; border: 1px solid var(--hair); border-radius: 8px; background: var(--fill); overflow: hidden; }
.is322-num:focus-within { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.is322-num input { flex: 1; width: 0; border: 0; background: transparent; color: var(--t1); font: inherit; font-size: 13.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; outline: none; }
.is322-num input::-webkit-outer-spin-button, .is322-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.is322-num button { width: 34px; flex: none; border: 0; background: transparent; color: var(--t2); font-size: 16px; cursor: pointer; }
.is322-num button:hover { background: var(--fill-2); color: var(--t1); }
.is322-ck { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; cursor: pointer; }
.is322-ck input { width: 16px; height: 16px; margin: 0; accent-color: var(--t1); }
.is322-ck span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is322-sty { display: flex; align-items: center; gap: 6px; flex: none; }
.is322-sty .sw-c { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--hair); box-shadow: inset 0 0 0 3px var(--card); background: var(--c); cursor: pointer; }
.is322-sty select { height: 30px; padding: 0 6px; border: 1px solid var(--hair); border-radius: 8px; background: var(--fill); color: var(--t1); font: inherit; font-size: 12px; }
.is322-none { padding: 20px 0; text-align: center; font-size: 12.5px; color: var(--t3); }
.is322-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hair); flex: none; }
.is322-foot .btn { height: 34px; }
@media (max-width: 560px) {
  .modal-box.is322 { width: 100%; max-height: 88dvh; margin-top: auto; border-radius: 18px 18px 0 0; }
  .is322-row { min-height: 52px; }
  .is322-num { width: 140px; height: 40px; }
  .is322-num button { width: 40px; }
  .is322-line { flex-wrap: wrap; padding: 8px 0; }
  .is322-sty select { height: 36px; }
  .is322-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* r323: volume settings and value options */
.is322-sub { margin: 12px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t3); }
.is322-sub:first-child { margin-top: 4px; }
.vs323-num { width: 110px; height: 34px; padding: 0 10px; border: 1px solid var(--hair); border-radius: 8px; background: var(--fill); color: var(--t1); font: inherit; font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.vs323-sel { height: 34px; max-width: 190px; padding: 0 8px; border: 1px solid var(--hair); border-radius: 8px; background: var(--fill); color: var(--t1); font: inherit; font-size: 12.5px; }
.vs323-col { width: 34px; height: 30px; padding: 2px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card); cursor: pointer; }
.vs323-note { margin: 10px 0 4px; padding: 10px 12px; border-radius: 8px; background: var(--fill); color: var(--t3); font-size: 11.5px; line-height: 1.5; }
.vs323 .is322-body section > .btn { margin-top: 8px; width: 100%; height: 36px; justify-content: center; }
.vs323 .is322-tabs { gap: 14px; }

/* volume pane title like pro charts: name, value, money, then the buttons right after it (not at the far right) */
body .volume-pane-tools { width: auto !important; max-width: calc(100% - 70px); background: transparent; padding: 1px 2px; gap: 2px; }
body .volume-pane-tools .volume-readout { flex: none; gap: 7px; font-size: 11px; }
.volume-readout .volume-money { color: var(--t1); font-weight: 600; }
body .volume-pane-tools button:not(.volume-readout) { opacity: 0; transition: opacity .12s; border-radius: 5px; }
body .volume-pane-tools:hover button, body .volume-pane-tools:focus-within button, body .volume-pane-tools.is-hidden button { opacity: 1; }
body .volume-pane-tools button:not(.volume-readout):hover { background: var(--fill-2); }
@media (pointer: coarse) { body .volume-pane-tools button { opacity: 1 !important; } }
/* r324: clear volume name */
.volume-readout .volume-name { color: var(--t1); font-weight: 700; }
.volume-readout .volume-src { padding: 0 5px; border-radius: 4px; background: var(--fill-2); color: var(--t2); font-size: 10px; font-weight: 600; }
/* r455 owner: volume numbers always readable, never cut */
body .volume-pane-tools { overflow: visible !important; max-width: calc(100% - 8px) !important; }
body .volume-pane-tools .volume-readout { overflow: visible !important; flex: none !important; gap: 8px !important; font-size: 11.5px !important; }
.volume-readout strong, .volume-readout .volume-money { padding: 0 4px; border-radius: 4px; background: var(--card); font-size: 12px; }
.volume-pane-tools.is-tiny .volume-readout .volume-extra, .volume-pane-tools.is-compact .volume-readout .volume-src { display: none; }
/* r456 Premium: crown badge in the indicator list and on the chart chip */
.prem456-b{display:inline-flex;align-items:center;gap:3px;margin-right:8px;padding:2px 7px 2px 5px;border-radius:999px;background:linear-gradient(135deg,#f7c948,#e8a317);color:#3b2600;font:700 10px/1.3 Inter,system-ui,sans-serif;letter-spacing:.3px;text-transform:uppercase;font-style:normal;vertical-align:1px}
.prem456-b svg{width:11px;height:11px;stroke-width:2.2}
.ind318-row.prem456{border-left:3px solid #e8a317}
.study-chip.prem456-chip>b{display:inline-flex;align-items:center;gap:4px}
.study-chip.prem456-chip>b>svg{width:13px;height:13px;color:#e8a317;stroke-width:2.2;flex:none}
.ind318-nav [data-cat="premium"] svg{color:#e8a317}
