:root { --text-muted:var(--muted); --bg-elevated:var(--surface-raised); }
/* V2.2 additions use the inherited design tokens, not a replacement theme. */
.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;margin-bottom:4px}.field-label-row label{margin:0!important;flex:1;min-width:0}.info-anchor{display:inline-flex;vertical-align:middle;flex-shrink:0;margin-inline-start:5px}.info-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--text-muted);border:0;border-radius:7px;width:28px;height:28px;cursor:pointer;transition:background .15s}.info-button:hover,.info-button:focus-visible{color:var(--text);background:var(--bg-elevated);outline:2px solid var(--accent);outline-offset:1px}.info-popover{z-index:2147483000;padding:16px;background:var(--surface-raised,#233143);color:var(--text,#f1f5fa);border:1px solid var(--border,#40516b);border-radius:12px;box-shadow:0 12px 32px #0005;font-size:13px;line-height:1.6;max-height:240px;overflow:auto;overflow-wrap:anywhere;text-align:start}.info-popover strong{display:block;margin-bottom:5px}.info-popover p{margin:0;color:inherit}.toggle-with-info{display:flex;align-items:flex-start;gap:4px}.toggle-with-info>.toggle-row{flex:1;min-width:0}.toggle-with-info>.info-anchor{margin-top:12px}.kpi-with-info{position:relative;min-width:0}.kpi-with-info>.dash-kpi{width:100%;height:100%}.kpi-with-info>.info-anchor{position:absolute;inset-inline-end:12px;top:10px;z-index:2}.kpi-with-info .kpi-top>.icon{visibility:hidden}.dash-card-head h2 .info-anchor,.card h2 .info-anchor{position:relative;top:2px}h2 .info-button{height:25px;width:25px}
.market-bar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;background:var(--card-bg,var(--surface,#151e2a));border:1px solid var(--border);border-radius:14px;padding:14px 18px;margin:20px 0 16px}.market-identity{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.market-identity>div{display:flex;flex-direction:column;min-width:0;gap:3px}.market-identity strong{font-size:14px}.market-identity span{font-size:11px;color:var(--text-muted)}.market-globe{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:var(--accent-soft,#f6a17c18);color:var(--accent)!important}.market-controls{display:flex;align-items:end;gap:12px;max-width:100%;flex-wrap:wrap}.market-controls>.field{width:132px;margin:0;min-width:0}.market-controls .field:nth-child(2){width:160px}.market-controls .field small{display:none}.market-controls .field select{width:100%;text-overflow:ellipsis}.market-manage{height:42px;margin-bottom:0}.market-controls .field-label-row{margin-bottom:0;font-size:11px}.markets-modal{max-width:860px!important}.market-profile-form{display:grid;gap:16px;padding-top:16px}.reference-fees{display:flex;flex-wrap:wrap;gap:10px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:16px;background:var(--bg)}.reference-fees>span{color:var(--text-muted);font-size:12px}.reference-fees strong{font-size:18px}.reference-fees small{width:100%;color:var(--text-muted)}.reference-fees a{font-size:12px;color:var(--accent)}.rate-book{padding-top:12px}.rate-book-intro{display:flex;align-items:center;gap:18px;margin-bottom:16px}.rate-book-intro p{font-size:13px;color:var(--text-muted);line-height:1.6}.rate-entry{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.rate-entry>.btn{justify-self:start}.rate-list{display:grid;gap:10px}.rate-item{display:flex;align-items:center;justify-content:space-between;padding:14px;border:1px solid var(--border);border-radius:10px;gap:12px}.rate-item>div{display:flex;flex-direction:column;gap:5px;min-width:0}.rate-item strong{font-size:14px;overflow-wrap:anywhere}.rate-item small{color:var(--text-muted);font-size:12px;overflow-wrap:anywhere}.currency-breakdown{padding:22px;margin:16px 0}.currency-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.currency-group{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:12px;padding:14px;flex-wrap:wrap}.currency-group>div{display:flex;flex-direction:column;gap:4px}.currency-group small,.currency-group>span:last-child{color:var(--text-muted);font-size:12px}.currency-group .currency-code{font-size:14px;padding:8px}.currency-group strong{font-size:18px}.lab-market-note{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:12px;padding:12px;border:1px solid var(--border);border-radius:12px;font-size:12px;color:var(--text-muted)}.lab-market-note>.btn{margin-inline-start:auto}.unavailable-result{padding:24px;display:grid;gap:18px}.unavailable-result p{line-height:1.65;font-size:14px;color:var(--text-muted)}
.product-workbench{padding:24px;margin:0 0 22px;border:1px solid var(--accent)!important;border-radius:16px;scroll-margin-top:90px}.workbench-header{display:flex;justify-content:space-between;gap:16px;margin-bottom:18px}.workbench-header h2{font-size:22px;margin:6px 0}.workbench-header p{font-size:13px;color:var(--text-muted);line-height:1.6}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.editor-main{min-width:0}.editor-pane{display:grid;gap:16px;padding:8px 0 18px}.editor-pane .field{min-width:0}.editor-pane .form-grid{margin:0}.editor-pane .segments{width:fit-content;max-width:100%}.editor-preview{border-radius:14px;background:var(--bg,#0e141e);border:1px solid var(--border);padding:18px;position:sticky;top:100px;min-width:0}.editor-preview-head{display:flex;justify-content:space-between;align-items:center}.editor-product-name{font-weight:600;margin:20px 0 15px;overflow-wrap:anywhere;font-size:15px}.preview-native-label{font-size:12px;color:var(--text-muted)}.preview-native-price{display:block;font-size:30px;margin:5px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.editor-preview .money-row{font-size:12px}.editor-preview .money-row strong{font-size:16px}.editor-preview .notice{padding:12px;font-size:12px}.editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid var(--border);padding-top:18px;margin-top:12px}.editor-actions>span{display:flex;align-items:center;gap:7px;color:var(--text-muted);font-size:12px;margin-inline-end:auto}.editor-modal{width:min(1100px,calc(100vw - 32px))!important;max-width:1100px!important}.editor-modal .product-workbench{border:0!important;border-radius:0;padding:0;margin:0}.editor-modal .editor-preview{top:0}.editor-modal .modal-body{padding:24px}.editor-modal .editor-actions{position:sticky;bottom:-24px;background:var(--surface,#151e2a);padding:18px 0 16px;z-index:3}.editor-pane input,.editor-pane textarea{max-width:100%}.editor-main .tabs{overflow:auto;max-width:100%;flex-wrap:wrap}.editor-main .tabs button{white-space:normal}.editor-modal .field small{line-height:1.6}.info-popover:dir(rtl){text-align:right}
[dir="rtl"] .sidebar{left:auto;right:0;border-left:1px solid var(--border);border-right:0}[dir="rtl"] .app-main{margin-left:0;margin-right:224px}[dir="rtl"] .modal{direction:rtl}[dir="rtl"] .modal-heading .icon-btn{margin-left:0;margin-right:auto}[dir="rtl"] .input-wrap input{text-align:right}[dir="rtl"] .chart-labels,[dir="rtl"] svg[role="img"],[dir="rtl"] .signed-bars{direction:ltr}[dir="rtl"] .select-wrap select{padding-left:34px;padding-right:12px}[dir="rtl"] .select-wrap>.icon{right:auto;left:12px}[dir="rtl"] .kpi-with-info .dash-kpi{text-align:right}[dir="rtl"] .product-table th,[dir="rtl"] .data-table th{text-align:right}[dir="rtl"] .text-button .icon,[dir="rtl"] .arrow-link>.icon{transform:scaleX(-1)}
@media(min-width:1100px) and (max-width:1400px){.market-bar{align-items:stretch}.market-controls{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr auto}.market-controls>.field,.market-controls .field:nth-child(2){width:auto}.editor-layout{grid-template-columns:minmax(0,1fr) 250px}.dash-head-actions{flex-wrap:wrap}}
@media(max-width:1099px){.market-bar{gap:12px}.market-controls{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr}.market-controls>.field,.market-controls .field:nth-child(2){width:auto}.market-manage{grid-column:1/-1;justify-self:start}.editor-layout{grid-template-columns:minmax(0,1fr)}.editor-preview{position:static}.editor-actions{flex-wrap:wrap}[dir="rtl"] .app-main{margin-right:76px}.editor-preview .money-row{font-size:14px}}
@media(max-width:639px){.info-button{width:44px;height:44px}.field-label-row{min-height:44px}.kpi-with-info>.info-anchor{top:3px;inset-inline-end:3px}.kpi-with-info .kpi-top>span{padding-inline-end:24px}.market-bar{padding:12px;gap:10px;margin-top:16px}.market-identity{width:100%}.market-controls{grid-template-columns:1fr 1fr;gap:8px}.market-controls>.field:first-child{grid-column:1/-1}.market-controls .field-label-row{font-size:12px}.market-controls .field select{font-size:16px}.market-manage{width:100%;font-size:13px}.market-globe{display:none}.market-identity span{font-size:12px}.product-workbench{padding:16px}.workbench-header h2{font-size:20px}.editor-layout{gap:14px}.editor-pane .form-grid{grid-template-columns:1fr}.editor-actions{gap:8px;position:sticky;bottom:76px;background:var(--surface,#151e2a);padding:12px 0 10px;z-index:3}.editor-actions>span{width:100%;font-size:11px}.editor-actions .btn{flex:1;min-height:44px;font-size:12px}.editor-modal{width:100vw!important;max-width:100vw!important;height:100dvh;max-height:100dvh;margin:0!important;border-radius:0!important}.editor-modal .modal-body{padding:16px}.editor-modal .editor-actions{bottom:-16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.editor-modal .editor-preview{padding:16px}.editor-main .tabs button{min-height:48px;padding:10px}.rate-entry{grid-template-columns:1fr}.rate-book-intro{align-items:flex-start}.markets-modal{max-width:100vw!important}.rate-item strong{font-size:13px}.currency-breakdown{padding:16px}.currency-groups{grid-template-columns:1fr}.lab-market-note .btn{margin-inline-start:0;width:100%}.lab-market-note span{width:100%}[dir="rtl"] .app-main{margin-right:0}.field-label-row .info-anchor{margin-inline-start:0}.info-popover{font-size:14px}.market-controls .field small{display:none}.dash-head-actions>.btn{min-height:44px}}
@media(prefers-reduced-motion:reduce){.info-button{transition:none}}

/* Keep mobile first view about results rather than expanded global filters. */
.market-mobile-actions{display:none}
@media(max-width:639px){.market-mobile-actions{display:flex;gap:8px;width:100%;align-items:center}.market-mobile-actions>.btn{flex:1;min-width:0;font-size:12px;min-height:44px}.market-mobile-actions>.icon-button{flex-shrink:0}.market-bar:not(.market-expanded)>.market-controls{display:none}.market-expanded>.market-controls{display:grid}.market-controls>.market-manage{display:none}}
