/* App-only repairs; marketing and legal styles remain Korion's files. */
.ui-help{display:block;font-size:12px;line-height:1.5;color:#64758d;font-weight:400;margin:5px 0}
body .shell>.top{position:relative!important;top:auto!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;height:auto!important;min-height:76px!important;padding:12px max(4vw,16px)!important;pointer-events:auto!important}
.app-auth-actions{display:flex;gap:8px;margin-left:auto}
.app-auth-actions{position:relative;z-index:5;order:2;flex:none;pointer-events:auto}
body .shell>.top .brand{order:0}
body .shell>.top .app-avatar{order:3}
@media(min-width:761px){
 body .shell>.top .nav{position:static!important;inset:auto!important;transform:none!important;order:1;flex:1;width:auto!important;max-width:620px!important;margin:0 auto!important}
 body .shell>.top{height:auto!important;min-height:76px}
}
body .app-auth-actions .app-signin{position:static!important;inset:auto!important;transform:none!important;min-height:40px;padding:7px 12px}
.app-auth-actions .app-signin[hidden]{display:none!important}
.app-loading{max-width:800px;min-height:240px;margin:40px auto;padding:30px;color:#516889;background:#edf3fa;border-radius:18px}
.exchange-summary-card:disabled,.exchange-summary-add:disabled{opacity:.42;cursor:default;filter:grayscale(.7)}
.starting-point,.starting-footer{background:white;border:1px solid #d5e1ef;border-radius:16px;padding:20px;margin:15px 0}
.starting-footer{position:sticky;bottom:12px;z-index:3;display:flex;justify-content:space-between;gap:12px;align-items:center;box-shadow:0 5px 24px #173d6420}
.starting-footer button{background:#2269c8;color:white;border:0;border-radius:20px;min-height:44px;padding:9px 20px}
.starting-footer button:disabled{background:#c0c8d4}
.payoff-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.payoff-card{background:#fff;border:1px solid #dbe7f3;border-radius:16px;padding:20px;min-width:0;color:#213c60}
.payoff-card h3{font-size:18px;margin:0 0 10px}.payoff-card>strong{display:block;font-size:36px;line-height:1.2;overflow-wrap:anywhere}
.payoff-card .positive{color:#14834b}.payoff-card .negative{color:#c33c45}.payoff-card p{margin:8px 0;font-size:14px}
.payoff-card dl{margin:14px 0}.payoff-card dl>div{display:flex;justify-content:space-between;gap:8px}.payoff-card dd{margin:0}.payoff-card small{font-size:11px;color:#697b91}
.payoff-conclusion{margin:15px 0}.payoff-conclusion h3{margin:0;font-size:18px}.payoff-conclusion p{font-size:13px;color:#65778e}
.vd .vd-item>input[type=date]{flex:0 0 150px;width:150px;max-width:150px}
.vd-evidence-read .vd-source-row{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;margin:8px 0}
.vd-evidence-read .vd-source-row span{flex:1}.vd-evidence-read .vd-source-row small{display:block;color:#66798f;font-size:12px}
.vd-head{flex-wrap:wrap}
.vd .vd-date-picker{position:relative!important;inset:auto!important}
.vd .vd-card-head h2{display:block;min-width:0}.vd .vd-card-head h2>.ui-help{font-size:12px;max-width:280px}
.vd-empty-actions{display:flex;flex-wrap:wrap;gap:12px;margin:15px 0}
#vali-save-gate[open]:not(:modal){position:fixed;inset:100px 12px auto;max-width:min(520px,calc(100vw - 24px));margin:auto;z-index:70;box-shadow:0 20px 90px #16335b66}
@media(max-width:760px){
 .vd .vd-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:12px!important}
 .vd .vd-head-actions{position:static!important;inset:auto!important;margin:0!important;grid-column:1/-1;justify-self:end}
 .vd .vd-card-head{flex-wrap:wrap}.vd .vd-card-head .vd-periods{margin-left:0}
 .payoff-pair{grid-template-columns:1fr}.payoff-card>strong{font-size:32px}
 .vd .vd-item{display:grid;grid-template-columns:22px minmax(0,1fr) 34px;gap:8px}
 .vd .vd-item>input[type=date]{grid-column:2;grid-row:2;width:150px;max-width:100%;justify-self:start}
 .vd .vd-item>button{grid-column:3;grid-row:1}.vd .vd-item>span{grid-column:2;grid-row:1}
 .starting-footer{padding:12px;bottom:8px}.starting-footer p{font-size:12px}
 body.decide-active .vd-period-select{position:relative!important;inset:auto!important;margin-left:auto}
}
