/* Scoped refinements for approved social cards and posting preview. */
.thp-profile{background:#fff;box-shadow:0 6px 18px #0b349014}.thp-profile:before{height:105px;background:radial-gradient(ellipse at 95% 0,#55db80,transparent 58%),linear-gradient(120deg,#0b3490,#008e8a)}.thp-profile-avatar .thp-avatar{border:4px solid #fff}.thp-demo-verified{position:absolute;right:-3px;bottom:0;color:#00a53f;background:#fff;border:2px solid #fff;border-radius:50%;font-size:25px;line-height:1}.thp-name-check{color:#0b55dc;font-size:16px}.thp-my-account a{display:flex;align-items:center;gap:10px;padding:13px;color:#0b3490;font-weight:700}.thp-my-account a i:first-child{color:#008a43;background:#e4f8ed;padding:8px;border-radius:10px}.thp-my-account a i:last-child{margin-left:auto}.thp-stories-refined,.thp-preview-composer,.thp-announcements{box-shadow:0 6px 18px #0b349010}.thp-stories-refined .thp-stories{margin-top:10px}.thp-stories-refined .thp-story-ring{background:linear-gradient(145deg,#0b3490,#00a53f);box-shadow:0 3px 9px #0b349022}.thp-preview-composer .thp-composer-label{font-size:13px}.thp-preview-composer .thp-compose-prompt{flex:1;text-align:left;min-width:0;background:linear-gradient(110deg,#f2f6fb,#e8eef8);border-radius:999px;padding:13px 16px;color:#455d7a;font-weight:500;min-height:46px}.thp-preview-composer .thp-composer-tools>button{min-height:44px;font-weight:700}.thp-preview-composer .thp-composer-tools>button:nth-child(1){color:#087b30;background:#e0f8e7}.thp-preview-composer .thp-composer-tools>button:nth-child(2){color:#0b3490;background:#e5efff}.thp-preview-composer .thp-composer-tools>button:nth-child(3){color:#7033ba;background:#f1e6ff}.thp-announcements h2{background:linear-gradient(110deg,#910c00,#bd2019)}.thp-announcement .thp-ann-new{display:inline-block;background:#00863a;color:#fff;border-radius:20px;padding:2px 8px;font-style:normal;font-size:10px;margin:4px 0}.thp-announcements .thp-soft{background:linear-gradient(120deg,#fff0ef,#fbd9d7);font-weight:700}
body.thp-preview-open{overflow:hidden}#thp-post-preview{border:0;padding:0;width:min(1120px,94vw);max-width:none;max-height:92dvh;position:fixed;inset:0;margin:auto;border-radius:26px;background:#fff;color:#10213f;box-shadow:0 24px 75px #081b4b55;font-family:Inter,sans-serif;overflow:hidden}#thp-post-preview::backdrop{background:#10264c77;backdrop-filter:blur(3px)}#thp-post-preview:not([open]){display:none}#thp-post-preview [hidden]{display:none!important}.thp-wizard{display:grid;grid-template-columns:23% 1fr;max-height:92dvh;min-height:min(620px,85dvh)}.thp-wizard-aside{background:radial-gradient(ellipse at 0 0,#40d6c5,transparent 38%),linear-gradient(135deg,#0b3490,#00327e 55%,#008d78);color:white;padding:32px 24px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.thp-wizard-aside:after{content:'';position:absolute;bottom:-35px;left:-20%;width:145%;height:80px;background:linear-gradient(100deg,#2369df,#04bc54,#73e5e3);border-radius:50% 65% 0 0;transform:rotate(8deg)}.thp-wizard-art{position:relative;width:140px;height:145px;margin:0 auto 25px;display:grid;place-items:center}.thp-wizard-art i:first-child{font-size:86px;color:#e5f2ff;transform:rotate(-18deg);filter:drop-shadow(0 8px 7px #071e5d55)}.thp-wizard-art i:nth-child(2){position:absolute;bottom:0;left:18px;color:#8cbbff;background:#fff;padding:7px;border-radius:12px;font-size:44px;transform:rotate(-8deg)}.thp-wizard-art i:last-child{position:absolute;bottom:0;right:0;font-size:36px;color:#37ef60;background:#fff;border-radius:50%;line-height:1}.thp-wizard-aside h2{font-family:'Roboto Slab',serif;font-size:21px;line-height:1.3;margin:0 0 20px}.thp-wizard-aside p{font-size:14px;margin:7px 0}.thp-wizard-aside p i{color:#66f78e;margin-right:5px}.thp-wizard-main{padding:25px 28px;overflow-y:auto;overscroll-behavior:contain;min-width:0}.thp-wizard-header{display:flex;align-items:center;gap:13px}.thp-wizard-header h2,.thp-wizard-main h3{font-family:'Roboto Slab',serif;color:#0b245d;font-size:22px;font-weight:700;margin:0}.thp-wizard-header p,.thp-wizard-main section>p{font-size:13px;color:#50647f;margin:5px 0 0}.thp-wizard-icon{display:grid;place-items:center;width:49px;height:49px;flex:none;border-radius:50%;background:linear-gradient(135deg,#00b5a6,#008b60);color:#fff;font-size:23px}.thp-wizard-header button{margin-left:auto;align-self:flex-start;background:#edf2fa;color:#0b3490;border-radius:50%;width:38px;height:38px;flex:none}.thp-wizard-steps{display:flex;justify-content:space-between;gap:10px;list-style:none;padding:0;margin:26px 0}.thp-wizard-steps li{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#71839a;flex:1}.thp-wizard-steps li:not(:last-child):after{content:'';height:1px;background:#cbd8e9;flex:1}.thp-wizard-steps b{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#8da1bb;color:white;flex:none}.thp-wizard-steps .is-active{color:#0b3490}.thp-wizard-steps .is-active b{background:#0b3490}.thp-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.thp-category-choice{position:relative;display:flex;align-items:center;gap:10px;min-height:100px;padding:12px;border:1px solid color-mix(in srgb,var(--choice) 17%,white);border-radius:13px;background:var(--choice-bg);cursor:pointer}.thp-category-choice input{position:absolute;opacity:0;width:1px;height:1px}.thp-category-choice:has(input:checked){outline:2px solid var(--choice);outline-offset:-2px}.thp-category-choice:focus-within{box-shadow:0 0 0 3px #0b34904a}.thp-category-icon{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--choice);color:white;font-size:20px;box-shadow:0 4px 10px color-mix(in srgb,var(--choice) 30%,transparent)}.thp-category-choice strong,.thp-category-choice small{display:block}.thp-category-choice strong{font-size:13px;color:#10234e;line-height:1.3}.thp-category-choice small{font-size:11px;line-height:1.4;margin-top:4px}.thp-category-check{display:none;position:absolute;right:4px;top:3px;color:var(--choice)}.thp-category-choice:has(input:checked) .thp-category-check{display:block}.thp-wizard-tip{display:flex;gap:8px;align-items:center;background:#e9f2ff;color:#0b3490!important;border-radius:12px;padding:12px;font-size:12px!important;margin:15px 0!important}.thp-wizard-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.thp-wizard-actions button{padding:12px 23px;border-radius:13px;font-weight:700;min-height:44px;border:1px solid #c8d5e8;color:#0b3490;background:#fff}.thp-wizard-actions .thp-wizard-next{background:linear-gradient(110deg,#0b3490,#00a53f);color:#fff;border:0;min-width:145px}.thp-fields{display:grid;gap:12px;margin-top:18px}.thp-fields label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#18365f}.thp-fields input:not([type=file]),.thp-fields textarea{width:100%;border:1px solid #ccd9ed;border-radius:10px;background:#f8faff;padding:10px 12px;color:#10213f;font:inherit}.thp-fields [data-category-fields],.thp-fields [data-kind-fields]{display:grid;gap:12px}.thp-fields .thp-upload{border:2px dashed #b8cce7;border-radius:14px;padding:14px;background:#eff7ff}.thp-upload i{font-size:25px;color:#008a43}.thp-upload small{font-weight:400}.thp-upload input{max-width:100%}.thp-preview-review{display:grid;gap:12px;margin-top:18px;background:#f3f7fd;padding:18px;border-radius:14px}.thp-preview-review p{white-space:pre-wrap;overflow-wrap:anywhere}.thp-preview-review strong{color:#0b3490;font-size:12px}.thp-preview-review div{border-bottom:1px solid #dce5f1;padding-bottom:8px}#thp-preview-error{background:#fce8e6;color:#910c00;padding:10px;border-radius:8px;font-size:13px;margin-top:10px}#thp-file-list{font-size:12px;overflow-wrap:anywhere}
@media(max-width:900px){#thp-post-preview{width:min(96vw,650px);max-height:94dvh;border-radius:20px}.thp-wizard{display:block;max-height:94dvh;overflow-y:auto;min-height:0}.thp-wizard-aside{display:none}.thp-wizard-main{padding:18px;overflow:visible}.thp-wizard-steps{margin:20px 0}.thp-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.thp-category-choice{padding:10px;min-height:94px}.thp-wizard-header h2{font-size:19px}.thp-wizard-header p{font-size:11px}.thp-wizard-actions{position:sticky;bottom:0;background:#fff;padding:10px 0 3px}.thp-preview-composer .thp-composer-tools>button{font-size:10px}.thp-preview-composer .thp-compose-prompt{font-size:13px}}
@media(max-width:400px){.thp-category-icon{width:32px;height:32px;font-size:15px}.thp-category-choice{gap:6px}.thp-category-choice small{font-size:10px}.thp-wizard-steps li{font-size:10px;gap:4px}.thp-wizard-steps b{width:23px;height:23px}.thp-wizard-main{padding:13px}}

/* Modal viewport containment: only step content scrolls; controls stay visible. */
#thp-post-preview{height:min(780px,92vh);height:min(780px,92dvh);max-height:92vh;max-height:92dvh;overflow:hidden;box-sizing:border-box}
#thp-post-preview .thp-wizard{height:100%;min-height:0;max-height:none;grid-template-rows:minmax(0,1fr);overflow:hidden}
#thp-post-preview .thp-wizard-main{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-bottom:0}
#thp-post-preview .thp-wizard-header,#thp-post-preview .thp-wizard-steps{flex:none}
#thp-preview-form{display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0;overflow:hidden}
#thp-post-preview .thp-wizard-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a8bedb #f0f5fc;padding:3px 8px 12px 3px;scroll-padding:12px}
#thp-post-preview .thp-wizard-scroll::-webkit-scrollbar{width:7px}
#thp-post-preview .thp-wizard-scroll::-webkit-scrollbar-thumb{background:#a8bedb;border-radius:10px}
#thp-post-preview .thp-wizard-actions{position:relative;bottom:auto;flex:none;margin:0;padding:14px 0 max(16px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e2eaf5;box-shadow:0 -8px 18px -14px #0b349055;z-index:1}
@media(max-width:900px){#thp-post-preview{height:min(780px,94vh);height:min(780px,94dvh);max-height:94vh;max-height:94dvh}#thp-post-preview .thp-wizard{display:flex;flex-direction:column}#thp-post-preview .thp-wizard-main{flex:1 1 0}#thp-post-preview .thp-wizard-actions{padding-top:10px}#thp-post-preview .thp-wizard-actions button{min-width:0;flex:1}}
@media(max-height:500px){#thp-post-preview .thp-wizard-main{padding-top:10px}#thp-post-preview .thp-wizard-steps{margin:8px 0}#thp-post-preview .thp-wizard-header p{display:none}#thp-post-preview .thp-wizard-actions{padding:8px 0}#thp-post-preview .thp-wizard-aside{padding:12px}#thp-post-preview .thp-wizard-art{display:none}}

/* Avatar activity indicator, independent of identity verification. */
.thp-profile-avatar > span.thp-presence:not(.thp-avatar){position:absolute;right:-3px;bottom:1px;width:28px;height:28px;border:3px solid #fff;border-radius:50%;display:grid;place-items:center;color:#fff;box-shadow:0 2px 6px #09275d30;font-size:12px;line-height:1;z-index:2;background:#64748b}
.thp-profile-avatar > span.thp-presence--online:not(.thp-avatar){background:#008c3d}
.thp-profile-avatar > span.thp-presence--away:not(.thp-avatar){background:#b46b08}
.thp-profile-avatar > span.thp-presence--offline:not(.thp-avatar){background:#64748b}
.thp-profile-avatar > span.thp-presence--unknown:not(.thp-avatar){background:#64748b}
.thp-presence--online i{font-size:9px}

/* Profile card refresh, isolated from all other feed and wizard components. */
.thp-profile.thp-profile-v2{position:relative;isolation:isolate;overflow:hidden;padding:14px;background:linear-gradient(150deg,#fff 55%,#f5f9ff);border:1px solid #e2ebf7;border-radius:19px;box-shadow:0 8px 22px #0b349018;container-type:inline-size;text-align:left}
.thp-profile.thp-profile-v2:before{content:none}
.thp-profile-v2 .thp-profile-cover{position:absolute;inset:0 0 auto;height:135px;z-index:-1;pointer-events:none}
.thp-profile-cover svg{width:100%;height:100%;display:block}
.thp-profile-cover>i{position:absolute;right:10px;top:45px;color:#fff;font-size:24px;opacity:.9}
.thp-profile-brand{display:block;width:145px;max-width:65%;margin:0 0 21px;position:relative}
.thp-profile-brand img{display:block;max-width:100%;width:auto;height:29px;object-fit:contain;object-position:left}
.thp-profile-v2 .thp-profile-identity{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;text-align:center}
.thp-profile-v2 .thp-profile-avatar{position:relative;display:block;width:88px;height:88px;flex:0 0 88px;margin:0;isolation:isolate}
.thp-profile-v2 .thp-profile-avatar .thp-avatar{width:88px;height:88px;border:4px solid #fff;border-radius:50%;box-shadow:0 4px 12px #0b349025;object-fit:cover}
.thp-profile-v2 .thp-profile-avatar .thp-initials{display:grid;place-items:center;background:linear-gradient(135deg,#0b3490,#008a78);font-size:27px;font-weight:800;color:white}
.thp-profile-v2 .thp-profile-avatar .thp-profile-photo{position:absolute;inset:0;display:block}
.thp-profile-v2 .thp-profile-avatar .thp-profile-photo[hidden]{display:none!important}
.thp-profile-v2 .thp-profile-avatar > span.thp-presence:not(.thp-avatar){width:23px;height:23px;right:0;bottom:0;border:3px solid white}
.thp-profile-v2 .thp-profile-details{min-width:0;flex:1 1 100%;padding:0 2px}
.thp-profile-v2 h2{font-family:'Roboto Slab',serif;font-size:18px;font-weight:700;line-height:1.28;color:#0b245d;overflow-wrap:anywhere;margin:0}
.thp-profile-v2 .thp-profile-details p{font-size:12px;color:#52647b;margin:4px 0 8px;line-height:1.4}
.thp-profile-v2 .thp-profile-status{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;max-width:100%;border-radius:999px;padding:5px 9px;background:#edf1f6;color:#52647b;font-size:10px;line-height:1.3}
.thp-profile-status>span{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.thp-profile-v2 .thp-profile-status--online{background:#dff8e5;color:#007b2e}
.thp-profile-v2 .thp-profile-status--away{background:#fff1d6;color:#925400}
.thp-profile-status small{font-size:10px;color:inherit;border-left:1px solid currentColor;padding-left:5px}
.thp-profile-v2 .thp-profile-stats{background:linear-gradient(120deg,#f0f5ff,#eaf0f9);border-radius:13px;margin:14px 0 12px;padding:10px 2px;text-align:center}
.thp-profile-v2 .thp-profile-stats strong{color:#0b3490;font-size:19px;line-height:1.3}
.thp-profile-v2 .thp-profile-stats small{color:#52647b;font-size:10px;line-height:1.5}
.thp-profile-v2 .thp-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:12px;background:linear-gradient(110deg,#0757cd,#0b3490);color:#fff;font-weight:700;box-shadow:0 4px 10px #0b349026}
.thp-profile-v2 .thp-button:focus-visible,.thp-profile-brand:focus-visible{outline:3px solid #00a53f;outline-offset:3px}
@container (min-width: 320px){.thp-profile-v2 .thp-profile-identity{justify-content:flex-start;text-align:left;gap:12px}.thp-profile-v2 .thp-profile-details{flex:1 1 0}.thp-profile-v2 .thp-profile-status{justify-content:flex-start}.thp-profile-v2 .thp-profile-brand{margin-bottom:15px}}

/* Community awards: scoped to this card; existing community controls unchanged. */
.thp-community-awards{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#fff 55%,#f4f8fc);padding:14px;box-shadow:0 5px 16px #0b34900d}
.thp-community-awards .thp-awards-wave{position:absolute;top:0;right:0;width:36%;max-width:120px;height:auto;z-index:-1;pointer-events:none}
.thp-community-awards .thp-heading{position:relative;font-size:clamp(15px,1.1vw,18px);line-height:1.3;padding-right:8px}
.thp-community-awards .thp-awards-intro{font-size:11px;line-height:1.45;color:#52647b;margin:7px 0 10px}
.thp-community-awards .thp-awards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}
.thp-community-awards .thp-award{margin:0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}
.thp-community-awards .thp-award img{width:100%;max-width:112px;height:auto;aspect-ratio:420/410;object-fit:contain;mix-blend-mode:multiply}
.thp-community-awards .thp-award figcaption{flex:1;width:100%;border-radius:9px;padding:6px 4px;font-size:10px;line-height:1.4;overflow-wrap:anywhere;color:#203653}
.thp-community-awards .thp-award--contributor figcaption{background:#fff0e9}
.thp-community-awards .thp-award--engager figcaption{background:#e7f2ff}
.thp-community-awards .thp-award--advocate figcaption{background:#f1e8ff}
@media(max-width:900px){.thp-community-awards{padding:12px}.thp-community-awards .thp-award img{max-width:105px}}
