/* TEMPLATE-AUDIT-FIX-A: one semantic Button system extends the approved KBH design. */
:root{--kbh-action-bg:#5ce00b;--kbh-action-ink:#101824;--kbh-strong-bg:#0d475c;--kbh-danger:#e34b45;--kbh-focus:#0d475c}
/* Primary: submit, search, publish, reply, apply. No classification by existing color. */
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-btn-primary,.btn-post,#scbar_btn,.kbh-fd-btn-post,.kbh-vt-btn-primary,.kbh-vt-btn-reply,.kbh-v2-reply,.kbh-publish-submit,#postsubmit,.kbh-el-submit,.kbh-el-su-submit,.kbh-pv-submit,.kbh-auth-form button[type=submit],.kbh-mobile-auth .btn_login button[type=submit],.kbh-compose-footer button[type=submit],.pn.pnc:not([name=deletesubmitbtn]):not(.kbh-btn-destructive):not([data-kbh-action=delete]),.button2):not(:disabled):not([aria-disabled=true]){background:#5ce00b!important;border-color:#5ce00b!important;color:#101824!important;box-shadow:none}
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-btn-primary,.btn-post,#scbar_btn,.kbh-fd-btn-post,.kbh-vt-btn-primary,.kbh-vt-btn-reply,.kbh-v2-reply,.kbh-publish-submit,#postsubmit,.kbh-el-submit,.kbh-el-su-submit,.kbh-pv-submit,.kbh-auth-form button[type=submit],.kbh-mobile-auth .btn_login button[type=submit],.kbh-compose-footer button[type=submit],.pn.pnc:not([name=deletesubmitbtn]):not(.kbh-btn-destructive):not([data-kbh-action=delete]),.button2):not(:disabled):not([aria-disabled=true]) :is(span,strong):not(:disabled):not([aria-disabled=true]){color:inherit!important;background:none!important}
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-btn-primary,.btn-post,#scbar_btn,.kbh-fd-btn-post,.kbh-vt-btn-primary,.kbh-vt-btn-reply,.kbh-v2-reply,.kbh-publish-submit,#postsubmit,.kbh-el-submit,.kbh-el-su-submit,.kbh-pv-submit,.pn.pnc:not([name=deletesubmitbtn]):not(.kbh-btn-destructive):not([data-kbh-action=delete]),.button2):hover:not(:disabled):not(:disabled):not([aria-disabled=true]){background:#52ca0a!important;border-color:#52ca0a!important}
/* Secondary/Strong: request a verification code or contact through an available message action. */
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-btn-strong,.kbh-btn-secondary,.kbh-el-send,.kbh-profile-message,.sc-message-btn,.btn[onclick*="sendpm"]){background:#5ce00b!important;border:1px solid #0d475c!important;color:#101824!important}
/* Ghost: close, cancel, password visibility, settings secondary navigation. */
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-btn-ghost,.kbh-auth-eye,.kbh-auth-back,.kbh-el-change,.kbh-pv-cancel){background:transparent!important;color:#101824!important;box-shadow:none}
/* Destructive must opt in by action semantics, never inherit primary styling. */
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-btn-destructive,[data-kbh-action=delete],form[action*="op=delete"] [name=deletesubmitbtn]){background:#fff!important;border:1px solid #e34b45!important;color:#e34b45!important}
:is(body.kbh-pc,body.kbh-mobile-shell) :is(button,input[type=submit],input[type=button],.kbh-btn-primary,.kbh-btn-secondary,.kbh-btn-strong,.kbh-btn-destructive):is(:disabled,[aria-disabled=true]){background:#f1f4f9!important;border-color:#e2e8f0!important;color:#4c5460!important;cursor:not-allowed;box-shadow:none;opacity:1}
/* UI-07: thin visible ring, input border remains 1px as approved. */
:is(body.kbh-pc,body.kbh-mobile-shell) :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:1px solid #0d475c!important;outline-offset:3px;box-shadow:none!important}
:is(body.kbh-pc,body.kbh-mobile-shell) :is(input,textarea,select):focus{border-width:1px!important}
/* UI-05: reuse the existing PC dialog and Touch sheet sizes. */
body.kbh-pc .fwinmask .m_c{border-radius:8px;box-shadow:0 5px 16px #1018240d}
body.kbh-mobile-shell :is(.popup,.tip,.kbh-forum-sheet){border-radius:16px;box-shadow:0 5px 16px #1018240d}
/* PC-R-16: same-origin font asset, works on www and bare-domain pages. */
@font-face{font-family:dzicon;src:url('/static/image/common/dzicon.woff2') format('woff2');font-style:normal;font-weight:normal;font-display:swap}

body.kbh-mobile-shell.kbh-compose .kbh-compose-submit button,body.kbh-mobile-shell.kbh-compose .post_btn button{height:40px!important;min-height:40px!important}
body.kbh-pc :is(.sc-reply-btn,.kbh-vt-reply-btn,.kbh-profile-primary){background:#5ce00b!important;border-color:#5ce00b!important;color:#101824!important}

body.kbh-pc :is(.kv2-modal,.kv2-dialog){border-radius:8px}
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-follow-button,.kbh-follow,.kbh-forum-follow){display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;word-break:normal;overflow-wrap:normal;border-radius:7px}

/* Existing native account/search views inherit the established form/card treatment. */
body.kbh-pc:is(.pg_spacecp,.pg_space,.pg_notice,.pg_pm,.pg_search) #ct :is(.bm,.tbmu){border-color:#e2e8f0;background:#fff;border-radius:8px;color:#101824}
body.kbh-pc:is(.pg_spacecp,.pg_space,.pg_notice,.pg_pm,.pg_search) :is(input.px,textarea.pt,select.ps){box-sizing:border-box;border:1px solid #e2e8f0;border-radius:7px;background:#ffffff;color:#101824;line-height:1.5}
body.kbh-pc:is(.pg_spacecp,.pg_space,.pg_notice,.pg_pm,.pg_search) :is(.xi2,.xi2 a){color:#0d475c}

/* AI display surface: apply is primary; dismiss/cancel are ghost. Generation code is untouched. */
:is(body.kbh-pc,body.kbh-mobile-shell) .kbh-ai-primary{background:#5ce00b!important;border-color:#5ce00b!important;color:#101824!important}
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-ai-x,.kbh-ai-btn:not(.kbh-ai-primary),.kbh-ai-dialog:has(.kbh-ai-error) .kbh-ai-primary){background:transparent!important;border:1px solid #e2e8f0!important;color:#101824!important}
body.kbh-pc .kbh-ai-dialog{border-radius:8px}
body.kbh-mobile-shell .kbh-ai-dialog{border-radius:16px}
:is(body.kbh-pc,body.kbh-mobile-shell) form[action*="op=delete"] [name=deletesubmitbtn] strong{color:inherit!important}

/* Seller contact is a primary action, matching audited Gumtree Message buttons. */
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-profile-message,.sc-message-btn,.btn[onclick*="sendpm"]){background:#5ce00b!important;border:1px solid #5ce00b!important;color:#101824!important}
:is(body.kbh-pc,body.kbh-mobile-shell) :is(.kbh-profile-message,.sc-message-btn,.btn[onclick*="sendpm"]):hover{background:#52ca0a!important;border-color:#52ca0a!important}
