/* MFD-52 settings own their surface; global navigation and account UI are preserved. */
body[data-qmt-editing] .qmt-page > :not(#qmtSettingsPage) { display:none; }
#qmtSettingsPage { --qs-line:#303433; max-width:1660px; margin:0 auto; padding:0 20px; color:#f0efea; }
.qs-head { display:flex; align-items:flex-start; gap:56px; margin-top:-10px; padding:4px 0 14px; }
.qs-back { flex:none; border:0; background:transparent; color:#d2d3ce; padding:9px 4px; }
.qs-back:hover { color:#f5c643; }
.qs-head p { margin:6px 0; color:#a6ada9; font-size:14px; }
.qs-head h1 { margin:4px 0; font-size:clamp(30px,2.45vw,40px); line-height:1.25; letter-spacing:-.025em; }
.qs-head h1:focus { outline:none; }
.qs-head span { color:#c0c4bf; font-size:17px; }
.qs-enable-bar { display:flex; justify-content:space-between; align-items:center; min-height:64px; gap:24px; padding:13px 28px; border:1px solid var(--qs-line); border-radius:9px; background:#111414; margin-bottom:16px; }
.qs-enable-bar > div { display:flex; align-items:center; gap:28px; }
.qs-enable-bar strong { font-size:18px; }
.qs-enable-bar > div > span { padding-left:26px; border-left:1px solid #424740; color:#b2b9b3; }
.qs-layout { display:grid; grid-template-columns:minmax(0,1.72fr) minmax(0,1fr); gap:16px; align-items:start; }
.qs-card { border:1px solid var(--qs-line); border-radius:10px; padding:18px 22px; background:#131616; }
.qs-card h2 { margin:0 0 16px; padding-bottom:12px; border-bottom:1px solid #2b302d; font-size:22px; line-height:1.35; }
.qs-editor { min-height:500px; }
.qs-field-line { display:grid; grid-template-columns:100px minmax(0,1fr); align-items:start; gap:16px; margin:20px 0; }
.qs-field-line > label,.qs-label { padding-top:10px; font-weight:650; }
.qs-mode-options { display:flex; gap:14px; }
.qs-mode-options button { flex:1; min-width:0; min-height:68px; display:flex; align-items:center; gap:16px; padding:10px 16px; border:1px solid #40463f; border-radius:6px; background:#111414; color:#f0efea; text-align:left; }
.qs-mode-options strong { display:block; font-size:17px; }
.qs-mode-options small { display:block; color:#a6ada9; margin-top:3px; }
.qs-mode-options i { width:22px; height:22px; border:2px solid #727b72; border-radius:50%; flex:none; }
.qs-mode-options [aria-pressed=true] { border-color:#f5c643; background:linear-gradient(120deg,#302b13,#232115); }
.qs-mode-options [aria-pressed=true] i { border-color:#f5c643; box-shadow:inset 0 0 0 4px #302b13; background:#f5c643; }
#qmtSettingsPage input:not([type=checkbox]),#qmtSettingsPage select { width:100%; min-width:0; min-height:46px; padding:9px 14px; border:1px solid #41483f; border-radius:6px; background:#101313; color:#f0efea; }
.qs-segment { display:flex; width:min(100%,360px); border:1px solid #454a41; border-radius:6px; overflow:hidden; }
.qs-segment button { flex:1; padding:11px 16px; color:#dedfd9; background:#111414; border:0; }
.qs-segment [aria-pressed=true] { color:#1d1905; background:#f5c643; font-weight:700; }
.qs-hint { color:#a6ada9; font-size:13px; line-height:1.65; margin:10px 0 0; }
.qs-condition-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:20px; }
.qs-condition-grid label { display:flex; align-items:center; min-height:28px; margin-bottom:8px; font-weight:650; }
.qs-inline-check { gap:8px; }
.qs-inline-check input { width:18px; height:18px; accent-color:#f5c643; }
.qs-percent,.qs-currency { position:relative; display:flex; align-items:center; }
.qs-percent { margin-top:8px; }
.qs-percent > span,.qs-currency > span:last-child { position:absolute; right:16px; color:#b3b9b1; pointer-events:none; }
.qs-percent input { padding-right:38px !important; }
.qs-currency > span:first-child { position:absolute; left:16px; font-size:22px; color:#f5c643; }
#qmtSettingsPage .qs-currency input { padding-left:44px; padding-right:45px; font-size:24px; min-height:60px; }
.qs-time-fields { display:grid; grid-template-columns:1fr 20px 1fr; gap:12px; align-items:end; }
.qs-time-fields label { color:#a6ada9; font-size:14px; }
.qs-time-fields input { margin-top:8px; font-size:16px; }
.qs-time-fields > span { padding-bottom:12px; text-align:center; }
.qs-aside { display:grid; gap:16px; }
.qs-preview { background:linear-gradient(135deg,#282510,#171913 65%); border-top:2px solid #f5c643; }
.qs-preview header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.qs-preview header h2 { border:0; margin:0 0 10px; padding:0; color:#fff0aa; }
.qs-preview header > span { border:1px solid #8e7830; border-radius:5px; padding:3px 10px; font-size:12px; }
.qs-big { font-size:clamp(24px,2.05vw,32px); font-weight:750; line-height:1.35; margin:8px 0 18px; }
.qs-preview .qs-big { margin-bottom:12px; }
.qs-preview,.qs-notes { padding-top:16px; padding-bottom:16px; }
.qs-kicker { color:#f5c643; font-size:14px; margin:0; }
#qsPreview > p:not(.qs-big) { margin:10px 0; line-height:1.5; }
.qs-preview-rules { border:1px solid #3c4031; border-radius:6px; margin:16px 0; }
.qs-preview-rules p { margin:0; padding:12px 16px; font-size:18px; line-height:1.4; font-weight:650; }
.qs-preview-rules p + p { border-top:1px solid #3c4031; }
#qmtSettingsPage .gain { color:#f5c643; } #qmtSettingsPage .loss { color:#04cb7c; }
.qs-sell-all { text-align:center; margin:12px 0; }
.qs-sell-all small { display:flex; gap:14px; align-items:center; color:#b8bbae; }
.qs-sell-all small::before,.qs-sell-all small::after { content:""; flex:1; height:1px; background:#555848; }
.qs-sell-all p { font-size:17px; font-weight:600; margin:14px 0; }
.qs-sell-all strong { color:#f5c643; }
.qs-notes h2 { margin-bottom:10px; padding-bottom:10px; font-size:20px; }
.qs-notes .qs-hint { margin-top:6px; line-height:1.5; }
.qs-notes ol { padding-left:22px; margin:0; line-height:1.65; }
.qs-save-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:12px; padding:14px 28px; background:#111414; border:1px solid var(--qs-line); border-radius:9px; }
.qs-save-bar > div:last-child { display:flex; gap:16px; }
.qs-save-bar button { min-width:136px; min-height:46px; }
#qsSaveHint { color:#aeb5ac; } #qsError { color:#ff9494; margin:6px 0 0; max-width:650px; }
.qs-official-intro { padding:10px 0 16px; }
.qs-official-intro h3 { font-size:23px; margin:10px 0; }
.qs-official-intro p { color:#bcc1b8; line-height:1.8; }
.qs-official-cards { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:22px; }
.qs-official-cards article { display:flex; gap:14px; padding:18px 14px; border:1px solid #343b31; border-radius:7px; background:#181c17; }
.qs-symbol { font-size:34px; }
.qs-official-cards h3 { margin:0; font-size:19px; }
.qs-official-cards p { font-size:13px; color:#adb6a9; margin:6px 0 0; }
.qs-details { border:1px solid #4e4c34; border-radius:7px; }
.qs-details summary { display:flex; justify-content:space-between; padding:14px 16px; cursor:pointer; color:#f5c643; font-weight:650; }
.qs-details summary span { font-size:13px; color:#c7c1a1; }
.qs-details > div { padding:0 20px 20px; font-size:14px; color:#c8cec3; }
.qs-details h4 { color:#eeeede; margin:20px 0 8px; }
.qs-details p,.qs-details li { line-height:1.9; }
.setup-access-btn { min-height:44px; padding:9px 24px; background:#202520; color:#fff; border:1px solid #202520; border-radius:6px; font-weight:750; }
.setup-access-btn:hover { background:#343f33; }
.setup-toggle-btn { min-height:44px; padding:9px 20px; border:1px solid #f5c643; background:#342e13; color:#ffd858; border-radius:6px; font-weight:700; }
.setup-toggle-btn:hover { background:#4b4019; }
.setup-head-actions { gap:22px; }
.setup-card.steps-collapsed > :not(.setup-head) { display:none; }
.setup-card.steps-collapsed .setup-head { margin-bottom:0; }
.detail-process-toggle { padding:6px 12px; border:1px solid #666248; border-radius:5px; color:#dfd197; background:#242418; }
.execution-timeline strong { margin-right:8px; }
@media (max-width:1200px) { .qs-head { gap:26px; } .qs-card { padding:18px; } .qs-field-line { grid-template-columns:86px minmax(0,1fr); gap:12px; } .qs-mode-options { gap:10px; } .qs-mode-options button { gap:10px; padding:10px; } .qs-mode-options strong { font-size:15px; } .qs-layout { grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); } }
