/* Shared controls. Approved pricing and profile-menu controls retain their component rules. */
#root .app,#root .workspace,#root .app main,#root .panel,#root .auth-page {min-width: 0;}
#root .app :is(.filters,.form-actions,.panel-actions,.v5-report-controls,.v6-history-filters,.v733-ledger-controls) {display: flex; align-items: flex-end; gap: clamp(10px,1.2vw,16px); flex-wrap: wrap; min-width: 0;}
#root .app :is(.filters,.form-actions,.panel-actions,.v6-history-filters)>:is(button,.btn,input[type=submit]):not(:where(.pp-pricing *, .profile-popover *)) {width: auto; max-width: 100%; flex: 0 0 auto; min-height: 44px;}
#root .app :is(.filters,.v6-history-filters) label {flex: 1 1 180px; min-width: 0; max-width: 100%;}
#root .app :is(.filters,.v6-history-filters) :is(input,select):not(:where(.pp-pricing *, .profile-popover *)) {min-height: 44px; width: 100%; max-width: 100%; box-sizing: border-box;}
#root .app :is(.form-grid,.two-col,.v6-ticket-list,.v6-position-list,.v6-balance-grid)>* {min-width: 0;}
#root .app .form-grid {gap: clamp(12px,2vw,20px);}
#root .app :is(.btn,button,input[type=button],input[type=submit]):not(:where(.pp-pricing *, .profile-popover *)) {touch-action: manipulation; min-height: 44px;}
#root .app :is(.btn,button):focus-visible:not(:where(.pp-pricing *, .profile-popover *)) {outline: 3px solid var(--accent,#56bdaa); outline-offset: 3px;}
#root .app :is(input,select,textarea):not(:where(.pp-pricing *, .profile-popover *)) {font: inherit; max-width: 100%; min-width: 0; color: var(--text,#f4f7fa); background: var(--input,#171b2d);}
#root .app :is(input,select,textarea):focus-visible:not(:where(.pp-pricing *, .profile-popover *)) {outline: 2px solid var(--accent,#56bdaa); outline-offset: 2px;}
#root .app :is(.table-scroll,.ops-table) {max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;}
#root .app :is(.panel,.v6-ticket-row,.v6-message) {overflow-wrap: anywhere;}
#root .app .v6-ticket-row {padding: clamp(14px,2vw,24px); gap: 12px;}
#root .app .v6-ticket-row>div:first-child {min-width: 0; flex: 1;}
#root .app .v6-ticket-row>div:last-child {max-width: 45%; flex-wrap: wrap; justify-content: flex-end;}
#root .app :is(.error,.form-error,[role=alert]) {line-height: 1.9; overflow-wrap: anywhere;}
#root .app :is(.v6-ticket-filters,.v5-report-pagination) {gap: 10px; flex-wrap: wrap;}
@media (max-width:760px) {#root .app :is(.v6-ticket-row,.form-actions,.panel-actions) {align-items: stretch;}#root .app .v6-ticket-row {flex-wrap: wrap;}#root .app .v6-ticket-row>div:last-child {max-width: 100%; width: 100%; justify-content: flex-start;}#root .app :is(.filters,.v6-history-filters) label {flex-basis: 155px;}}
@media (max-width:430px) {#root .app :is(.form-grid,.two-col) {grid-template-columns: minmax(0,1fr);}#root .app :is(.filters,.v6-history-filters) {align-items: stretch;}#root .app :is(.filters,.v6-history-filters) label {flex: 1 1 100%;}#root .app :is(.filters,.v6-history-filters)>:is(button,.btn,input[type=submit]):not(:where(.pp-pricing *, .profile-popover *)) {flex: 1 1 auto; min-width: 105px;}#root .app .v6-ticket-row h3 {font-size: 15px;}#root .app .v6-ticket-filters button:not(:where(.pp-pricing *, .profile-popover *)) {flex: 1 1 auto;}}
@media (prefers-reduced-motion:reduce) {#root .app :is(.btn,button,.panel,.v6-ticket-row):not(:where(.pp-pricing *, .profile-popover *)) {transition: none !important;}}
#root .app {--p-ui-gap: clamp(10px,1.2vw,16px); --p-ui-radius: 12px; --p-ui-focus: #b8a0ff; --p-ui-line: rgba(152,166,205,.32); --p-ui-control-bg: var(--input,#171b2d);}
#root .app .workspace :is(.panel,.two-col,.form-grid,.stack,.table-scroll,.pagination,.filters) {min-width: 0;}
#root .app .workspace :is(form:not(.v733-paper-order),.panel-actions,.form-actions,.row) {column-gap: var(--p-ui-gap);}
#root .app .workspace :is(label,.field) {min-width: 0; overflow-wrap: anywhere;}
#root .app .workspace :is(input:not([type=checkbox]):not([type=radio]),select,textarea):not(:where(.pp-pricing *, .profile-popover *)) {box-sizing: border-box; min-width: 0; max-width: 100%; border-radius: var(--p-ui-radius); font: inherit; background: var(--p-ui-control-bg); color: var(--text,#f0f4fa); border: 1px solid var(--p-ui-line);}
#root .app .workspace :is(input:not([type=checkbox]):not([type=radio]),select):not(:where(.pp-pricing *, .profile-popover *)) {min-height: 44px;}
#root .app .workspace textarea:not(:where(.pp-pricing *, .profile-popover *)) {min-height: 95px; resize: vertical; line-height: 1.85;}
#root .app .workspace :is(.btn,button,input[type=button],input[type=submit]):not(.full):not(:where(.pp-pricing *, .profile-popover *)) {box-sizing: border-box; min-height: 44px; max-width: 100%; border-radius: var(--p-ui-radius); touch-action: manipulation; white-space: normal;}
#root .app .workspace :is(.form-actions,.panel-actions,.pagination,.v6-connection-actions) {display: flex; align-items: center; flex-wrap: wrap; gap: var(--p-ui-gap);}
#root .app .workspace :is(.form-actions,.panel-actions,.pagination)>:is(.btn,button):not(:where(.pp-pricing *, .profile-popover *)) {flex: 0 1 auto; width: auto;}
#root .app .workspace :is(.filters,.v6-history-filters) {min-width: 0; gap: var(--p-ui-gap);}
#root .app .workspace :is(.filters,.v6-history-filters) :is(input,select):not(:where(.pp-pricing *, .profile-popover *)) {max-width: 100%;}
#root .app .workspace :is(.panel,.v6-ticket-row,.v733-wallet-balances>div) {overflow-wrap: anywhere;}
#root .app .workspace :is(.table-scroll,.ops-table) {overflow-x: auto; overscroll-behavior-inline: contain;}
#root .app .workspace :is(a,button,input,select,textarea,summary):focus-visible:not(:where(.pp-pricing *, .profile-popover *)) {outline: 3px solid var(--p-ui-focus); outline-offset: 3px;}
#root .app .workspace :is(button,input,select,textarea):disabled:not(:where(.pp-pricing *, .profile-popover *)) {opacity: .62; cursor: not-allowed;}
@media (max-width:760px) {#root .app .workspace :is(.two-col,.form-grid) {grid-template-columns: minmax(0,1fr);}#root .app .workspace .table-scroll {max-width: 100%;}#root .app .workspace :is(.form-actions,.panel-actions) {justify-content: flex-start;}}
@media (max-width:440px) {#root .app .workspace :is(.filters,.v6-history-filters) {align-items: stretch;}#root .app .workspace :is(.filters,.v6-history-filters) :is(input,select):not(:where(.pp-pricing *, .profile-popover *)) {width: 100%;}}
@media (prefers-reduced-motion:reduce) {#root .app .workspace :is(.btn,button,.panel):not(:where(.pp-pricing *, .profile-popover *)) {transition: none !important;}}
.public-content,.auth-error {box-sizing: border-box; width: min(100% - 32px,960px); margin: 40px auto; padding: clamp(16px,3vw,32px); overflow-wrap: anywhere; line-height: 2;}
.auth-error {max-width: 560px; margin-block: 10vh;}
.public-content :is(nav,p) {display: block; max-width: 100%;}
.public-content nav a {display: inline-block; padding: 8px 4px;}
:is(.public-content,.auth-error) .btn:not(:where(.pp-pricing *, .profile-popover *)) {display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; box-sizing: border-box; white-space: normal; margin-block: 4px;}
:is(.public-content,.auth-error) :is(a,button,input):focus-visible:not(:where(.pp-pricing *, .profile-popover *)) {outline: 3px solid var(--accent,#b8a0ff); outline-offset: 3px;}
#root[aria-busy=true] .loading {min-height: 160px; display: grid; place-items: center;}
#modal {box-sizing: border-box; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; overflow-wrap: anywhere;}
#modal :is(input,select,textarea):not(:where(.pp-pricing *, .profile-popover *)) {min-width: 0; max-width: 100%; box-sizing: border-box;}
#modal .row {flex-wrap: wrap;}
#modal :is(button,.btn):focus-visible:not(:where(.pp-pricing *, .profile-popover *)) {outline: 3px solid var(--accent,#b8a0ff); outline-offset: 3px;}
.auth-card {min-width: 0; max-width: calc(100vw - 24px); overflow-wrap: anywhere;}
.auth-card :is(input,select,textarea):not(:where(.pp-pricing *, .profile-popover *)) {box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 44px;}
.auth-card :is(button,.btn):not(:where(.pp-pricing *, .profile-popover *)) {min-height: 44px; max-width: 100%; white-space: normal;}
.auth-card :is(input,button,a,select,textarea):focus-visible:not(:where(.pp-pricing *, .profile-popover *)) {outline: 3px solid var(--accent,#b8a0ff); outline-offset: 3px;}
.auth-card :is(input,button,select,textarea):disabled:not(:where(.pp-pricing *, .profile-popover *)) {opacity: .62; cursor: not-allowed;}
.auth-card :is(.form-error,.notice) {overflow-wrap: anywhere; line-height: 1.9;}
:root {--p-ui-gap: clamp(10px,1.2vw,16px); --p-ui-radius: 12px; --p-ui-focus: var(--accent,#b8a0ff);}
html[data-theme=dark] {color-scheme: dark;}
html[data-theme=light] {color-scheme: light;}
:where(.auth-page,.auth-card,.public-content,.auth-error,.home-v4,#modal) :is(input,select,textarea,button,.btn):not(:where(.pp-pricing *, .profile-popover *)) {font: inherit; box-sizing: border-box; max-width: 100%;}
:where(.auth-page,.auth-card,.public-content,.auth-error,.home-v4,#modal) :is(button,.btn,input:not([type=checkbox]):not([type=radio]),select):not(:where(.pp-pricing *, .profile-popover *)) {min-height: 44px;}
:where(.auth-page,.auth-card,.public-content,.auth-error,.home-v4,#modal) :is(a,button,input,select,textarea,summary):focus-visible:not(:where(.pp-pricing *, .profile-popover *)) {outline: 3px solid var(--p-ui-focus); outline-offset: 3px;}
:where(.auth-page,.auth-card,.public-content,.auth-error,#modal) :is(button,input,select,textarea):disabled:not(:where(.pp-pricing *, .profile-popover *)) {opacity: .62; cursor: not-allowed;}
:where(.auth-page,.auth-card,.public-content,.auth-error,#modal) :is(.form-error,.error,.notice) {overflow-wrap: anywhere; line-height: 1.9;}
:where(.auth-page,.auth-card,#modal) label {min-width: 0; line-height: 1.9;}
#root .app :is(.v6-exchange,.v6-reply-form,.v6-message,.v7-notifications,.v6-position-list) {min-width: 0;}
#root .app .table-scroll {width: 100%; margin-inline: 0;}
#root .app .workspace :is(input[type=checkbox],input[type=radio]):not(:where(.pp-pricing *, .profile-popover *)) {width: auto; min-width: 18px; min-height: 18px; flex: none; accent-color: var(--accent);}
:where(.auth-page,#modal,.public-content) :is(input[type=checkbox],input[type=radio]):not(:where(.pp-pricing *, .profile-popover *)) {width: auto; min-width: 18px; min-height: 18px; accent-color: var(--accent);}
#root .app .workspace :is(.checkline,.check-row) {align-items: flex-start;}
#root .app :is(.profile-summary dd,.v6-message p,.wallet-address,.tx-reference) {overflow-wrap: anywhere;}
#root .app .workspace .form-grid>.full {grid-column: 1/-1;}
#root .app .workspace :is(.icon-btn,.tool-btn) {min-width: 44px; min-height: 44px;}
#root .app .workspace :is(.panel-head,.page-title,.v6-thread-toolbar) {flex-wrap: wrap; gap: var(--p-ui-gap);}
#root .app .workspace :is(.filters,.v6-history-filters)>:is(input,select):not(:where(.pp-pricing *, .profile-popover *)) {flex: 1 1 160px; width: auto;}
#root .app .workspace :is(.form-actions,.panel-actions)>:is(.btn,button):not(:where(.pp-pricing *, .profile-popover *)) {flex: 0 1 auto; width: auto;}
#modal :is(.form-actions,.row,.checkout-total,.pay-network) {gap: var(--p-ui-gap); flex-wrap: wrap;}
#modal .modal-head {gap: 16px; align-items: flex-start;}
#modal .modal-head h3 {min-width: 0; overflow-wrap: anywhere;}
#modal .modal-head button:not(:where(.pp-pricing *, .profile-popover *)) {flex: none; min-width: 44px; min-height: 44px;}
#modal.bottom-sheet {max-width: 100%; max-height: calc(100dvh - 12px);}
#modal .more-grid {min-width: 0;}
#modal textarea:not(:where(.pp-pricing *, .profile-popover *)) {resize: vertical; min-height: 100px;}
#modal input:not([type=checkbox]):not([type=radio]):not(:where(.pp-pricing *, .profile-popover *)) {min-width: 0;}
[hidden] {display: none !important;}
main:focus {outline: none;}
@media (max-width:760px) {:where(.auth-page,#modal,.public-content) :is(input,select,textarea):not(:where(.pp-pricing *, .profile-popover *)), #root .app .workspace :is(input,select,textarea):not(:where(.pp-pricing *, .profile-popover *)) {font-size: 16px;}#root .app .workspace :is(.form-actions,.panel-actions) {align-items: center;}#root .app .workspace :is(.filters,.v6-history-filters)>:is(input,select):not(:where(.pp-pricing *, .profile-popover *)) {flex-basis: 140px;}.auth-page .auth-card {width: 100%;}}
@media (max-width:440px) {#root .app .workspace :is(.filters,.v6-history-filters)>:is(input,select):not(:where(.pp-pricing *, .profile-popover *)) {flex-basis: 100%;}#modal .more-grid {grid-template-columns: repeat(2,minmax(0,1fr));}}
@media (prefers-reduced-motion:reduce) {html {scroll-behavior: auto !important;}:where(#root,#modal) *, :where(#root,#modal) *::before, :where(#root,#modal) *::after {animation: none !important; transition: none !important; scroll-behavior: auto !important;}}

/* PipArz 7.3.3 — sitewide copy & action design review. No changes to gate logic. */
:root{--p-action-primary:#6553db;--p-action-secondary:#126b85;--p-action-positive:#166e53;--p-action-warning:#a9711e;--p-action-danger:#ad3151;--p-action-radius:13px}
:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn):not(:where(.pp-pricing *, .profile-popover *, .icon-btn, .quote-tile, .watch-row)){
 display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;min-width:0;
 padding:11px clamp(15px,1.5vw,24px);font-weight:700;font-size:clamp(12px,.92vw,15px);line-height:1.55;
 border-radius:var(--p-action-radius);text-align:center;white-space:normal;overflow-wrap:anywhere;
 box-shadow:0 7px 20px rgba(5,9,34,.12);transition:box-shadow .18s ease,transform .18s ease,filter .18s ease;
}
:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn):not(:where(.pp-pricing *, .profile-popover *)):hover:not(:disabled):not([aria-disabled=true]){box-shadow:0 10px 24px rgba(45,51,136,.26);filter:brightness(1.07);transform:translateY(-1px)}
:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn):not(:where(.pp-pricing *, .profile-popover *)):active:not(:disabled){transform:translateY(0)}
:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn).secondary:not(:where(.pp-pricing *, .profile-popover *)){background:linear-gradient(135deg,#124f72,#126e82);border:1px solid #369bba;color:#fff!important}
:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn).danger:not(:where(.pp-pricing *, .profile-popover *)){background:linear-gradient(135deg,#812343,#ad3151);border:1px solid #eb7691;color:#fff!important}
:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn).success:not(:where(.pp-pricing *, .profile-popover *)){background:linear-gradient(135deg,#145a4a,#188065);border:1px solid #50b89c;color:#fff!important}
:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn).warning:not(:where(.pp-pricing *, .profile-popover *)){background:linear-gradient(135deg,#946019,#c39432);border:1px solid #f5cc81;color:#141a2b!important}
:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn):disabled:not(:where(.pp-pricing *, .profile-popover *)),:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn)[aria-disabled=true]{opacity:.56;filter:grayscale(.35);box-shadow:none;cursor:not-allowed;transform:none!important}
:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn):focus-visible{outline:3px solid #bcacff;outline-offset:3px}
.home-v4 .v4-hero-copy{min-width:0}
.home-v4 .v4-hero h1.v733-one-line{font-size:clamp(23px,2.35vw,37px);line-height:1.55;letter-spacing:-.02em;max-width:none;white-space:nowrap;overflow-wrap:normal}
.home-v4 .v4-hero h1.v733-one-line em{color:#bea6ff;font-style:normal}
.home-v4 .v4-hero-copy .v4-lead{line-height:2.05;max-width:72ch}
.home-v4 .v4-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.home-v4 .v4-hero-actions>.btn{min-height:54px!important;padding-inline:23px!important}
.home-v4 .v4-hero-actions>.v4-text-button{min-height:46px;display:inline-flex;align-items:center;gap:8px}
.home-v4 .v733-decision{padding-block:clamp(46px,7vw,110px);border-top:1px solid var(--line,#343a55)}
.home-v4 .v733-decision-top{max-width:950px;margin-inline:auto;text-align:center}
.home-v4 .v733-decision-top h2{font-size:clamp(25px,3vw,43px);line-height:1.75;margin:16px 0}
.home-v4 .v733-decision-top h2 span{color:#b79cfc}
.home-v4 .v733-decision-top p{max-width:88ch;margin-inline:auto;line-height:2.05;color:var(--muted,#abb5cd)}
.home-v4 .v733-decision-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,22px);margin-block:35px 0}
.home-v4 .v733-decision-grid article{padding:clamp(20px,2.25vw,34px);border:1px solid rgba(154,159,219,.31);border-radius:20px;background:linear-gradient(152deg,rgba(104,91,183,.13),rgba(19,28,49,.35));min-width:0;display:flex;flex-direction:column;gap:10px}
.home-v4 .v733-decision-grid article:nth-child(2){border-color:rgba(37,172,177,.42);background:linear-gradient(152deg,rgba(18,120,140,.15),rgba(19,28,49,.36))}
.home-v4 .v733-decision-grid article:nth-child(3){border-color:rgba(154,124,232,.48)}
.home-v4 .v733-decision-kicker{direction:ltr;align-self:flex-start;color:#b9a8fd;letter-spacing:.1em;font-size:11px;font-weight:800}
.home-v4 .v733-decision-grid h3{font-size:clamp(16px,1.4vw,21px);margin:0;font-weight:800}
.home-v4 .v733-decision-grid p{font-size:clamp(12px,1vw,14px);line-height:2;color:var(--muted,#c0c5d2);margin:0;flex:1}
.home-v4 .v733-decision-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#d0c0ff!important;font-weight:700;text-decoration:none;border-bottom:1px solid rgba(180,163,244,.28);padding-bottom:5px;align-self:flex-start}
.home-v4 .v733-decision-link:hover{color:#fff!important}
.home-v4 .v4-section-heading h2,.home-v4 .v733-strategy-heading h2{max-width:26ch;letter-spacing:-.014em}
.app .page-title h1{font-size:clamp(24px,2.1vw,34px);font-weight:850;line-height:1.45;letter-spacing:-.015em}
.app .page-title p{font-size:clamp(12px,1vw,14px);line-height:2;max-width:78ch}
.app .workspace :is(.btn,button.btn,a.btn).small{min-height:44px;padding:9px 16px;font-size:12px}
.auth-page .auth-art h1{font-size:clamp(27px,3vw,48px);line-height:1.5}
html[data-theme=light] .home-v4 .v733-decision-grid article{background:linear-gradient(150deg,#f9f7ff,#f0f5fc);border-color:#c9cde4}
html[data-theme=light] .home-v4 .v733-decision-grid article:nth-child(2){background:linear-gradient(150deg,#f1fbfc,#f4f6fb);border-color:#b0d4df}
html[data-theme=light] .home-v4 .v733-decision-top h2 span,html[data-theme=light] .home-v4 .v4-hero h1.v733-one-line em{color:#5640aa}
html[data-theme=light] .home-v4 .v733-decision-kicker,html[data-theme=light] .home-v4 .v733-decision-link{color:#41318f!important}
.app .v733-risk-behavior{border-inline-start:3px solid #b69cff;padding-inline:16px;margin-top:16px;line-height:2}
@media(max-width:1100px){.home-v4 .v4-hero h1.v733-one-line{font-size:clamp(22px,2.4vw,31px)}.home-v4 .v733-decision-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.home-v4 .v4-hero h1.v733-one-line{white-space:normal;max-width:100%;font-size:clamp(22px,5vw,30px);text-wrap:balance}.home-v4 .v733-decision-grid{grid-template-columns:1fr}.home-v4 .v733-decision-top{text-align:start}.home-v4 .v733-decision-top p{max-width:none}.home-v4 .v4-hero-actions>.btn{width:100%}}
@media(max-width:430px){:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn):not(:where(.pp-pricing *, .profile-popover *)){font-size:12px;padding-inline:14px}.home-v4 .v4-hero h1.v733-one-line{font-size:clamp(21px,6vw,25px)}}
@media(prefers-reduced-motion:reduce){:is(.home-v4,.app,.auth-page,.public-content,.auth-error,#modal) :is(.btn,button.btn,a.btn){transition:none!important;transform:none!important}}
