.crm{padding:24px 18px 40px;color:#162b48;background:#f3f6fb;min-height:100%}.crm *{box-sizing:border-box}.crm h1{font-size:28px;letter-spacing:-1px;margin:6px 0 5px}.crm h2{font-size:18px;margin:0 0 14px}.crm p{line-height:1.7}.crm small,.crm .muted{color:#6c7f99}.crm-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.crm-logo{font-size:11px;letter-spacing:2px;color:#1764e8;font-weight:750}.crm-sub{font-size:13px;color:#70829a;margin:4px 0 22px}.crm-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px;background:#e7eef8;border-radius:13px;margin-bottom:20px}.crm-tabs button{border:0;background:none;padding:10px 0;border-radius:9px;color:#677b97;font-weight:650;cursor:pointer}.crm-tabs button.active{background:#fff;box-shadow:0 2px 5px #183a6a14;color:#1764e8}.crm-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.crm-metric{padding:16px;background:#fff;border:1px solid #e5ebf3;border-radius:16px}.crm-metric b{display:block;font-size:28px;color:#173964;margin-top:7px}.crm-metric small{font-size:12px}.crm-card{background:#fff;border:1px solid #e5ebf3;border-radius:16px;padding:17px;margin:12px 0;overflow-wrap:anywhere}.crm-card h3{font-size:16px;line-height:1.5;margin:0 0 8px}.crm-pill{display:inline-block;font-size:11px;color:#3e6da9;background:#eef4fc;padding:4px 8px;border-radius:6px;margin:3px 5px 3px 0}.crm-pill.warn{color:#a66418;background:#fff4e2}.crm-pill.good{color:#18776c;background:#e7f7f3}.crm-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.crm-btn{border:1px solid #dbe5f2;border-radius:10px;background:#fff;color:#28568d;padding:9px 12px;font-size:13px;cursor:pointer;text-decoration:none;display:inline-block}.crm-btn.primary{background:#1764e8;border-color:#1764e8;color:#fff}.crm-btn:disabled{opacity:.5;cursor:wait}.crm-line{display:flex;justify-content:space-between;gap:16px;font-size:13px;line-height:1.7;margin:5px 0}.crm-line span:first-child{color:#70829a;flex-shrink:0}.crm-line span:last-child{text-align:right}.crm-empty{text-align:center;padding:30px 12px;color:#70829a;font-size:14px}.crm-section{display:flex;justify-content:space-between;align-items:center;margin:24px 0 10px;gap:10px}.crm-section h2{margin:0}.crm-filter{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.crm input,.crm select,.crm textarea{width:100%;min-width:0;font:inherit;font-size:14px;border:1px solid #dce5f1;background:#fff;border-radius:10px;padding:10px;color:#18334f}.crm-search{margin-bottom:8px}.crm-summary{background:#eaf2ff;border-radius:14px;padding:16px;margin:16px 0;color:#25528d;font-size:13px;line-height:1.7}.crm-demo{background:#fff2d9;color:#875719;font-size:12px;line-height:1.5;padding:10px;border-radius:10px;margin:0 0 14px}.crm-item-note{font-size:13px;white-space:pre-wrap;line-height:1.8;color:#415a77}.crm-progress{height:7px;background:#eaf0f8;border-radius:5px;margin:6px 0 13px;overflow:hidden}.crm-progress i{display:block;height:100%;background:#699df3;border-radius:5px}.crm-money{font-size:22px;font-weight:700;color:#23476e}.crm-modal .hint{margin-bottom:12px}.crm-modal .notice{font-size:12px;color:#6d8098;line-height:1.6;padding:10px;background:#f1f5fb;border-radius:8px}.crm-modal label{font-size:13px}.crm-error{border:1px solid #e6c9c3;border-radius:10px;background:#fff4f1;padding:12px;color:#a3422e;font-size:13px;margin:12px 0;white-space:pre-wrap}.crm-audit{font-size:12px;border-left:2px solid #d5e5fa;padding:4px 0 4px 12px;margin:10px 0;line-height:1.7}.crm label{display:block;color:#56708f;font-size:12px;margin:5px 0}.crm button:focus-visible,.crm a:focus-visible{outline:3px solid #91b8ff;outline-offset:2px}

body.crm-active{padding-bottom:0}body.crm-active #app{padding-bottom:0}body.crm-active .tabs{display:none}
.access .crm-card{margin-top:16px}.access form label{display:block;margin:14px 0;color:#31486b;font-size:14px}.access form input,.access form select,.access form textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #dbe4f2;border-radius:10px;padding:12px;margin-top:8px;font:inherit;background:#fff;color:#17345c}.access .access-check{display:flex;gap:10px;align-items:center}.access .access-check input{width:18px;margin:0}.story-card{display:block;text-decoration:none;background:#fff;border:1px solid #e1e8f4;border-radius:18px;overflow:hidden;margin:20px 0;color:#203450}.story-card>img{width:100%;aspect-ratio:4/3;object-fit:cover}.story-card>div{padding:20px}.story-card h2{line-height:1.6;margin:10px 0}.story-card p{font-size:14px;line-height:1.8;color:#62718b}.story-card b{display:block;color:#1764df;font-size:14px;margin-top:16px}.story-detail>img{width:100%;border-radius:16px}.story-detail h2{font-size:24px;line-height:1.6}.story-lead{font-size:16px;line-height:1.8;color:#526986}.story-body{white-space:pre-wrap;line-height:1.9;font-size:16px}.story-thumb{width:100%;border-radius:12px}.access .crm-btn{margin:4px 4px 4px 0}.access h2{margin-top:28px}.access form textarea{resize:vertical}

/* Compact management lists; reading and editing are distinct. */
.crm-line{display:grid!important;grid-template-columns:110px minmax(0,1fr);gap:12px;justify-content:start!important;max-width:850px}.crm-line span:last-child{text-align:left!important}.crm-listbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 10px;font-size:13px;color:#526986}.crm-view-switch{display:flex;gap:4px}.crm-table-wrap{overflow:auto;background:#fff;border:1px solid #dce5f1;border-radius:12px}.crm-table{width:100%;border-collapse:collapse;font-size:13px;min-width:740px;text-align:left}.crm-table th{background:#edf3fb;color:#5b708e;font-size:12px;white-space:nowrap}.crm-table td,.crm-table th{padding:11px 12px;border-bottom:1px solid #e8eef6;vertical-align:middle}.crm-table tr:last-child td{border-bottom:0}.crm-table tbody tr:hover{background:#f7faff}.crm-table strong{display:block;min-width:160px;max-width:300px;line-height:1.5}.crm-table small{display:block;margin-top:4px}.crm-table .crm-btn{padding:6px 9px;white-space:nowrap}.crm-row-actions{display:flex;gap:5px;flex-wrap:wrap;min-width:150px}.crm-ledger-filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.crm-ledger-filter input{flex:1;min-width:160px}.crm-ledger-filter select{width:130px}.crm-ledger-filter button{white-space:nowrap}.crm-modal{max-width:640px;margin:auto}.crm-modal form>label{display:block;margin:16px 0 6px}.crm .crm-card{padding:16px!important}.portal-manage .crm{max-width:1440px;margin:auto}.crm-table .crm-pill{white-space:nowrap}.crm-table .crm-btn.primary{color:#fff}
.date-parts{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:8px 0}.date-parts input{width:68px!important;min-width:0;padding:10px 5px!important;text-align:center;margin:0!important;border:1px solid #dbe4f2;border-radius:8px;font:inherit;background:white}.date-parts input[data-part="0"]{width:88px!important}.date-parts input[type="time"]{width:116px!important}.date-parts span{color:#6c7f99;font-size:12px}.date-parts input:focus{outline:2px solid #96baff}.event-cover{width:100%;max-height:260px;object-fit:cover;border-radius:12px;margin-bottom:16px}.event-cover-preview{width:100%;max-height:200px;object-fit:contain}.crm-form-section{padding:12px;background:#edf3fb;border-radius:8px;margin:16px 0 8px;font-weight:600}

/* Company identity review stays inside the enterprise record. */
.crm-company-people {margin:24px 0;padding:0 0 16px;border-bottom:1px solid #dce6f3}
.crm-company-people .crm-section {margin-top:0}
.crm-company-people .crm-table {min-width:540px}
.crm-company-people .crm-table td {vertical-align:middle}
.crm-company-people .crm-table th:last-child {width:160px}
[data-person-refresh][hidden],[data-person-error][hidden]{display:none!important}
@media(max-width:600px){
 .crm-company-people .crm-table{min-width:0;width:100%}
 .crm-company-people .crm-table thead{display:none}
 .crm-company-people .crm-table tbody{display:block}
 .crm-company-people .crm-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px;border-bottom:1px solid #dce6f3}
 .crm-company-people .crm-table td{display:block;padding:7px;border:0;white-space:normal}
 .crm-company-people .crm-table td:nth-child(1){grid-column:1;grid-row:1}
 .crm-company-people .crm-table td:nth-child(2){grid-column:2;grid-row:1;text-align:right}
 .crm-company-people .crm-table td:nth-child(3){grid-column:1;grid-row:2;align-self:center}
 .crm-company-people .crm-table td:nth-child(4){grid-column:2;grid-row:2;text-align:right}
 .crm-company-people .crm-table small{overflow-wrap:anywhere}
}

.crm-modal .collection-config-row{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:10px;margin:8px 0}.collection-config-row input[type=checkbox]{width:18px;min-height:18px}.crm-table td img{object-fit:cover;border-radius:5px}.crm [data-inbox]{margin-bottom:24px}

.member-column-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;margin:16px 0}.crm-modal .member-column-options label{display:flex;align-items:center;gap:8px;min-height:40px;margin:0;overflow-wrap:anywhere}.crm-modal .member-column-options input{width:18px;height:18px;min-height:18px;flex:none;margin:0}
