.ark-crm-wrap .ark-crm-cards{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin:18px 0 22px}
.ark-crm-wrap .ark-card,.ark-panel{background:#fff;border:1px solid #dcdfe4;border-radius:14px;padding:18px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.ark-crm-wrap .ark-card strong{display:block;font-size:28px;line-height:1.1;margin-bottom:6px}
.ark-crm-wrap .ark-card span{color:#59636e}
.ark-search-form .ark-grid{display:grid;grid-template-columns:minmax(220px,2fr) repeat(4,minmax(110px,1fr)) minmax(110px,auto);gap:10px;align-items:center}
.ark-search-form input[type=text]{width:100%;min-height:44px;border:1px solid #ccd2d8;border-radius:10px;padding:0 12px;background:#fff}
.ark-theme-search{min-height:44px;padding:0 18px}
.ark-results-note{margin:14px 0;color:#59636e}
.ark-table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid #dcdfe4;border-radius:12px;background:#fff;-webkit-overflow-scrolling:touch}
.ark-results-table{width:100%;min-width:0;margin:0;border:none;table-layout:fixed;border-collapse:collapse}
.ark-results-table td,.ark-results-table th{vertical-align:top;padding:8px 6px;font-size:clamp(11px,.78vw,14px);line-height:1.45;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.ark-results-table th:nth-child(1),.ark-results-table td:nth-child(1){width:5%}
.ark-results-table th:nth-child(2),.ark-results-table td:nth-child(2){width:22%}
.ark-results-table th:nth-child(3),.ark-results-table td:nth-child(3){width:9%}
.ark-results-table th:nth-child(4),.ark-results-table td:nth-child(4){width:9%}
.ark-results-table th:nth-child(5),.ark-results-table td:nth-child(5){width:10%}
.ark-results-table th:nth-child(6),.ark-results-table td:nth-child(6){width:8%}
.ark-results-table th:nth-child(7),.ark-results-table td:nth-child(7){width:10%}
.ark-results-table th:nth-child(8),.ark-results-table td:nth-child(8){width:5%}
.ark-results-table th:nth-child(9),.ark-results-table td:nth-child(9){width:7%}
.ark-results-table th:nth-child(10),.ark-results-table td:nth-child(10){width:8%}
.ark-results-table th:nth-child(11),.ark-results-table td:nth-child(11){width:7%}
.ark-investors-crm-shell.is-front .button{min-height:42px}
.ark-empty-state{margin-top:16px;text-align:center}
.ark-wa-btn{display:inline-flex;align-items:center;justify-content:center;background:#25D366;color:#fff;padding:6px 9px;border-radius:7px;font-size:clamp(11px,.75vw,13px);text-decoration:none;font-weight:600;margin:0 4px 6px 0;max-width:100%;white-space:normal;text-align:center}
.ark-wa-btn:hover{background:#1ebe5d;color:#fff}
.ark-dup-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.2;margin-top:6px}
.ark-dup-badge{background:#fff3cd;color:#946200}
.ark-copy-investor{cursor:pointer}
.ark-copy-investor:hover{text-decoration:underline}
.ark-modal[hidden]{display:none!important}
.ark-modal{position:fixed;inset:0;z-index:99999}
.ark-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.ark-modal-card{position:relative;max-width:760px;margin:5vh auto;background:#fff;border-radius:16px;padding:20px;box-shadow:0 20px 70px rgba(0,0,0,.2);max-height:88vh;overflow:auto}
.ark-modal-close{position:absolute;right:12px;top:10px;background:transparent;border:none;font-size:28px;line-height:1;cursor:pointer}
.ark-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px 20px;margin:16px 0}
.ark-detail-item strong{display:block;font-size:12px;color:#59636e;margin-bottom:4px;text-transform:uppercase}
.ark-detail-item span,.ark-detail-item div{font-size:14px}
.ark-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 18px}
.ark-detail-actions .ark-wa-btn{margin:0}
.ark-detail-form label{display:block;font-weight:600;margin:14px 0 6px}
.ark-detail-form textarea,.ark-detail-form select,.ark-detail-form input[type=date]{width:100%;border:1px solid #ccd2d8;border-radius:10px;padding:10px 12px;background:#fff}
.ark-detail-form textarea{min-height:110px}
.ark-status-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ark-save-feedback{margin-top:10px;font-weight:600}
.ark-loading{opacity:.6;pointer-events:none}
@media (max-width: 1100px){
  .ark-crm-wrap .ark-crm-cards{grid-template-columns:repeat(2,minmax(180px,1fr))}
}
@media (max-width: 900px){
  .ark-crm-wrap .ark-crm-cards,.ark-search-form .ark-grid,.ark-detail-grid,.ark-status-row{grid-template-columns:1fr}
  .ark-modal-card{margin:2vh 12px;padding:18px}
}


.ark-investors-crm-shell .ark-crm-cards{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:16px;margin:0 0 22px}
.ark-investors-crm-shell .ark-card{background:#fff;border:1px solid #dcdfe4;border-radius:14px;padding:18px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.ark-investors-crm-shell .ark-card strong{display:block;font-size:28px;line-height:1.1;margin-bottom:6px}
.ark-investors-crm-shell .ark-card span{color:#59636e}
.ark-access-list{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:12px}
.ark-access-item{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid #dcdfe4;border-radius:12px;padding:12px}
.ark-access-item input{margin-top:3px}
@media (max-width: 900px){
  .ark-investors-crm-shell .ark-crm-cards,.ark-access-list{grid-template-columns:1fr}
}


.ark-search-results{position:relative}
.ark-search-results.ark-is-loading{opacity:.6;pointer-events:none}
.ark-theme-search{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:120px}
.ark-search-spinner{display:none;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:999px;animation:arkcrmspin .7s linear infinite}
.ark-searching .ark-search-spinner{display:inline-block}
.ark-pagination{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:16px 0 0}
.ark-page-link{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid #ccd2d8;border-radius:10px;background:#fff;color:#101828;font-weight:600;cursor:pointer}
.ark-page-link:hover{background:#f8fafc}
.ark-page-link.is-active{background:#101828;border-color:#101828;color:#fff}
.ark-page-dots{padding:0 4px;color:#59636e;font-weight:700}
@keyframes arkcrmspin{to{transform:rotate(360deg)}}

.ark-wa-btn.is-approached{background:#dc2626}
.ark-wa-btn.is-approached:hover{background:#b91c1c;color:#fff}
.ark-log-badge{display:inline-flex;align-items:center;justify-content:center;min-width:82px;padding:6px 10px;border-radius:999px;background:#f3f4f6;color:#111827;font-size:12px;font-weight:700;white-space:nowrap}


/* v1.1.9 responsive table refinements */
.ark-investors-crm-shell{max-width:100%;overflow:hidden}
.ark-log-badge{min-width:0;max-width:100%;white-space:normal;text-align:center;overflow-wrap:anywhere}
@media (max-width: 1200px){
  .ark-results-table td,.ark-results-table th{padding:7px 5px;font-size:11px}
  .ark-wa-btn{padding:5px 7px}
}
@media (max-width: 900px){
  .ark-results-table{min-width:980px;table-layout:auto}
  .ark-results-table td,.ark-results-table th{font-size:12px}
}


/* v1.0.2 clean full-width investors CRM */
.ark-investors-crm-shell,
.ark-investors-crm-shell.is-front,
.ark-investors-crm-shell.is-admin{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 12px !important;
  box-sizing:border-box !important;
}
.ark-investors-crm-shell .ark-crm-cards,
.ark-investors-crm-shell .ark-front-cards,
.ark-investors-crm-shell .ark-card{
  display:none !important;
}
.ark-investors-crm-shell .ark-search-form{
  width:100% !important;
  max-width:100% !important;
  margin:0 0 12px 0 !important;
}
.ark-investors-crm-shell .ark-grid{
  display:grid !important;
  grid-template-columns:minmax(320px,1fr) minmax(180px,240px) 140px !important;
  gap:12px !important;
  width:100% !important;
}
.ark-investors-crm-shell .ark-search-results,
.ark-investors-crm-shell .ark-table-wrap{
  width:100% !important;
  max-width:100% !important;
}
.ark-results-table{
  width:100% !important;
  min-width:100% !important;
}
@media (max-width: 760px){
  .ark-investors-crm-shell .ark-grid{
    grid-template-columns:1fr !important;
  }
}

.ark-export-actions{margin:12px 0 16px;display:flex;gap:10px;align-items:center;justify-content:flex-end;width:100%;}
.ark-export-xml-btn{border:1px solid #111!important;background:#111!important;color:#fff!important;border-radius:8px!important;padding:8px 14px!important;text-decoration:none!important;}
