.ex-tabs{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:24px}.ex-tabs button{flex-shrink:0;border:1px solid var(--line);background:white;color:var(--ink);padding:11px 16px;border-radius:7px;font-size:14px;font-weight:700}.ex-tabs button.active{background:var(--ink);color:white}.ex-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ex-card{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}.ex-card h2,.ex-card h3{margin:10px 0}.ex-card p{margin:9px 0;overflow-wrap:anywhere}.ex-card .muted,.muted{color:var(--muted);font-size:14px}.ex-card .dark,.ex-card .outline{margin-top:12px}.ex-card ul{padding-left:20px}.ex-notice{padding:17px 20px;background:#e9f1e2;border-left:4px solid #83a854;border-radius:5px;margin-bottom:20px}.ex-empty{padding:38px;border:1px dashed #bdcbbc;border-radius:10px;text-align:center;background:white}.ex-empty p{color:var(--muted);margin:10px 0}.ex-work-head{padding:24px;background:var(--ink);color:white;border-radius:12px;margin-bottom:20px}.ex-work-head h2{margin:12px 0}.ex-work-head p{color:#dce8df}.ex-work-head button{margin-bottom:10px}.ex-progress{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.ex-progress span{padding:7px 12px;border:1px solid #769083;border-radius:20px;font-size:14px}.ex-progress .selected{background:var(--lime);color:var(--ink);border-color:var(--lime)}.ex-actions{display:flex;gap:9px;flex-wrap:wrap}.ex-section{margin:24px 0}.ex-section>h2{margin-bottom:15px}.ex-wide{grid-column:1/-1}#ex-dialog{width:min(760px,calc(100vw - 24px))}#ex-dialog-body{padding:24px}#ex-dialog-body label{display:block;font-size:14px;font-weight:700;margin:16px 0 6px}#ex-dialog-body input:not([type=checkbox]),#ex-dialog-body select,#ex-dialog-body textarea{width:100%;padding:11px;border:1px solid #bfcebf;border-radius:7px;color:var(--ink);background:white}#ex-dialog-body textarea{min-height:95px;resize:vertical}#ex-dialog-body label.check{display:flex;gap:10px;align-items:start;font-weight:400}#ex-dialog-body input[type=checkbox]{margin-top:5px;width:18px;height:18px;flex-shrink:0}.ex-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}#ex-dialog-body button[type=submit]{margin-top:22px}#ex-error,.ex-form-error{color:#913f2d;background:#fff1eb;padding:12px;border-radius:6px;margin:10px 0}.ex-form-error:empty{display:none}#ex-status{margin:0 0 14px;color:#355d30}.ex-tags{display:flex;flex-wrap:wrap;gap:6px}.ex-tags span{font-size:14px;background:#eef4eb;padding:4px 9px;border-radius:5px}.ex-compare{overflow:auto;border:1px solid var(--line);background:white;border-radius:10px}.ex-compare table{width:100%;border-collapse:collapse;min-width:660px}.ex-compare th,.ex-compare td{text-align:left;padding:16px;border-bottom:1px solid var(--line);vertical-align:top;min-width:145px}.ex-compare th{background:#eef4eb;font-size:14px}.ex-compare td{white-space:pre-wrap}.ex-history{padding-left:22px}.ex-history li{margin:10px 0;font-size:14px}.ex-filter{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.ex-filter select{padding:10px;border:1px solid var(--line);border-radius:7px;background:white;font:inherit}details.ex-card summary{cursor:pointer;font-weight:700}.ex-checklist{display:flex;gap:12px;flex-wrap:wrap;font-size:14px}.ex-checklist span{background:#f0f4ee;padding:8px 12px;border-radius:6px}.ex-date{font-size:25px;font-weight:700;letter-spacing:-.5px}.ex-demo{padding:14px;background:#fff1d5;color:#6b511f;border-radius:7px;margin-bottom:20px}@media(max-width:720px){.ex-grid,.ex-fields{grid-template-columns:1fr}.ex-card{padding:20px}.ex-work-head{padding:20px}.page-head{flex-wrap:wrap}.site-header nav{overflow:auto}.ex-wide{grid-column:auto}}

.network-controls{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);gap:16px;margin:22px 0 14px}.network-controls label{min-width:0;display:block;font-size:14px;font-weight:700}.network-controls input,.network-controls select{display:block;width:100%;min-width:0;min-height:46px;margin-top:7px;padding:10px;border:1px solid #bfcebf;background:white;border-radius:7px;color:var(--ink);font-size:16px}#network-results .dark{min-height:44px}@media(max-width:780px){.network-controls{grid-template-columns:1fr}#network-results .dark{width:100%}}

.ex-tabs,.ex-grid,.ex-fields,.ex-compare,#ex-content,.ex-work-head{min-width:0;max-width:100%}
#ex-dialog-body input:not([type=checkbox]),#ex-dialog-body select,#ex-dialog-body textarea{font-size:16px;min-width:0;min-height:46px}
.ex-fields>div{min-width:0}
.ex-work-head h2,.ex-history li{overflow-wrap:anywhere}
@media(max-width:720px){
 .ex-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}
 .ex-tabs button{min-width:0;min-height:48px;padding:10px 8px;white-space:normal;overflow-wrap:anywhere}
 .ex-card,.ex-work-head{padding:18px}
 #ex-dialog-body{padding:18px 16px}
 .ex-actions{flex-direction:column;align-items:stretch}
 .ex-actions button,.ex-actions a{width:100%}
 .ex-filter{flex-direction:column}
 .ex-filter select{min-width:0;width:100%;font-size:16px}
 .ex-compare{width:100%;-webkit-overflow-scrolling:touch}
}

/* Keep complete proposal terms readable without sideways scrolling on phones. */
@media(max-width:720px){
 .ex-compare{border:0;background:transparent;overflow:visible}
 .ex-compare table,.ex-compare tbody,.ex-compare tr,.ex-compare td{display:block;min-width:0;width:100%}
 .ex-compare thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .ex-compare tr{margin-bottom:16px;padding:6px 16px;background:white;border:1px solid var(--line);border-radius:12px}
 .ex-compare td{padding:12px 0;overflow-wrap:anywhere}
 .ex-compare td:last-child{border-bottom:0}
 .ex-compare td::before{content:attr(data-label);display:block;margin-bottom:5px;font-size:14px;font-weight:700;color:var(--muted)}
 .ex-compare td button{width:100%;min-height:44px;margin-top:12px}
 .ex-card h2,.ex-card h3,.ex-notice,#ex-dialog-title{overflow-wrap:anywhere}
 #ex-dialog-body input[type=date]{max-width:100%;width:100%;appearance:none}
}
