/* Account and profile pages share spacing and typography, not a repeated card template. */
.account-eyebrow{display:block;margin-bottom:10px;color:#347448;font:600 11px/1.3 var(--font-ui);letter-spacing:.08em;text-transform:uppercase}
.account-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:14px}
.account-section-heading h2,.account-section-heading .section-title{margin:0 0 4px;padding:0;border:0;font:650 22px/1.2 var(--font-ui);letter-spacing:-.035em;color:#162d1d}
.account-section-heading h2::after,.account-section-heading .section-title::after{display:none}
.account-section-heading span{color:#718076;font-size:12px}
.account-section-heading>a{color:#276a3a;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}

/* Public trader profile */
.public-site .account-profile{max-width:1120px;padding-top:32px}
.account-back{display:inline-block;margin-bottom:16px;color:#668070;font-size:12px;text-decoration:none}
.account-back:hover{text-decoration:underline}
.public-site .account-profile .profile-top{display:flex;align-items:end;justify-content:space-between;gap:22px;padding:29px 32px;border-radius:12px;background:linear-gradient(115deg,#163f28 0%,#142c1f 70%,#10251a 100%);color:#fff}
.public-site .account-profile .profile-head{display:flex;align-items:center;gap:18px;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none}
.public-site .account-profile .profile-head .avatar--xl{width:80px;height:80px;border:2px solid #ffffff40;border-radius:50%;flex-shrink:0}
.public-site .account-profile .profile-head .name{margin:0 0 5px;color:#fff;font:650 clamp(30px,3.2vw,44px)/1.05 var(--font-ui);letter-spacing:-.05em;text-transform:none}
.public-site .account-profile .profile-head .sub{color:#c7d9ca;font:400 11px/1.6 var(--font-ui);overflow-wrap:anywhere}
.public-site .account-profile .profile-head .sub .id{color:#dceadf}
.public-site .account-profile .profile-actions{display:flex;gap:8px;flex:0 0 auto;margin:0}
.public-site .account-profile .profile-actions .btn-ghost{min-height:37px;padding:9px 13px;border:1px solid #ffffff50;border-radius:6px;background:#ffffff10;color:#fff;font-size:11px;white-space:nowrap}
.public-site .account-profile .profile-actions .btn-ghost:hover{background:#ffffff22}
.public-site .account-profile .stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0 0 28px;padding:21px 0;border:0;border-bottom:1px solid #dce6dc;border-radius:0;background:none}
.public-site .account-profile .stat{min-width:0;min-height:0;padding:2px 16px;border:0}
.public-site .account-profile .stat:first-child{padding-left:0}
.public-site .account-profile .stat-label{margin-bottom:7px;color:#65766b;font-size:11px;text-transform:none}
.public-site .account-profile .stat-val{color:#162d1d;font:650 clamp(23px,2.5vw,32px)/1.1 var(--font-ui);letter-spacing:-.045em}
.public-site .account-profile .stat-sub{margin-top:5px;color:#758379;font-size:10px;line-height:1.4}
.public-site .account-profile .profile-trades,.public-site .account-profile .profile-vouches{margin:0;padding:0;border:0}
.public-site .account-profile .profile-table-wrap{overflow:hidden;border:1px solid #dce6dc;border-radius:8px;background:#fff}
.public-site .account-profile .profile-trades .data{display:table;width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
.public-site .account-profile .profile-trades thead{display:table-header-group;position:static;width:auto;height:auto;clip-path:none;overflow:visible}
.public-site .account-profile .profile-trades tbody{display:table-row-group}
.public-site .account-profile .profile-trades tr{display:table-row}
.public-site .account-profile .profile-trades th{padding:11px 18px;background:#f5f8f4;border-bottom:1px solid #dce6dc;color:#66776a;font:500 11px/1.3 var(--font-ui);text-align:left;text-transform:none;letter-spacing:0}
.public-site .account-profile .profile-trades th:first-child{width:49%}
.public-site .account-profile .profile-trades th:nth-child(2){width:36%}
.public-site .account-profile .profile-trades th:last-child{width:15%;text-align:right}
.public-site .account-profile .profile-trades td{display:table-cell;height:auto;padding:15px 18px;border:0;border-bottom:1px solid #edf1ec;background:#fff;vertical-align:middle;font:400 12px/1.4 var(--font-ui)}
.public-site .account-profile .profile-trades tr:last-child td{border-bottom:0}
.public-site .account-profile .profile-trades tr:hover td{background:#f8fbf7}
.public-site .account-profile .profile-trades td::before{display:none}
.profile-trade-flow{display:block;color:#46594a;font-size:13px;white-space:nowrap}
.profile-trade-flow strong{color:#183322;font-size:15px;letter-spacing:-.03em}
.profile-trade-flow>span{margin:0 6px;color:#8aa08e}
.profile-trade-id{display:inline-block;margin-top:3px;color:#2b7a43;font-size:10px;font-weight:650;letter-spacing:.03em;text-decoration:none}
.profile-counterparty{display:inline-flex;align-items:center;gap:8px;min-width:0}
.profile-counterparty .avatar{width:24px!important;height:24px!important;flex-shrink:0}
.profile-counterparty>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-counterparty a{color:#203f2b;font-weight:600;text-decoration:none}
.profile-counterparty small{display:block;color:#78877a;font-size:10px}
.public-site .account-profile .profile-trade-time{text-align:right;color:#78867a;font-size:11px;white-space:nowrap}
.public-site .account-profile .profile-trades td[colspan]{padding:22px;text-align:center}
.public-site .account-profile .profile-pager{justify-content:center;margin:16px 0 31px}
.public-site .account-profile .profile-pager:empty{display:none}
.public-site .account-profile .profile-vouches{margin-top:22px;padding-top:0;border:0}
.public-site .account-profile .profile-vouches .feed{margin:0}
.public-site .account-profile .profile-vouches .feed>li{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0;padding:13px 0;border-bottom:1px solid #e5ebe4;border-radius:0;font-size:13px}
.public-site .account-profile .profile-vouches .feed>li:hover{background:transparent}
.public-site .account-profile .profile-vouches .feed-flow{display:flex;align-items:baseline;gap:9px;min-width:0;color:#405447;font-size:13px}
.public-site .account-profile .profile-vouches .feed-flow .who{flex:0 0 auto;color:#25663a;font-weight:600}
.public-site .account-profile .profile-vouches .vouch-note{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.public-site .account-profile .profile-vouches .feed-time{margin-left:7px;font:400 11px/1.4 var(--font-ui);white-space:nowrap}

/* Private transcript library */
.public-site .account-transcripts{max-width:1090px;padding:40px 32px 72px}
.transcript-hero{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px}
.transcript-hero h1{margin:0 0 7px;color:#182e20;font:650 clamp(36px,4vw,52px)/1.05 var(--font-ui);letter-spacing:-.055em}
.transcript-hero p{margin:0;color:#63776a;font-size:14px}
.transcript-hero>a{padding-bottom:5px;color:#286f3d;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}
.transcript-note{display:flex;align-items:center;gap:14px;margin-bottom:31px;padding:13px 17px;border:1px solid #dce8da;border-radius:7px;background:#f2f8f0;color:#536d59;font-size:12px}
.transcript-note strong{color:#245633;white-space:nowrap}
.account-transcripts .account-section-heading{margin-bottom:14px}
.transcript-list{list-style:none;margin:0;padding:0;border:1px solid #dce6dc;border-radius:8px;background:#fff;overflow:hidden}
.transcript-item{display:grid;grid-template-columns:minmax(0,1fr) 120px 172px;align-items:center;gap:16px;padding:17px 20px;border-bottom:1px solid #edf1ec}
.transcript-item:last-child{border-bottom:0}
.transcript-item:hover{background:#f8fbf7}
.transcript-main{min-width:0}
.transcript-route{display:block;color:#183322;font-size:15px;font-weight:650;letter-spacing:-.025em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.transcript-route>span{margin:0 4px;color:#7e9b84}
.transcript-details{display:flex;gap:12px;margin-top:4px;color:#7b887d;font-size:11px}
.transcript-status{justify-self:start;padding:5px 9px;border-radius:5px;font-size:11px;font-weight:600}
.transcript-status.is-completed{background:#e7f4e6;color:#276d38}
.transcript-status.is-cancelled{background:#f4f2ef;color:#6d6c64}
.transcript-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.transcript-actions a{padding:8px 10px;border:1px solid #cfdbcf;border-radius:5px;color:#235d34;font-size:11px;font-weight:600;text-decoration:none;white-space:nowrap}
.transcript-actions a:first-child{border-color:#205b34;background:#205b34;color:#fff}
.transcript-actions a:hover{filter:brightness(.92);text-decoration:none!important}
.account-transcripts .resource-pagination{justify-content:center}
.account-transcripts .resource-empty{margin:0;border:1px solid #dce6dc;border-radius:8px;background:#fff}

/* Settings */
.public-site .account-settings{max-width:1000px;padding-top:40px;padding-bottom:76px}
.settings-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:33px}
.settings-head .page-title{margin:0 0 7px;font:650 clamp(36px,4vw,52px)/1.05 var(--font-ui);letter-spacing:-.055em}
.settings-head p{margin:0;color:#63776a;font-size:14px}
.settings-identity{display:flex;align-items:center;gap:11px;min-width:0;max-width:310px;padding:11px 14px;border:1px solid #dce6dc;border-radius:8px;background:#fff}
.settings-identity .avatar{width:38px;height:38px;border-radius:50%;flex-shrink:0}
.settings-identity>div{min-width:0}
.settings-identity strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#203b29;font-size:12px}
.settings-identity span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7c897e;font-size:10px}
.account-settings .settings-status{min-height:0;margin:0;color:#286f3d;font-size:12px}
.account-settings .settings-status:empty{display:none}
.settings-group{margin:0 0 21px;padding:0;border:0}
.settings-group h2{margin:0 0 9px;color:#67786c;font:600 11px/1.3 var(--font-ui);letter-spacing:.06em;text-transform:uppercase}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:94px;padding:18px 21px;border:1px solid #dce6dc;border-radius:8px;background:#fff}
.setting-row>div{min-width:0}
.setting-row h3{margin:0 0 5px;color:#1c3625;font:600 15px/1.3 var(--font-ui)}
.setting-row p{max-width:640px;margin:0;color:#6e7e72;font-size:12px;line-height:1.5}
.setting-row .toggle{flex:0 0 auto;margin:0}
.setting-row .toggle-track{margin:0}
.setting-row .toggle input:focus-visible+.toggle-track{outline:2px solid #2f9d4c;outline-offset:3px}
.setting-hint{display:block;margin-top:6px;color:#286f3d;font-size:11px}
.setting-badge{flex:0 0 auto;padding:5px 10px;border-radius:5px;font-size:11px}
.setting-warning{margin-top:9px!important;color:#9a5419!important}
.settings-row-link{flex:0 0 auto;color:#286f3d;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}
.settings-row-link:hover{text-decoration:underline}

@media(max-width:760px){
 .account-section-heading{align-items:start}
 .public-site .account-profile{padding:24px 18px 48px}
 .public-site .account-profile .profile-top{display:block;padding:23px 20px}
 .public-site .account-profile .profile-head{gap:12px}
 .public-site .account-profile .profile-head .avatar--xl{width:60px;height:60px}
 .public-site .account-profile .profile-head .name{font-size:28px}
 .public-site .account-profile .profile-head .sub{font-size:10px}
 .public-site .account-profile .profile-actions{margin-top:19px}
 .public-site .account-profile .stat-row{grid-template-columns:1fr 1fr;row-gap:18px;padding:20px 0}
 .public-site .account-profile .stat{padding:0 10px;border:0}
 .public-site .account-profile .stat:nth-child(odd){padding-left:0}
 .public-site .account-profile .stat-val{font-size:25px}
 .public-site .account-profile .profile-trades .data{display:block}
 .public-site .account-profile .profile-trades thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .public-site .account-profile .profile-trades tbody{display:block}
 .public-site .account-profile .profile-trades tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 6px;padding:13px 15px;border-bottom:1px solid #edf1ec}
 .public-site .account-profile .profile-trades tbody tr:last-child{border-bottom:0}
 .public-site .account-profile .profile-trades td{display:block;padding:0!important;border:0!important;background:transparent!important;min-width:0}
 .public-site .account-profile .profile-trades td:first-child{grid-column:1;grid-row:1}
 .public-site .account-profile .profile-trades td:nth-child(2){grid-column:1/-1;grid-row:2}
 .public-site .account-profile .profile-trades td:last-child{grid-column:2;grid-row:1}
 .public-site .account-profile .profile-trades td[colspan]{grid-column:1/-1;grid-row:auto}
 .profile-trade-flow{white-space:normal;font-size:11px}
 .profile-trade-flow strong{font-size:13px}
 .profile-counterparty small{display:inline;margin-left:6px}
 .public-site .account-profile .profile-vouches .feed>li{align-items:start;padding:12px 0}
 .public-site .account-profile .profile-vouches .feed-flow{display:block;line-height:1.5}
 .public-site .account-profile .profile-vouches .feed-flow .who{margin-right:6px}
 .public-site .account-profile .profile-vouches .vouch-note{white-space:normal}
 .public-site .account-transcripts{padding:26px 18px 54px}
 .transcript-hero{display:block;margin-bottom:19px}
 .transcript-hero h1{font-size:37px}
 .transcript-hero>a{display:inline-block;margin-top:14px}
 .transcript-note{align-items:start;flex-direction:column;gap:4px;padding:12px 14px}
 .transcript-item{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px}
 .transcript-main{grid-column:1}
 .transcript-status{grid-column:2;grid-row:1}
 .transcript-actions{grid-column:1/-1;justify-content:flex-start}
 .transcript-route{font-size:14px}
 .transcript-details{flex-wrap:wrap;gap:3px 10px}
 .public-site .account-settings{padding:27px 18px 52px}
 .settings-head{align-items:start;flex-direction:column;gap:18px;margin-bottom:24px}
 .settings-head .page-title{font-size:38px}
 .settings-identity{width:100%;max-width:none}
 .setting-row{min-height:0;padding:16px;gap:12px}
 .setting-row h3{font-size:14px}
 .setting-row p{font-size:11px}
 .settings-row-link{font-size:11px}
}
