/* Appcardio public profile — responsive social profile */
.ac-public-profile{color:#243746}
.ac-public-profile-wrap{max-width:900px;margin:88px auto 64px;padding:0 20px}
.ac-public-profile-header{display:flex;align-items:center;gap:30px;padding:30px 0 28px;}
.ac-public-profile-avatar-wrap{flex:0 0 148px}
.ac-public-profile-avatar{display:block;width:148px;height:148px;border-radius:50%;object-fit:cover;border:4px solid #EEF5F9;background:#F5F8FA}
.ac-public-profile-identity{min-width:0;flex:1}
.ac-public-profile-identity h1{font-size:28px;line-height:1.2;color:#123F61;margin:0 0 5px}
.ac-public-profile-username{font-size:14px;color:#6D7C87;margin-bottom:12px}
.ac-public-profile-bio{font-size:14px;line-height:1.65;margin:0 0 12px;white-space:normal}
.ac-public-profile-stats{font-size:13px;color:#6D7C87}
.ac-public-profile-stats strong{color:#243746}
.ac-profile-edit-link{display:inline-flex;margin-top:13px;padding:8px 13px;border:1px solid #CFDCE4;border-radius:8px;color:#17507B;text-decoration:none;font-size:13px;font-weight:650}
.ac-profile-edit-link:hover{background:#EEF5F9}
.ac-share-composer{margin:24px 0;background:#fff;border:1px solid #DFE7EC;border-radius:14px;padding:22px;box-shadow:0 3px 14px rgba(18,63,97,.035)}
.ac-share-composer-heading h2,.ac-profile-feed-heading h2{font-size:18px;color:#123F61;margin:0 0 5px}
.ac-share-composer-heading p{font-size:13px;color:#6D7C87;margin:0}
.ac-share-tabs{display:flex;gap:6px;border-bottom:1px solid #DFE7EC;margin:18px 0}
.ac-share-tabs button{border:0;background:transparent;padding:11px 16px;color:#6D7C87;font-size:13px;font-weight:650;cursor:pointer;border-bottom:2px solid transparent}
.ac-share-tabs button.is-active{color:#17507B;border-bottom-color:#17507B}
.ac-share-panel[hidden]{display:none}
.ac-share-panel>label,.ac-share-field label{display:block;font-size:13px;font-weight:650;color:#243746;margin:0 0 7px}
.ac-share-panel textarea,.ac-share-field input,.ac-share-panel input[type=text],.ac-share-panel input[type=url],.ac-share-field textarea{width:100%;box-sizing:border-box;border:1px solid #CFDCE4;border-radius:8px;padding:11px 12px;font:inherit;font-size:14px;color:#243746;background:#fff;outline:none}
.ac-share-panel textarea:focus,.ac-share-field input:focus,.ac-share-field textarea:focus{border-color:#17507B;box-shadow:0 0 0 3px rgba(23,80,123,.1)}
.ac-share-panel textarea{resize:vertical;min-height:120px}
.ac-share-field{min-width:0}
.ac-share-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}
.ac-share-field-full{grid-column:1/-1}
.ac-share-field label span{font-size:11px;font-weight:400;color:#8997A0;margin-left:5px}
.ac-share-field small{display:block;color:#7A8992;font-size:11px;margin-top:6px}
.ac-share-upload{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:145px;border:1px dashed #B8C9D4;border-radius:10px;background:#F8FAFB;text-align:center;cursor:pointer;color:#17507B!important}
.ac-share-upload-icon{font-size:26px;line-height:1;color:#17507B}
.ac-share-upload small{font-size:11px;color:#7A8992;font-weight:400}
.ac-share-image-preview{margin-top:12px}
.ac-share-image-preview img{display:block;max-width:100%;max-height:340px;object-fit:contain;border-radius:9px}
.ac-share-image-preview button{margin-top:8px;border:0;background:transparent;color:#B33B35;font-size:12px;cursor:pointer}
.ac-share-selected-file{font-size:12px;color:#17507B;margin:8px 0 14px}
.ac-share-tags-field{margin-top:18px}
.ac-share-form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px;padding-top:16px;border-top:1px solid #E8EEF2}
.ac-share-visibility{display:flex;align-items:center;gap:14px;min-width:0}
.ac-share-visibility>span{display:flex;flex-direction:column;gap:3px}
.ac-share-visibility strong{font-size:13px;color:#243746}
.ac-share-visibility small{font-size:11px;color:#7A8992;max-width:390px;line-height:1.4}
.ac-share-visibility select{border:1px solid #CFDCE4;border-radius:8px;padding:9px 30px 9px 10px;background:#fff;color:#243746;font:inherit;font-size:13px}
.ac-share-publish{border:0;border-radius:8px;background:#17507B;color:#fff;padding:11px 22px;font-size:13px;font-weight:650;cursor:pointer;white-space:nowrap}
.ac-share-publish:hover{background:#123F61}
.ac-share-publish:disabled{opacity:.55;cursor:wait}
.ac-profile-feed{margin-top:30px}
.ac-profile-feed-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.ac-profile-feed-heading span{font-size:11px;color:#7A8992}
.ac-share-list{display:grid;gap:15px}
.ac-share-card{background:#fff;border:1px solid #DFE7EC;border-radius:13px;padding:18px;box-shadow:0 2px 10px rgba(18,63,97,.025)}
.ac-share-card-header{display:flex;align-items:center;gap:10px;margin-bottom:13px}
.ac-share-card-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#F1F5F7}
.ac-share-card-author{display:flex;flex-direction:column;gap:3px;min-width:0}
.ac-share-card-author strong{font-size:13px;color:#243746}
.ac-share-card-author span{font-size:11px;color:#7A8992}
.ac-share-private-badge{margin-left:auto;background:#FFF5E6;color:#95651B;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700}
.ac-share-card-text{font-size:14px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
.ac-share-card-title{font-size:16px;color:#123F61;margin:0 0 12px}
.ac-share-card-image{display:block;width:100%;max-height:620px;object-fit:contain;border-radius:9px;background:#F5F8FA}
.ac-share-card-description{font-size:13px;line-height:1.6;color:#425563;margin:12px 0 0}
.ac-share-source{display:inline-block;margin-top:9px;font-size:12px;color:#17507B}
.ac-share-file-card{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #DFE7EC;border-radius:9px;background:#F8FAFB;text-decoration:none;color:#243746}
.ac-share-file-icon{display:grid;place-items:center;flex:0 0 42px;height:48px;border-radius:7px;background:#EAF2F7;color:#17507B;font-size:10px;font-weight:800}
.ac-share-file-card>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}
.ac-share-file-card strong{font-size:13px;overflow-wrap:anywhere}
.ac-share-file-card small{font-size:11px;color:#7A8992}
.ac-share-file-arrow{margin-left:auto;color:#17507B}
.ac-share-card-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.ac-share-card-tags span{font-size:11px;color:#17507B;background:#EEF5F9;border-radius:20px;padding:5px 9px}
.ac-share-card-footer{border-top:1px solid #EEF1F3;margin-top:14px;padding-top:10px;color:#8997A0;font-size:11px}
.ac-profile-empty{text-align:center;padding:48px 20px;border:1px dashed #CFDCE4;border-radius:13px;background:#FAFCFD}
.ac-profile-empty-icon{font-size:26px;color:#8AA7B9}
.ac-profile-empty h3{font-size:16px;color:#123F61;margin:10px 0 5px}
.ac-profile-empty p{font-size:13px;color:#7A8992;margin:0}
.ac-share-notice{padding:12px 14px;border-radius:8px;margin:18px 0;font-size:13px}
.ac-share-notice.success{background:#EDF8F1;border:1px solid #BDE5CB;color:#176B3A}
.ac-share-notice.error{background:#FFF1F0;border:1px solid #F2C7C3;color:#A52A22}
@media(max-width:640px){
 .ac-public-profile-wrap{margin:80px auto 40px;padding:0 14px}
 .ac-public-profile-header{align-items:flex-start;gap:17px;padding:20px 0}
 .ac-public-profile-avatar-wrap{flex-basis:88px}
 .ac-public-profile-avatar{width:88px;height:88px;border-width:3px}
 .ac-public-profile-identity h1{font-size:22px}
 .ac-public-profile-bio{font-size:13px}
 .ac-share-composer{padding:16px;border-radius:11px}
 .ac-share-tabs button{padding:10px 12px}
 .ac-share-fields{grid-template-columns:1fr;gap:12px}
 .ac-share-field-full{grid-column:auto}
 .ac-share-form-footer{align-items:stretch;flex-direction:column}
 .ac-share-visibility{justify-content:space-between;align-items:flex-start}
 .ac-share-publish{width:100%}
 .ac-share-card{padding:14px}
}

/* Profile share action */
.ac-profile-header-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:13px}
.ac-profile-header-actions .ac-profile-edit-link{margin-top:0}
.ac-profile-share-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #CFDCE4;border-radius:8px;padding:8px 13px;background:#fff;color:#17507B;font-size:13px;font-weight:650;cursor:pointer}
.ac-profile-share-button:hover{background:#EEF5F9}
/* Tags are clean clickable labels without hash symbols */
.ac-share-card-tags a{display:inline-flex;text-decoration:none;font-size:11px;color:#17507B;background:#EEF5F9;border-radius:20px;padding:5px 9px}
.ac-share-card-tags a:hover{background:#DDECF5;text-decoration:underline}
/* Free-ratio crop modal */
.ac-post-crop-modal{display:none;position:fixed;inset:0;z-index:1000000;background:rgba(8,24,39,.78);padding:18px;align-items:center;justify-content:center}
.ac-post-crop-modal.is-open{display:flex}
.ac-post-crop-dialog{width:min(100%,760px);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:15px;padding:20px;box-shadow:0 20px 70px rgba(0,0,0,.3)}
.ac-post-crop-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}
.ac-post-crop-heading h3{margin:0 0 5px;color:#123F61;font-size:19px}
.ac-post-crop-heading p{margin:0;color:#6D7C87;font-size:12px}
#ac-post-crop-close{border:0;border-radius:50%;width:34px;height:34px;background:#F1F5F7;color:#425563;font-size:24px;cursor:pointer}
.ac-post-crop-stage{height:min(58vh,520px);min-height:260px;background:#101820;overflow:hidden}
.ac-post-crop-stage img{display:block;max-width:100%;max-height:100%}
.ac-post-crop-actions{display:flex;align-items:center;gap:9px;margin-top:15px}
.ac-post-crop-actions span{flex:1}
.ac-post-crop-actions button{border:1px solid #CFDCE4;border-radius:8px;background:#F5F8FA;color:#17507B;padding:10px 14px;font-size:13px;font-weight:650;cursor:pointer}
#ac-post-crop-apply{background:#17507B;border-color:#17507B;color:#fff}
#ac-post-crop-apply:disabled{opacity:.6;cursor:wait}
body.ac-post-crop-open{overflow:hidden}
/* Scribd-inspired document viewer */
.ac-scribd-document{border:1px solid #DFE7EC;border-radius:11px;overflow:hidden;background:#fff}
.ac-scribd-document-top{display:flex;align-items:center;gap:12px;padding:14px;background:#F8FAFB}
.ac-scribd-document-icon{display:grid;place-items:center;flex:0 0 46px;height:54px;border-radius:7px;background:#EAF2F7;color:#17507B;font-size:10px;font-weight:800;letter-spacing:.04em}
.ac-scribd-document-info{min-width:0;flex:1}
.ac-scribd-document-info h3{font-size:14px;line-height:1.4;color:#243746;margin:0 0 4px;overflow-wrap:anywhere}
.ac-scribd-document-info p{font-size:11px;color:#7A8992;margin:0}
.ac-scribd-open{font-size:12px;font-weight:650;color:#17507B;text-decoration:none;white-space:nowrap}
.ac-scribd-preview{height:520px;background:#E9EDF0;border-top:1px solid #DFE7EC}
.ac-scribd-preview iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.ac-scribd-office-preview{display:flex;justify-content:center;align-items:center;min-height:360px;padding:24px;background:#E9EDF0;border-top:1px solid #DFE7EC}
.ac-scribd-paper{position:relative;display:flex;flex-direction:column;gap:10px;width:min(100%,420px);min-height:270px;padding:35px 30px;background:#fff;box-shadow:0 3px 16px rgba(20,40,55,.12);overflow:hidden}
.ac-scribd-paper-lines{height:80px;margin-bottom:8px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 11px,#E7EDF1 12px,#E7EDF1 13px)}
.ac-scribd-paper strong{font-size:15px;color:#243746;overflow-wrap:anywhere}
.ac-scribd-paper span{font-size:11px;color:#17507B;font-weight:700}
.ac-scribd-paper p{font-size:12px;line-height:1.5;color:#7A8992;margin:4px 0 0}
.ac-scribd-document-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-top:1px solid #DFE7EC;font-size:11px;color:#7A8992}
.ac-scribd-document-footer a{color:#17507B;font-weight:650;text-decoration:none}
.ac-tag-archive-header{padding:24px 0;border-bottom:1px solid #DFE7EC;margin-bottom:20px}
.ac-tag-archive-header>a{font-size:12px;color:#17507B;text-decoration:none}
.ac-tag-archive-header h1{font-size:28px;color:#123F61;margin:12px 0 5px}
.ac-tag-archive-header p{font-size:13px;color:#6D7C87;margin:0}
@media(max-width:640px){
 .ac-profile-header-actions{gap:7px}
 .ac-post-crop-modal{padding:8px}
 .ac-post-crop-dialog{padding:14px;border-radius:11px;max-height:calc(100vh - 16px)}
 .ac-post-crop-stage{height:50vh;min-height:220px}
 .ac-post-crop-actions{gap:6px}
 .ac-post-crop-actions button{padding:9px 10px;font-size:12px}
 .ac-scribd-preview{height:420px}
 .ac-scribd-office-preview{min-height:300px;padding:15px}
 .ac-scribd-document-top{gap:9px;padding:11px}
}


/* Profile feed synced with CardioHub CPT */
.ac-profile-cardiohub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.ac-profile-cardiohub-item{min-width:0;overflow:hidden;background:#fff;border:1px solid #DFE7EC;border-radius:13px;box-shadow:0 2px 10px rgba(18,63,97,.035)}
.ac-profile-cardiohub-image-link{display:block;background:#F5F8FA}
.ac-profile-cardiohub-image-link img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover}
.ac-profile-cardiohub-image-caption{padding:12px 15px 0}
.ac-profile-cardiohub-image-caption h3{margin:0;color:#123F61;font-size:15px;line-height:1.4}
.ac-profile-cardiohub-note{padding:20px;min-height:180px}
.ac-profile-cardiohub-kind{display:block;margin-bottom:12px;color:#17507B;font-size:10px;font-weight:800;letter-spacing:.1em}
.ac-profile-cardiohub-note h3{margin:0 0 10px;color:#123F61;font-size:17px;line-height:1.35}
.ac-profile-cardiohub-note>div{color:#425563;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.ac-profile-cardiohub-note p{color:#7A8992;font-size:12px}
.ac-profile-cardiohub-tags{display:flex;flex-wrap:wrap;gap:6px;padding:12px 14px 0}
.ac-profile-cardiohub-tags a{display:inline-flex;padding:4px 8px;border-radius:20px;background:#EEF5F9;color:#17507B;font-size:10px;text-decoration:none}
.ac-profile-cardiohub-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 14px 0;padding:10px 0 12px;border-top:1px solid #EEF1F3;color:#8997A0;font-size:10px}
.ac-profile-cardiohub-footer .ac-share-private-badge{margin-left:auto}
@media(max-width:640px){.ac-profile-cardiohub-grid{grid-template-columns:1fr;gap:13px}.ac-profile-cardiohub-note{min-height:0}}
