/* YesAsia Community Hub 1.0.2: intentionally namespaced to avoid Newspaper/wpDiscuz conflicts. */
.ych-toolbar,.ych-toolbar *,.ych-overlay,.ych-overlay *{box-sizing:border-box}
.ych-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;margin:0 0 24px;border:1px solid #e9e9ef;border-radius:18px;background:#fff;max-width:100%;font-family:inherit}
.ych-tile{appearance:none;display:flex;align-items:center;text-align:left;gap:12px;min-width:0;min-height:80px;padding:14px;border:1px solid #ececf1;border-radius:13px;background:#fafafd;color:#222;cursor:pointer;transition:border-color .2s,transform .2s,background-color .2s;white-space:normal;line-height:1.3}
.ych-tile:hover,.ych-tile:focus-visible{border-color:#f7387e;background:#fff6fa;transform:translateY(-1px);outline:none}
.ych-tile-primary{background:#fff6fa;border-color:#ffd0df}
.ych-tile-icon{font-size:25px;flex:0 0 31px;line-height:1;text-align:center}
.ych-tile-body{display:flex;flex-direction:column;min-width:0;gap:4px}
.ych-tile strong{font-size:16px;line-height:1.2;font-weight:700;color:#20202b;overflow-wrap:anywhere}
.ych-tile small{font-size:12px;color:#737482;line-height:1.35}
.ych-count{display:inline-block;min-width:20px;padding:1px 5px;border-radius:30px;background:#fa3478;color:#fff;font-weight:800;font-size:11px;text-align:center;vertical-align:middle;line-height:18px}
.ych-count[hidden],.ych-overlay[hidden],.ych-tabs[hidden],.ych-avatar-preview[hidden]{display:none!important}
.ych-has-unread:not(.ych-animation-off) .ych-tile-icon{transform-origin:center;animation:ych-bell 1.6s ease-in-out infinite}
.ych-has-unread{border-color:#ff78a2;box-shadow:0 0 0 1px #ffc1d5 inset}
@keyframes ych-bell{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(12deg)}90%{transform:rotate(-10deg)}95%{transform:rotate(7deg)}}
.ych-modal-open{overflow:hidden!important}
.ych-overlay{position:fixed!important;inset:0!important;z-index:2147482000!important;padding:20px;display:flex;align-items:center;justify-content:center;background:rgba(17,19,30,.64);backdrop-filter:blur(5px)}
.ych-dialog{display:flex;flex-direction:column;width:min(660px,100%);max-height:min(86vh,890px);max-height:min(86dvh,890px);background:#fff;border-radius:18px;box-shadow:0 25px 75px rgba(10,15,25,.24);overflow:hidden;outline:none;text-align:left;color:#242532;font-family:inherit}
.ych-dialog-header{display:flex;justify-content:space-between;gap:16px;align-items:center;flex:0 0 auto;padding:20px 24px 17px;border-bottom:1px solid #eeeef2}
.ych-eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#e62f71;line-height:1.5}
#ych-dialog-title{margin:3px 0 0;font-size:23px;line-height:1.25;color:#1b1c25;font-weight:750}
.ych-close{appearance:none;border:1px solid #ececf0;display:grid;place-items:center;border-radius:50%;width:36px;height:36px;min-width:36px;background:#f8f8fb;color:#454553;font-size:18px;cursor:pointer;padding:0}
.ych-close:hover{background:#ffe5ee;color:#b9004a}
.ych-tabs{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;flex:0 0 auto;border-bottom:1px solid #efeff3;padding:10px 18px 0}
.ych-tab{appearance:none;white-space:nowrap;flex:none;background:transparent;border:0;border-bottom:3px solid transparent;padding:10px 12px 12px;font-size:13px;font-weight:700;color:#666a76;cursor:pointer;border-radius:0}
.ych-tab.is-current{color:#f7387e;border-bottom-color:#f7387e}
.ych-tab:hover{color:#d7276a}
.ych-dialog-body{overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto;min-height:110px;padding:18px 24px 22px;font-size:14px;line-height:1.5}
.ych-dialog-footer{flex:0 0 auto;padding:0 24px 16px}
.ych-entry{padding:14px 0;border-bottom:1px solid #efeff3;overflow-wrap:anywhere}
.ych-entry:last-child{border-bottom:0}
.ych-entry-header{display:flex;gap:11px;align-items:center}
.ych-entry-avatar{width:38px!important;height:38px!important;min-width:38px;border-radius:50%;object-fit:cover}
.ych-entry-name{font-size:14px;font-weight:750;color:#1b1d27}
.ych-entry-excerpt{margin:8px 0!important;color:#404351;font-size:14px;line-height:1.5}
.ych-entry-post,.ych-entry-date{display:block;margin-top:6px;color:#7c7d88;font-size:12px}
.ych-entry-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
.ych-text-link,.ych-text-button{color:#e42c6d!important;font-size:13px;font-weight:650;text-decoration:none;background:none;border:0;padding:0;cursor:pointer}
.ych-text-link:hover,.ych-text-button:hover{text-decoration:underline}
.ych-danger-text{color:#9e4c58!important}
.ych-empty,.ych-loading,.ych-message{padding:30px 10px;margin:0!important;text-align:center;color:#757580;font-size:14px}
.ych-info{color:#515c6e;background:#f5f7fb;border-radius:10px}
.ych-error{color:#a22a45;background:#fff1f4;border-radius:10px}
.ych-pager{display:flex;align-items:center;justify-content:center;gap:20px;border-top:1px solid #eeeef1;padding-top:16px}
.ych-pager-button,.ych-secondary-button{appearance:none;border:1px solid #dfe0e5;background:#fff;border-radius:9px;padding:9px 12px;font-size:13px;font-weight:650;color:#414251;cursor:pointer}
.ych-pager-button:hover:not(:disabled),.ych-secondary-button:hover{border-color:#f7387e;color:#f7387e}
.ych-pager-button:disabled{opacity:.35;cursor:not-allowed}
.ych-page-label{font-size:13px;color:#747582;font-variant-numeric:tabular-nums}
.ych-form{display:flex;flex-direction:column;gap:18px;margin:12px 0}
.ych-hint{margin:0 0 12px!important;color:#5f6370;font-size:14px}
.ych-field{display:flex;flex-direction:column;gap:7px}
.ych-field-label{font-size:13px;font-weight:700;color:#303241}
.ych-input,.ych-textarea,.ych-file{display:block;width:100%;min-height:44px;background:#fff;border:1px solid #dedfe6;border-radius:9px;padding:10px 12px;font:inherit;color:#20212e}
.ych-textarea{resize:vertical;min-height:120px}
.ych-input:focus,.ych-textarea:focus,.ych-file:focus{outline:2px solid #ffc6da;border-color:#f7387e}
.ych-primary-button{display:inline-block!important;align-self:flex-start;appearance:none;background:#f7387e!important;border:1px solid #f7387e!important;border-radius:9px;padding:12px 18px;color:#fff!important;font-size:14px;font-weight:700;line-height:1.4;text-decoration:none!important;cursor:pointer;text-align:center}
.ych-primary-button:hover{background:#d82468!important}
.ych-primary-button:disabled{opacity:.55;cursor:wait}
.ych-avatar-preview{width:100px!important;height:100px!important;object-fit:cover;border-radius:50%;border:2px solid #f0f0f3}
.ych-status{min-height:24px;margin:0!important;font-size:13px;color:#535964}
.ych-block-entry{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.ych-entry-blocked{background:#fafafa;border-radius:9px;padding:14px}
/* v1.0.10: obsolete red block link near comment names must never reappear. */
.ych-inline-block{display:none!important}
.ych-inline-unblock{appearance:none;border:0;padding:1px 5px!important;margin-left:4px!important;background:transparent!important;color:#cf3967!important;text-decoration:underline!important;font-size:11px!important;line-height:1.35!important;cursor:pointer}
.ych-masked-comment{padding:12px!important;margin:10px 0!important}
.ych-mask-card{background:#f7f7f9;color:#656670;border:1px solid #e9e9ef;border-radius:10px;padding:14px 16px;line-height:1.5}
.ych-mask-card p{margin:6px 0!important;font-size:13px;color:#6a6b78}
.ych-mask-name{font-weight:700;font-size:13px}
/* Hide original addon dropdown and shortcode bell on public pages; its database stays intact. */
body.ych-replace-notifications .wpdiscuz-bell-shortcode-menu,body.ych-replace-notifications #wun-container{display:none!important}
@media(max-width:800px){.ych-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.ych-tile{min-height:72px;padding:12px;gap:9px}.ych-tile strong{font-size:14px}.ych-tile small{font-size:11px}}
@media(max-width:520px){.ych-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:13px}.ych-tile{flex-direction:column;align-items:flex-start;gap:6px;padding:11px;min-height:92px}.ych-tile-icon{font-size:22px;line-height:1;flex:0 0 auto;text-align:left}.ych-tile-body{gap:3px}.ych-overlay{padding:0;align-items:stretch}.ych-dialog{width:100%;height:100%;max-height:100dvh;border-radius:0}.ych-dialog-header{padding:18px 18px 13px}#ych-dialog-title{font-size:20px}.ych-tabs{padding:8px 8px 0}.ych-tab{font-size:13px;padding:10px}.ych-dialog-body{padding:15px 18px 22px}.ych-dialog-footer{padding:0 18px 18px}.ych-pager{gap:12px}.ych-block-entry{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.ych-tile,.ych-tile-icon{transition:none!important;animation:none!important}}

/* Explicit guest login prompt for contacting editorial staff or an article author. */
.ych-login-prompt{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;padding:16px 12px 26px}
.ych-login-lock{font-size:36px;line-height:1.2}
.ych-login-heading{margin:0!important;font-size:17px;font-weight:750;color:#242532}
.ych-login-explanation{margin:0 0 8px!important;font-size:13px;color:#656875;max-width:420px}
.ych-tile[data-ych-login-required="1"]{cursor:pointer}

/* v1.0.4: lock/unlock beside voters in Advanced Liking popovers. */
#wpdcom .wv-vote-content .wv-user-info:has(.ych-liker-lock) {
  display:flex; align-items:center; gap:5px; min-width:0;
}
#wpdcom .wv-vote-content .wv-user-info .ych-liker-lock,
.wv-all-html .wv-user-info-all .ych-liker-lock {
  appearance:none; -webkit-appearance:none; box-sizing:border-box;
  display:inline-flex; justify-content:center; align-items:center;
  flex:0 0 auto; width:27px; height:27px; min-width:27px;
  padding:4px; border:1px solid currentColor; border-radius:7px;
  cursor:pointer; box-shadow:none; line-height:1;
  transition:background-color .14s ease, transform .14s ease;
}
#wpdcom .wv-vote-content .wv-user-info .ych-liker-lock { margin:0 0 0 auto; }
.wv-all-html .wv-user-info-all .ych-liker-lock { margin:8px auto 2px; }
#wpdcom .ych-liker-block, .wv-all-html .ych-liker-block {
  color:#d82542; background:#fff1f3;
}
#wpdcom .ych-liker-unlock, .wv-all-html .ych-liker-unlock {
  color:#10875c; background:#e9f8f0;
}
#wpdcom .ych-liker-block:hover, .wv-all-html .ych-liker-block:hover { background:#ffe0e5; }
#wpdcom .ych-liker-unlock:hover, .wv-all-html .ych-liker-unlock:hover { background:#d2f5e2; }
#wpdcom .ych-liker-lock:focus-visible, .wv-all-html .ych-liker-lock:focus-visible {
  outline:2px solid #2563eb; outline-offset:2px;
}
@media (max-width:600px) {
  #wpdcom .wv-vote-content .wv-user-info .ych-liker-lock {width:32px;height:32px;min-width:32px;}
  .wv-all-html .wv-user-info-all .ych-liker-lock {width:34px;height:34px;}
}
/* 1.0.5: thread subscriptions; independent of site-wide wpDiscuz email subscriptions. */
.ych-subscribe-strip{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:-12px 0 24px 0;font-family:inherit}
.ych-subscribe-toggle{appearance:none;display:inline-flex;align-items:center;gap:8px;padding:9px 13px!important;border:1px solid #f4afc7!important;background:#fff6fa!important;color:#bf285e!important;border-radius:11px!important;font-size:13px!important;font-weight:700!important;line-height:1.35;cursor:pointer}
.ych-subscribe-toggle:hover,.ych-subscribe-toggle:focus-visible{border-color:#e9377b!important;background:#ffe7f0!important;outline-offset:3px}
.ych-subscribe-toggle.is-subscribed{background:#effaf2!important;border-color:#9acfac!important;color:#22673a!important}
.ych-subscribe-toggle:disabled{opacity:.5;cursor:wait}
.ych-subscribe-feedback{font-size:12px;color:#636878}
.ych-subscription-header{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:9px}
.ych-subscription-header .ych-entry-name{flex:1 1 180px;min-width:0}
.ych-new-badge,.ych-read-badge{display:inline-flex;align-items:center;border-radius:99px;padding:3px 8px;font-size:11px;line-height:1.4;font-weight:700}
.ych-new-badge{color:#19683e;background:#e7f7ed}
.ych-read-badge{color:#717686;background:#f3f4f7}
@media(max-width:520px){.ych-subscribe-strip{margin:-12px 0 19px}.ych-subscribe-toggle{padding:10px 12px!important;font-size:12px!important}.ych-subscription-header{align-items:flex-start}}

/* 1.0.6: compact sub-filter and lazy, privacy-checked notification context. */
.ych-notification-status{display:flex;align-items:center;gap:6px;margin:0 0 12px;padding:4px;border-radius:11px;background:#f4f5f8}
.ych-status-toggle{flex:1 1 50%;appearance:none;background:transparent;border:0;border-radius:8px;color:#666c78;cursor:pointer;padding:10px 8px;font-size:13px;font-weight:700}
.ych-status-toggle.is-current{background:#fff;color:#e42c6d;box-shadow:0 1px 5px rgba(0,0,0,.07)}
.ych-notification-detail{border-radius:11px;background:#f7f8fb;border:1px solid #e6e8ee;padding:13px;margin:14px 0 4px;max-width:100%;overflow-wrap:anywhere}
.ych-notification-detail[hidden]{display:none!important}
.ych-comment-context{margin:6px 0 12px;white-space:normal;border-left:3px solid #c9d1dd;padding:3px 0 3px 11px}
.ych-comment-new{border-left-color:#f7387e}
.ych-detail-label{display:block;color:#666a76;font-size:12px;margin:0 0 5px}
.ych-detail-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:0!important;color:#2c3040;font-size:13px;line-height:1.55}
.ych-detail-post{font-weight:700;color:#343747;font-size:12px;margin:0 0 13px!important}
@media(max-width:520px){.ych-status-toggle{min-height:40px;font-size:12px}.ych-notification-detail{padding:11px}}

/* 1.0.8: Replace Comment Author Info's old blocking UI; retain author details. */
body.ych-wcai-replace .wcai-profile-action[data-action="block"],
body.ych-wcai-replace .wcai-profile-action[data-action="unblock"],
body.ych-wcai-replace #wpdUserContentInfo .wpd-list-item[data-action="wcaiGetBlacklistPage"],
body.ych-wcai-replace #wpdUserContentInfo #wpd-content-item-5{display:none!important}
.ych-wcai-profile-lock{display:inline-flex;align-items:center;justify-content:center;appearance:none;border:0!important;background:transparent!important;width:29px;height:29px;vertical-align:middle;padding:4px!important;margin-left:7px!important;cursor:pointer;border-radius:6px;line-height:1;float:none}
.ych-wcai-profile-lock.ych-wcai-block{color:#e53957!important}
.ych-wcai-profile-lock.ych-wcai-unlock{color:#149c70!important}
.ych-wcai-profile-lock:focus-visible{outline:2px solid #db3771!important;outline-offset:2px}
.ych-wcai-profile-lock:disabled{cursor:wait;opacity:.5}
.ych-wcai-blacklist-tab{list-style:none!important;margin:0!important;padding:0!important}
.ych-wcai-blocks-link{display:block!important;width:100%;text-align:left!important;border:0!important;background:transparent!important;color:inherit!important;cursor:pointer!important;padding:10px 14px!important;font:inherit!important}
.ych-wcai-blocks-link:hover,.ych-wcai-blocks-link:focus-visible{background:#fff1f6!important;color:#d62868!important}

/* v1.0.9: Compact personal profile, safe nickname editor and existing avatar uploader. */
.ych-profile-header{display:flex;align-items:center;gap:15px;padding:7px 0 16px;border-bottom:1px solid #ebeef3}
.ych-profile-avatar{width:76px!important;height:76px!important;min-width:76px;object-fit:cover;border-radius:50%;border:2px solid #f0edf2;background:#f8f8fa}
.ych-profile-intro{min-width:0;display:flex;flex-direction:column;gap:6px}
.ych-profile-current-name{font-size:19px;font-weight:750;overflow-wrap:anywhere}
.ych-profile-caption{font-size:12px;color:#767989;line-height:1.45}
.ych-profile-section{padding:19px 0 12px;border-bottom:1px solid #edeff3}
.ych-profile-section:last-child{border:0}
.ych-profile-section-title{font-size:17px;font-weight:750;color:#20212c;margin:0 0 10px}
.ych-profile-section .ych-form{margin:6px 0 3px;gap:11px}
.ych-profile-section .ych-hint{margin:0 0 12px!important}
.ych-name-rule{font-size:12px;line-height:1.55;color:#676b79;margin:0 0 4px!important}
.ych-profile-section .ych-primary-button{align-self:flex-start}
@media(max-width:520px){.ych-profile-header{gap:12px}.ych-profile-avatar{width:62px!important;height:62px!important;min-width:62px}.ych-profile-current-name{font-size:17px}.ych-profile-section{padding:16px 0 10px}}

/* 1.0.12: language is administrator-controlled; hide leftover cached v1.0.11 toggles. */
.ych-toolbar .ych-language-switch,
.ych-dialog .ych-modal-lang { display:none!important; }
.ych-dialog-tools{display:flex;gap:10px;align-items:center;flex-shrink:0}
