#resale{min-width:0}
#resale .resale-heading{margin-bottom:20px}
#resale .resale-heading h1{margin:4px 0 8px}
#resale .resale-eyebrow{font-size:12px;letter-spacing:.13em;color:#087d8e;font-weight:700}
#resale .resale-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
#resale .resale-tabs button{min-height:44px;flex:1;max-width:230px}
#resale .resale-tabs [aria-current=page]{background:#087f8c;color:#fff;border-color:#087f8c}
#resale .resale-panel{background:#fff;border:1px solid #d6e3e9;border-radius:12px;padding:20px;margin:16px 0;min-width:0}
#resale .resale-panel h2,#resale .resale-panel h3{margin-top:0}
#resale .resale-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#resale .resale-wide{grid-column:1/-1}
#resale .resale-grid label,#resale .resale-panel>label,#resale .resale-form>label{display:grid;gap:7px;margin-bottom:12px;font-size:14px}
#resale input,#resale select,#resale textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#resale textarea{resize:vertical}
#resale button{min-height:42px;white-space:normal}
#resale .resale-actions,#resale .resale-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#resale .resale-actions{justify-content:flex-start;margin:18px 0}
#resale .resale-actions button{max-width:100%}
#resale .resale-toolbar h2{margin:0}
#resale .resale-note,#resale .resale-small{font-size:13px;line-height:1.55;color:#54738b}
#resale .resale-multiline{white-space:pre-wrap;overflow-wrap:anywhere}
#resale .resale-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}
#resale .resale-metric{border:1px solid #d4e4eb;border-radius:10px;background:#fff;padding:14px;min-width:0;display:flex;flex-direction:column;gap:8px}
#resale .resale-metric span{font-size:12px;color:#537188;line-height:1.5;overflow-wrap:anywhere}
#resale .resale-metric strong{font-size:19px;line-height:1.35;overflow-wrap:anywhere}
#resale .resale-negative{color:#b42318}
#resale .resale-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
#resale .resale-pairs>div{min-width:0}
#resale .resale-pairs dt{font-size:12px;color:#58728b;margin-bottom:4px}
#resale .resale-pairs dd{margin:0;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}
#resale .resale-table-wrap{overflow:auto;margin-top:16px}
#resale .resale-table-wrap table{width:100%}
#resale .resale-table-wrap td{vertical-align:top;overflow-wrap:anywhere}
#resale .resale-chips{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}
#resale .resale-chips>span{padding:4px 7px;background:#edf6f8;border-radius:5px;font-size:12px}
#resale .resale-plot-summary{font-size:13px;font-weight:700;line-height:1.5}
#resale .resale-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;max-height:350px;overflow:auto;margin:12px 0;padding:2px}
#resale .resale-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid #d9e5ea;border-radius:8px;padding:10px;cursor:pointer}
#resale .resale-choice input,#resale .resale-check input{width:18px;height:18px;min-width:18px;margin:2px 0;accent-color:#07818d}
#resale .resale-choice:has(input:disabled){opacity:.58;cursor:default}
#resale .resale-choice span{min-width:0;overflow-wrap:anywhere}
#resale .resale-choice small{display:block;margin-top:4px;color:#526d80}
#resale .resale-chosen{border-color:#07818d;background:#effafa}
#resale .resale-plot-price{border-bottom:1px solid #dfebf0;padding:16px 0}
#resale .resale-plot-price:last-child{border-bottom:0}
#resale .resale-plot-price summary,#resale .resale-snapshot summary,#resale .resale-history summary{cursor:pointer;font-weight:600;padding:10px 0;line-height:1.5}
#resale .resale-check{display:flex!important;align-items:flex-start;gap:9px;line-height:1.55;font-size:13px}
#resale .resale-commission-side{background:#f4f8fb;border-radius:10px;padding:14px}
#resale .resale-commission-side label{display:grid;gap:6px;margin:8px 0}
#resale .resale-commission-side[hidden],#resale [hidden]{display:none!important}
#resale .resale-notice,#resale .resale-recovery{padding:13px;border:1px solid #a6d8cb;background:#eaf8f2;border-radius:8px;line-height:1.5}
#resale .resale-notice.resale-error,#resale .resale-form-error{background:#fff2ed;color:#97291d;border:1px solid #ecc6bc;border-radius:8px;padding:12px;line-height:1.5}
#resale .resale-recovery p{margin-top:0}
#resale .resale-badge{font-size:12px;font-weight:600;display:inline-block;border-radius:5px;background:#ecf3f7;padding:5px 8px}
#resale .resale-void{opacity:.64}
#resale .resale-snapshot{border-top:1px solid #e1eaf0;margin-top:10px}
#resale .resale-json{max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#f3f7f9;padding:10px}
#resale .resale-history li{margin-bottom:12px;overflow-wrap:anywhere}
#resale .resale-correction{border-color:#e5b4a7}
#resale .resale-schedule-editor>label{display:grid;gap:7px;max-width:330px;margin:14px 0}
#resale .resale-schedule-row{padding:14px;border:1px solid #d8e5eb;border-radius:9px;margin:12px 0;background:#f7fbfc}
#resale .resale-schedule-inputs{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;margin-top:12px}
#resale .resale-schedule-inputs label{display:grid;gap:7px;font-size:13px;min-width:0}
#resale .resale-schedule-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;background:#edf7f7;border-radius:9px;padding:15px}
#resale .resale-schedule-totals dt{font-size:12px;color:#527184;margin-bottom:5px}
#resale .resale-schedule-totals dd{font-weight:700;margin:0;overflow-wrap:anywhere}
#resale .resale-schedule-warning{grid-column:1/-1;color:#a13723;margin:0;font-size:13px;line-height:1.5}
#resale .resale-final-date{display:flex;flex-direction:column;gap:6px;padding:14px;background:#eaf5f7;border-left:4px solid #087f8c;border-radius:6px;margin:14px 0;overflow-wrap:anywhere}
#resale .resale-final-date span{font-size:13px}
#resale .resale-final-date button{align-self:flex-start;max-width:100%;margin-top:5px}
#resale .resale-kist-status{font-size:12px;display:inline-block;margin-top:6px;padding:4px 7px;border-radius:5px;background:#edf6f1;color:#245e4c}
#resale .resale-kist-overdue{background:#fff0e9;color:#ac331c}
@media(max-width:640px){
 #resale .resale-panel{padding:14px}
 #resale .resale-grid,#resale .resale-pairs{grid-template-columns:1fr}
 #resale .resale-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #resale .resale-metric{padding:11px}
 #resale .resale-metric strong{font-size:16px}
 #resale .resale-tabs{gap:6px}
 #resale .resale-tabs button{padding:10px 6px;font-size:12px;min-width:0}
 #resale .resale-picker{grid-template-columns:1fr;max-height:320px}
 #resale .resale-actions{align-items:stretch;flex-direction:column}
 #resale .resale-table-wrap{overflow:visible}
 #resale .resale-table-wrap td{min-width:0}
 #resale .resale-table-wrap .resale-chips{display:flex}
 #resale .resale-table-wrap td:has(.resale-chips){display:block}
 #resale .resale-table-wrap td:has(.resale-chips):before{display:block;margin-bottom:6px}
 #resale .resale-schedule-inputs{grid-template-columns:1fr}
 #resale .resale-schedule-row{padding:12px}
 #resale .resale-schedule-editor .resale-actions button{width:100%}
}

#resale .resale-rate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
#resale .resale-rate-grid label{display:grid;gap:7px;min-width:0;font-size:13px}
#resale .resale-rate-grid input[readonly]{background:#edf3f6;color:#324e63}
#resale .resale-auto-price{padding:12px 16px;background:#e9f7f5;border:1px solid #9ed6ce;border-radius:7px;min-width:0;display:flex;flex-direction:column;gap:5px;justify-content:center}
#resale .resale-auto-price>span,#resale .resale-auto-price small{font-size:12px;color:#40626b}
#resale .resale-auto-price output{font-size:21px;font-weight:700;overflow-wrap:anywhere}
#resale .resale-rate-cost{font-size:13px;margin:12px 0 5px}
@media(max-width:800px){#resale .resale-rate-grid{grid-template-columns:1fr}}
