/* AN1's compact form hierarchy, in Musepace's existing visual language. */
.compact-studio{max-width:1100px;margin:0 auto 64px;color:var(--muse-ink)}
.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:36px 0 24px}
.studio-heading h1{font-size:40px;font-weight:550;letter-spacing:-1.8px;line-height:1.1;margin:13px 0 10px}
.studio-heading p{font-size:13px;color:#adb0b9;line-height:1.6;margin:0}
.compact-studio fieldset{border:0;padding:0;min-width:0;margin:0}
.compact-studio .studio-mode{display:flex;padding:4px;border:1px solid #41454d;background:#191e20;border-radius:9px;flex-shrink:0}
.studio-mode .studio-choice{border:0;min-height:38px;padding:8px 19px;background:none}
.studio-mode .studio-choice:has(input:checked){background:#e6dff1;color:#26222d}
.studio-notice{display:flex;align-items:center;gap:12px;padding:12px 15px;margin:0 0 20px;border:1px solid #48434f;border-radius:9px;background:#29272e}
.studio-notice p{margin:0;font-size:12px;line-height:1.5;color:#b6afc2;flex:1}
.studio-notice strong{font-weight:550;color:#e6ddef}
.studio-notice button{border:0;background:none;color:#d6c9e8;font-size:11px;white-space:nowrap;padding:7px 0}
.studio-workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}
.studio-workspace form{display:grid;gap:14px;min-width:0}
.studio-panel{padding:21px 22px;border:1px solid #3c4248;background:#202526;border-radius:12px;scroll-margin-top:20px;min-width:0}
.studio-section-title{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.studio-section-title>span{font-size:10px;color:#b3a9c3;border:1px solid #514957;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;flex-shrink:0}
.studio-section-title h2{font-size:18px;font-weight:540;letter-spacing:-.5px;margin:0}
.compact-studio .studio-group{margin-top:15px}
.studio-group legend{font-size:12px;color:#c2bdca;padding:0;margin-bottom:8px}
.studio-choices{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.studio-choice{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border:1px solid #454750;border-radius:7px;padding:8px 12px;background:#1b2021;color:#bfc0c9;font-size:12px;line-height:1.25;cursor:pointer;min-width:0;overflow-wrap:anywhere}
.studio-choice input{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:pointer}
.studio-choice:has(input:checked){border-color:#b6a5cc;background:#34303e;color:#f1e9fc;box-shadow:inset 0 0 0 1px #b6a5cc12}
.studio-choice:hover{border-color:#9688a4}
.studio-choice:has(input:focus-visible){outline:2px solid #d6c7e9;outline-offset:3px}
.studio-choice .asset-icon{width:23px;height:23px}
.studio-networks .studio-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.studio-networks .studio-choice{justify-content:flex-start;min-height:48px;padding:10px;font-size:11px;gap:7px}
.studio-venues .studio-choice{min-width:134px;justify-content:flex-start}
.studio-tax-row{display:flex;gap:24px;flex-wrap:wrap}
.studio-tax .studio-choices{gap:5px}.studio-tax .studio-choice{padding:6px 11px;min-height:32px;font-size:11px}
.studio-recipients .studio-choices{gap:6px}.studio-recipients .studio-choice{font-size:11px;min-height:34px;padding:7px 10px}
.studio-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.compact-studio .field{font-size:12px;font-weight:450;margin-top:15px;gap:7px;position:relative;min-width:0;line-height:1.4}
.compact-studio .field input,.compact-studio .field select,.compact-studio .field textarea{font-size:13px;padding:10px 12px;border-color:#494650;border-radius:7px;min-height:40px}
.compact-studio .field textarea{min-height:68px}
.compact-studio .field .studio-optional{position:absolute;right:0;top:0;font-size:10px;color:#9d95a8}
.studio-section-title+.studio-two .field{margin-top:0}
.studio-help{font-size:11px;color:#a59fad;line-height:1.6;margin:10px 0 0}
.studio-section-note{font-size:12px;color:#b5afbf;line-height:1.6;margin:0 0 10px}
.studio-disclosure{border-top:1px solid #3d4247;padding-top:11px;margin-top:14px;font-size:11px;color:#bdb5ca}
.studio-disclosure summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;min-height:24px;list-style:none;color:#d3cbdc;font-size:11px}
.studio-disclosure summary::-webkit-details-marker{display:none}.studio-disclosure summary>span{font-size:10px;color:#a49cac;display:flex;gap:12px;align-items:center}
.studio-disclosure summary b{font-size:15px;font-weight:400;display:inline-block}.studio-disclosure[open]>summary b{transform:rotate(45deg)}
.studio-disclosure summary:focus-visible{outline:2px solid #c9b9e0;outline-offset:4px;border-radius:3px}
.studio-assets{border:1px solid #44414c;border-radius:8px;padding:7px 11px;margin-top:9px;background:#1c2123}
.studio-assets .studio-search{margin:10px 0}.studio-asset-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:212px;overflow:auto;overscroll-behavior:contain;padding:4px}
.studio-asset-results>div{min-width:0}.studio-asset-results>div[hidden]{display:none}
.studio-asset-results .studio-choice{width:100%;font-size:11px;min-height:36px;justify-content:flex-start}
.studio-asset-results small{display:block;font-size:9px;color:#9e96a9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px}
.studio-pair-info{border:0;padding-top:0;margin-top:8px}.studio-pair-info>summary{font-size:10px;color:#aca2b9;justify-content:flex-start;gap:7px}
.studio-pair-info .pair-detail{margin-top:10px}.studio-pair-info .pair-detail code{word-break:break-all}
.studio-holder{border:1px solid #494451;border-radius:7px;padding:12px;font-size:12px;margin:15px 0 0}.studio-holder span{display:block;color:#aaa0b7;font-size:11px;margin-top:5px}
.studio-upload{display:flex;align-items:center;gap:13px;position:relative;border:1px dashed #5a5266;border-radius:8px;padding:11px;margin-top:15px;cursor:pointer;background:#1b2022}
.studio-upload>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.studio-upload:focus-within{outline:2px solid #c3addf;outline-offset:3px}.studio-upload:hover{border-color:#b6a5cc}
.studio-upload-thumb{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:8px;background:#33303a;color:#ddd1ee;font-size:24px;overflow:hidden}.studio-upload-thumb img{width:100%;height:100%;object-fit:cover}
.studio-upload strong{font-size:12px;font-weight:500;display:block}.studio-upload small{font-size:10px;color:#a9a0b6;display:block;margin-top:6px}.studio-upload-action{margin-left:auto;font-size:11px;color:#c4b9d4;white-space:nowrap}
.studio-buy-hint{align-self:end;margin:0 0 2px;font-size:11px;line-height:1.6;color:#a69daf}
.studio-cost{display:flex;justify-content:space-between;gap:10px;font-size:11px;padding:13px 0;border-top:1px solid #3c4247;margin-top:17px;color:#aaa3b5}.studio-cost strong{font-weight:450;color:#d8cfe4}
.studio-ack{display:flex;gap:9px;align-items:flex-start;font-size:11px;color:#bcb2c8;line-height:1.6;margin:7px 0 15px;cursor:pointer}.studio-ack input{accent-color:#c6b5db;flex-shrink:0;margin:3px 0;width:15px;height:15px}
.compact-studio #save-plan{border-radius:8px;min-height:44px;padding:11px 16px;font-size:12px;justify-content:space-between}.compact-studio #workflow-status:empty{display:none}
.studio-aside{position:sticky;top:20px;min-width:0;max-height:calc(100dvh - 40px);overflow-y:auto;scrollbar-width:thin;padding:1px 3px 6px 1px}
.studio-summary{border:1px solid #514959;border-radius:12px;background:linear-gradient(135deg,#2f2c38,#24272c);overflow:hidden}
.studio-summary-title{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid #49434e}.studio-summary-title h2{font-size:13px;letter-spacing:-.2px;margin:0;font-weight:550}.studio-summary-title>span{font-size:9px;border:1px solid #63576f;padding:4px 7px;border-radius:5px;color:#d3c4e1}
.studio-token{display:flex;align-items:center;gap:11px;padding:18px 17px 13px;min-width:0}.studio-token>img{width:54px;height:60px;object-fit:contain;border-radius:8px;flex-shrink:0}.studio-token>div{min-width:0}.studio-token h3{font-size:17px;font-weight:550;letter-spacing:-.5px;margin:0 0 6px;overflow-wrap:anywhere}.studio-token p{font-size:11px;color:#b3a5c2;margin:0;overflow-wrap:anywhere}
.studio-summary dl{padding:0 17px;margin:0}.studio-summary dl>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #47424d;font-size:11px;line-height:1.4}.studio-summary dt{color:#b1a9bb;flex-shrink:0}.studio-summary dd{color:#e5ddec;text-align:right;overflow-wrap:anywhere;min-width:0;margin:0}
.studio-summary-note{font-size:10px;line-height:1.7;color:#b4a8c0;padding:12px 17px 16px;margin:0}.studio-summary-note strong{font-weight:500;color:#d4c6df}
.studio-nav{margin-top:22px;padding:0 8px}.studio-nav .eyebrow{font-size:9px;margin-bottom:10px}.studio-nav a,.studio-mobile-nav a{display:flex;align-items:center;gap:11px;padding:11px 0;font-size:12px;color:#c2b9ce}.studio-nav a>span,.studio-mobile-nav a>span{font-size:10px;color:#94879f}.studio-nav a>b,.studio-mobile-nav a>b{font-weight:400;margin-left:auto;color:#94879f}.studio-nav a:hover{color:#fff}.studio-nav a:hover>span{color:#e1cfef}
.studio-setup{margin:16px 8px 0;padding-top:15px;scroll-margin-top:20px}.studio-setup ul{list-style:none;padding:0;font-size:11px;color:#b2a9be;line-height:2}.studio-setup .text-link{font-size:11px}
.studio-aside .saved-plans-button{padding:13px 8px;font-size:11px;margin-top:4px}.studio-aside .saved-review{padding:17px;border-radius:10px;margin-top:12px}.studio-aside .saved-review h3{font-size:16px}.studio-aside .saved-review details{font-size:11px;margin-bottom:14px}.studio-aside .saved-review summary{cursor:pointer;color:#cbbddb}
.studio-mobile-nav{display:none}.studio-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:540px){.compact-studio .studio-mobile-nav{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;overflow:visible}.compact-studio .studio-mobile-nav a{white-space:normal}}
@media(max-width:1050px){.studio-workspace{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.studio-panel{padding:20px 18px}.studio-networks .studio-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-networks .studio-choice{min-height:43px}.studio-tax-row{gap:6px 18px}.studio-heading h1{font-size:36px}}
@media(max-width:800px){.studio-workspace{grid-template-columns:minmax(0,1fr)}.studio-aside{position:static;max-height:none;overflow:visible;padding:0}.studio-aside .studio-nav{display:none}.studio-summary{margin-top:4px}.studio-token{padding:14px 17px}.studio-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.studio-mobile-nav{display:flex;overflow:auto;gap:16px;border-bottom:1px solid #3c4248;margin-bottom:17px;scrollbar-width:thin}.studio-mobile-nav a{white-space:nowrap;gap:7px;font-size:11px;min-height:44px}.studio-mobile-nav a>b{display:none}.studio-networks .studio-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-heading{padding-top:28px}.studio-panel{scroll-margin-top:16px}.studio-choice{min-height:40px}.studio-tax .studio-choice,.studio-recipients .studio-choice{min-height:38px}.studio-disclosure summary{min-height:32px}}
@media(max-width:540px){.studio-heading{align-items:flex-start;gap:17px;flex-wrap:wrap;padding:27px 0 19px}.studio-heading h1{font-size:34px}.studio-heading .eyebrow{font-size:9px}.studio-mode .studio-choice{min-height:38px;padding:8px 19px}.studio-heading p{font-size:12px}.studio-notice{flex-wrap:wrap;gap:10px;padding:12px}.studio-notice p{font-size:11px}.studio-notice button{margin-left:18px;padding:0;min-height:25px}.studio-panel{padding:18px 15px}.studio-section-title h2{font-size:17px}.studio-networks .studio-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-networks .studio-choice{min-height:44px;font-size:12px}.studio-section-title{margin-bottom:16px}.studio-choice,.studio-recipients .studio-choice,.studio-tax .studio-choice{min-height:40px}.studio-recipients .studio-choices{gap:6px}.studio-two{gap:10px}.studio-two .field{min-width:0}.compact-studio .field input,.compact-studio .field select,.compact-studio .field textarea{font-size:16px;padding:10px;min-height:44px}.studio-upload-action{display:none}.studio-upload small{font-size:9px}.studio-asset-results{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-buy-hint{font-size:10px}.studio-summary dl{display:block}.studio-cost{font-size:10px}.studio-help{font-size:10px}.studio-notice .notice-dot{width:6px;height:6px}.studio-ack{min-height:44px}}
/* Custom rates use the same canonical basis-point values as preset choices. */
.compact-studio .studio-custom-tax{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted,#b9b4c4)}
.compact-studio .studio-custom-tax input{width:90px;min-height:36px;padding:8px 10px;background:#181d1e;border:1px solid #7e7196;border-radius:7px;color:#f4efff;font:inherit;font-size:14px}
.compact-studio .studio-custom-tax input:focus{outline:2px solid #c6b5e4;outline-offset:2px}
.compact-studio .studio-custom-tax input[aria-invalid="true"]{border-color:#f3a49b}
.compact-studio .studio-tax-error{font-size:12px;color:#f3b1a5;line-height:1.5;margin:6px 0}
.compact-studio .studio-tax-error:empty{display:none}
.compact-studio #tax-rules{max-width:75ch;line-height:1.65;margin-top:8px}
.compact-studio #tax-rules a{text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
/* Site-only associations are visually separate from real trading pairs. */
.token-association{display:grid;gap:.3rem;margin:.8rem 0;padding:.75rem;border:1px solid #55505f;border-radius:.5rem;overflow-wrap:anywhere}
.token-association small{font-size:.8rem;color:#c1bacf}
.token-association strong{font-size:.95rem}
.token-association.is-profit{border-color:#2f7d5b}.token-association.is-loss{border-color:#8a3b3b}.token-association.is-liquidated{border-color:#8a3b3b;background:rgba(138,59,59,.12)}
.perps-position{display:grid;grid-template-columns:1fr 1fr;gap:.25rem .75rem;margin:.2rem 0 0;font-size:.78rem}
.perps-position div{display:flex;flex-direction:column;min-width:0}.perps-position dt{color:#a59fb3}.perps-position dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.perps-ended{margin:.2rem 0;font-size:.85rem}
.creator-wallet-row{display:flex;align-items:flex-end;gap:.6rem}.creator-wallet-row .field{flex:1;margin:0}.creator-wallet-row .button{white-space:nowrap}
.yours-body{display:grid;gap:1.2rem;margin:0 0 4rem}.yours-page{padding-top:2.5rem}.yours-intro{margin:.2rem 0 1rem}.yours-body .empty .button+.button{margin-left:.5rem}
.yours-body .yours-token{max-width:760px;width:100%;margin:0 auto}.yours-token{display:grid;gap:.9rem}
.yours-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.yours-head h2{margin:0}.yours-head p{margin:.2rem 0 0;color:#c1bacf}
.yours-stats{grid-template-columns:repeat(4,1fr)}.yours-chart{position:relative;border-radius:.5rem;background:rgba(255,255,255,.03);cursor:crosshair}
.yours-cursor{position:absolute;right:.4rem;padding:.1rem .35rem;border-radius:.3rem;background:#a78bfa;color:#111;font-size:.75rem;pointer-events:none}
.yours-group{border:1px solid #3d3947;border-radius:.5rem;padding:.7rem .8rem;display:grid;gap:.6rem}.yours-group legend{padding:0 .3rem;font-size:.85rem;color:#c1bacf}
.yours-pct{display:inline-flex;align-items:center;gap:.3rem}.yours-inline{display:inline-flex;align-items:center;gap:.4rem;margin:0}.yours-inline input{width:8rem}
.yours-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}.yours-muse-text{width:100%;font:12px/1.4 ui-monospace,monospace;background:#111;color:#ddd;border:1px solid #444;border-radius:.4rem;padding:.6rem}
@media(max-width:540px){.yours-stats{grid-template-columns:1fr 1fr}}.perps-manage-state{color:#e5c07b}
.perps-chart{min-height:120px;border-radius:.4rem;background:rgba(255,255,255,.03)}.perps-chart-svg{display:block;width:100%;height:auto}
.saved-muse-request{border-top:1px solid #55505f;margin-top:1rem;padding-top:1rem;overflow-wrap:anywhere}
.saved-muse-request input{width:100%;min-width:0}
/* Search stays within the existing panel; venue-qualified selections never change with filters. */
.perps-market-picker{border:1px solid #44414c;border-radius:8px;padding:0 12px 12px;background:#1c2123}
.compact-studio .perps-market-picker .field{font-size:14px}
.compact-studio .perps-market-picker select,.compact-studio .perps-market-picker input{font-size:14px;width:100%;min-width:0}
.compact-studio #perps-market{height:auto;min-height:44px;padding:10px 12px;background:#191e20;color:#e5ddec;resize:none}
.compact-studio #perps-selection{white-space:pre-line}
.compact-studio [name="perpLeverage"][aria-invalid="true"]{border-color:#f3a49b}
.compact-studio .text-link{background:none;border:0;color:#c4b9d4;font:inherit;font-size:12px;text-align:left;padding:6px 0;min-height:32px}
.compact-studio #perps-market option{padding:9px 8px;min-height:36px}
.compact-studio #perps-market option:checked{background:#51465f;color:#fff}
.compact-studio #perps-market optgroup{color:#c1b4d2;font-style:normal}
.perps-market-picker #perps-result-count{font-size:12px}
@media(max-width:540px){.perps-market-picker .studio-two{grid-template-columns:1fr}.compact-studio .perps-market-picker input,.compact-studio .perps-market-picker select{font-size:16px}}
