
                                                               
.auth-overlay{--text:#f3dfcb;--muted:#bca58f;--text-soft:#bca58f;--line:#674631;--accent:#df955c;font-family:var(--font,Arial,sans-serif)}
.auth-overlay .auth-dropdown{background:#211710;border:1px solid #765037;border-radius:0;box-shadow:0 20px 70px #0009;color:#f3dfcb;padding:20px;max-height:calc(100dvh - 110px);overflow-y:auto}
.auth-overlay :is(.auth-tab,.auth-field,.auth-field-compact,.auth-submit,.auth-secondary,.recover-channel-face,.recover-send-button){border-radius:0!important;font-family:inherit}
.auth-overlay .auth-tab{background:#2a1d15;border-color:#674631;color:#bca58f;font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.auth-overlay .auth-tab.active{background:#df955c;color:#21140d;border-color:#df955c}
.auth-overlay :is(.auth-field,.auth-field-compact){background:#18110e;border:1px solid #674631}
.auth-overlay :is(.auth-field,.auth-field-compact):focus-within{border-color:#df955c;box-shadow:0 0 0 1px #df955c}
.auth-overlay input{background:transparent!important;color:#f3dfcb!important;font-family:inherit}
.auth-overlay input::placeholder{color:#ad9885!important}
.auth-overlay :is(.auth-field-icon,.auth-action-icon,.auth-password-toggle,.auth-kicker){color:#df955c}
.auth-overlay .auth-submit{background:#df955c!important;color:#21140d!important;min-height:44px;padding:10px 18px!important}
.auth-overlay .auth-submit .auth-action-icon{color:inherit}
.auth-overlay .auth-secondary{color:#d5bda6}
.auth-overlay :is(.profile-info-note,.recover-feedback){border-color:#674631;background:#2a1d15;color:#f3dfcb}
.play-guide-step{grid-template-columns:56px minmax(0,1fr)!important}
.play-guide-step .play-step-number{display:none!important}
.play-guide-step .im-install-illustration{position:static!important;grid-column:1;grid-row:1;width:56px!important;height:56px!important;transform:none!important;margin:0!important}
.play-guide-step>div{grid-column:2;grid-row:1;min-width:0}
.play-guide-step :is(h3,p,code){font-family:Arial,'Trebuchet MS',sans-serif!important}
body[data-page=knowledge] .knowledge-items-grid{left:0!important;transform:none!important;width:100%!important;max-width:100%;--knowledge-items-align-shift:0px!important}
body[data-page=knowledge] .knowledge-items-root{display:block!important;min-width:0}
body[data-page=knowledge] .knowledge-items-root>.knowledge-subtabs{margin-bottom:24px}
body[data-page=knowledge] :is(.knowledge-medicine-table-wrap,.knowledge-model-card,.knowledge-model-card__image,.knowledge-model-hero){background:#241910!important;border-color:#674631!important;box-shadow:none!important;color:#eed9c5}
body[data-page=knowledge] :is(.knowledge-medicine-table,.knowledge-article-card table){background:#241910!important;border-color:#674631!important;color:#eed9c5}
body[data-page=knowledge] :is(.knowledge-medicine-table,.knowledge-article-card table) :is(th,td){border-color:#674631!important;background:transparent!important;color:#d6c0ab}
body[data-page=knowledge] :is(.knowledge-medicine-table,.knowledge-article-card table) thead th{background:#382519!important;color:#e9ad7d}
body[data-page=knowledge] .knowledge-model-card:hover{border-color:#df955c!important;background:#342317!important}
body[data-page=knowledge] #knowledge-modal .knowledge-recipe-layout--crafting-table{--im-recipe-slot:clamp(48px,6vw,64px)!important;gap:10px!important}
#dimp-catalog-modal:not([hidden]){display:flex!important;align-items:center;justify-content:center;padding:24px;z-index:350}
#dimp-catalog-modal .m-modal{width:min(1100px,100%);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;overflow:hidden}
#dimp-catalog-modal .m-modal-header{position:relative;display:flex;align-items:center;flex:0 0 auto;justify-content:space-between;padding-right:64px}
#dimp-catalog-modal [data-dimp-close]{display:flex!important;position:absolute;right:20px;top:18px;align-items:center;justify-content:center;width:36px;height:36px;z-index:2;color:#f3dfcb;background:#342317;border:1px solid #765037;font:28px/1 var(--font)}
#dimp-catalog-modal .m-modal-body{min-height:0;overflow-y:auto}
.im-finish-rules .m-modal{width:min(960px,calc(100vw - 24px));max-height:90dvh}
.im-finish-rules .m-modal-body{overflow-y:auto;max-height:72dvh}
body[data-page=legal] .legal-doc{--panel:#241910;--line:#674631;--text:#eed9c5;--muted:#bca58f;--accent:#df955c;--radius:0px;max-width:960px;margin:48px auto 72px;font-family:var(--font)}
body[data-page=legal] .legal-doc .download-link{border-color:#765037;background:#342317;border-radius:0}
@media(max-width:600px){.auth-overlay .auth-dropdown{max-height:calc(100dvh - 100px)}#dimp-catalog-modal:not([hidden]){padding:10px}#dimp-catalog-modal .m-modal{max-height:calc(100dvh - 20px)}body[data-page=knowledge] #knowledge-modal .knowledge-recipe-layout--crafting-table{--im-recipe-slot:46px!important;gap:6px!important}.play-guide-step{gap:14px!important}}

/* Shared account trigger and menu. */
#topbar #style-btn { gap:8px; min-width:0; }
#topbar #style-btn .m-header-avatar {
  display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px;
  max-width:none; max-height:none; overflow:hidden; border-radius:4px;
}
#topbar #style-btn .m-header-avatar img {
  display:block; width:100%; height:100%; max-width:none; max-height:none;
  object-fit:cover;
}
#topbar #style-btn .m-header-name {
  font-size:16px; line-height:1.2; font-weight:400;
  max-width:clamp(70px,10vw,155px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
#topbar #style-pop .style-option > .swatch {
  display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px;
  border:0 !important; border-radius:5px; box-shadow:none;
  background:#38271b !important; color:#f2b785;
}
#topbar #style-pop .style-option > .swatch::before {
  content:""; display:block; width:19px; height:19px; background:currentColor;
  mask:var(--account-icon) center / contain no-repeat;
}
#topbar #style-pop .style-option:is(:hover,:focus-visible) > .swatch { color:#ffe0bf; }
@media(max-width:600px) {
  #topbar #style-btn { gap:6px; }
  #topbar #style-btn .m-header-name { font-size:14px; max-width:clamp(44px,calc(100vw - 250px),92px); }
}
#style-pop .style-option[href="/pages/profile"] > .swatch { --account-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2021v-2a4%204%200%200%200-4-4H8a4%204%200%200%200-4%204v2%20M16%207a4%204%200%201%201-8%200%204%204%200%200%201%208%200Z%22%2F%3E%3C%2Fsvg%3E"); }
#style-pop .style-option[href="/pages/characters"] > .swatch { --account-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%20M13%207a4%204%200%201%201-8%200%204%204%200%200%201%208%200Z%20M22%2021v-2a4%204%200%200%200-3-4%20M17%203.2a4%204%200%200%201%200%207.6%22%2F%3E%3C%2Fsvg%3E"); }
#style-pop .style-option[href="/pages/messages"] > .swatch { --account-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011.5a7.5%207.5%200%200%201-7.5%207.5H8l-5%203V6a3%203%200%200%201%203-3h7.5a7.5%207.5%200%200%201%207.5%207.5Z%20M8%209h8%20M8%2013h5%22%2F%3E%3C%2Fsvg%3E"); }
#style-pop .style-option[href="/pages/reports"] > .swatch { --account-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2013v-2a8%208%200%200%201%2016%200v2%20M4%2012H3v5a2%202%200%200%200%202%202h2v-7H4Zm16%200h1v5a2%202%200%200%201-2%202h-2v-7h3Zm-2%207a4%204%200%200%201-4%203h-2%22%2F%3E%3C%2Fsvg%3E"); }
#style-pop .style-option[href="/pages/donate"] > .swatch { --account-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2012a9%209%200%201%201-18%200%209%209%200%200%201%2018%200Z%20M9%208h2.5a4%204%200%201%201%200%208H9Z%22%2F%3E%3C%2Fsvg%3E"); }
#style-pop .style-option[href="/pages/client-pack-admin"] > .swatch { --account-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207l9-4%209%204v10l-9%204-9-4Z%20M3%207l9%204%209-4%20M12%2011v10%20M7.5%205%2017%209%22%2F%3E%3C%2Fsvg%3E"); }
/* The dedicated characters page remains reachable from the profile. */
#style-pop a.style-option:is([href="/pages/characters"],[href$="tab=characters"]),
#style-pop #im-v2-account-details-wrap { display:none !important; }
.im-v84-card.im-prof-builder .im-card-scene { overflow:hidden; }
.im-v84-card.im-prof-builder .im-card-scene-photo {
  transform:scale(1.11); transform-origin:70% center;
}

/* Shared text-only close controls. Keep a visible keyboard focus state. */
:is(.m-modal,.profile-dimp-audit-dialog,.dimp-admin-dialog,.dimp-tax-dialog) {
  position:relative;
}
:is(.m-modal-close,.profile-dimp-audit-close,.dimp-admin-close,.dimp-tax-dialog-close,#dimp-catalog-modal [data-dimp-close]) {
  position:absolute !important; inset:9px 11px auto auto !important;
  width:36px !important; height:36px !important; padding:0 !important;
  display:grid !important; place-items:center;
  color:#ebcdb2 !important; font:24px/1 system-ui,sans-serif !important;
  background:none !important; border:0 !important; box-shadow:none !important; transform:none !important;
}
:is(.m-modal-close,.profile-dimp-audit-close,.dimp-admin-close,.dimp-tax-dialog-close):hover { color:#fff0e1 !important; }
:is(.m-modal-close,.profile-dimp-audit-close,.dimp-admin-close,.dimp-tax-dialog-close):focus-visible { outline:2px solid #e3a777; outline-offset:-5px; }
:is(.m-modal-header,.profile-dimp-audit-head,.dimp-admin-dialog-head,.dimp-tax-dialog-head) { padding-right:55px; }
.im-avatar-crop-preview { position:relative; overflow:hidden; touch-action:none; cursor:grab; }
.im-avatar-crop-preview:active { cursor:grabbing; }
.im-avatar-crop-preview img { position:absolute; inset:0 auto auto 0; max-width:none; max-height:none; object-fit:fill; transform-origin:0 0; pointer-events:none; will-change:transform; }
dialog.profile-dimp-audit-dialog,dialog.dimp-admin-dialog {
  margin:auto; width:min(680px,calc(100vw - 24px)); max-height:calc(100dvh - 24px);
  border:1px solid #936847; border-radius:0; padding:24px; color:#f3dfcb;
  background:#251a13; box-shadow:0 16px 60px #0008;
}
dialog.profile-dimp-audit-dialog::backdrop,dialog.dimp-admin-dialog::backdrop { background:#100b08c7; }
.profile-dimp-audit-head h2,.dimp-admin-dialog-head h2 { margin:0; color:#fae7d2; }
.profile-dimp-audit-player,.profile-dimp-audit-balance { color:#d1b399; }
.profile-dimp-audit-list { scrollbar-color:#996747 #211811; }
.profile-dimp-audit-list .profile-dimp-audit-row { border-color:#563c2c; }
.profile-dimp-audit-row small { display:block; margin-top:4px; color:#d1b399; }
#dimp-admin-history-open { position:static !important; margin:0 0 16px; padding:10px 14px; }
#dimp-admin-history-open:not([hidden]) { display:inline-flex !important; align-items:center; gap:8px; }
#dimp-admin-history-open[hidden] { display:none !important; }
#dimp-admin-history-open svg { width:18px; height:18px; }
.dimp-admin-dialog #dimp-tax-status { margin:12px 0; padding:10px 12px; border:1px solid #674631; background:#302118; }
.dimp-admin-dialog #dimp-tax-status small { display:block; color:#d1b399; margin-top:3px; }
.im-profile-page :is(.recovery-method-head,.recovery-method-actions,.recovery-unlink-confirm-row,.recovery-email-code-row) { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.im-profile-page .recovery-method-head { flex-wrap:nowrap; }
.im-profile-page .recovery-settings-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); gap:12px; }
.im-profile-page .recovery-method-card { background:#261b14; border:1px solid #5c412e; border-radius:0; min-width:0; padding:14px; }
.im-profile-page .recovery-method-icon { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; color:#f2b785; background:#38271b; border:0; }
.im-profile-page .recovery-method-icon svg { width:22px; height:22px; }
.im-profile-page .recovery-method-icon-email svg { fill:none; stroke:currentColor; stroke-width:1.7; }
.im-profile-page .recovery-method-icon-telegram svg { fill:currentColor; stroke:none; }
.im-profile-page :is(.recovery-method-action,.profile-password-recovery-reset,.profile-password-recovery-send) { min-height:40px; color:#21160e; background:#e6a274; border:1px solid #e6a274; padding:7px 12px; border-radius:0; }
.im-profile-page :is(.recovery-method-link,.profile-password-recovery-channel-label) { color:#f2c6a3; background:transparent; border-color:#795537; }
.im-profile-page :is(.recovery-method-actions,.recovery-email-code-row,.recovery-unlink-confirm-row) [hidden] { display:none !important; }
#topbar #style-pop [data-finish-profile-settings] > .swatch { --account-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16M8 4v4m8 2v4m-6 2v4'/%3E%3C/svg%3E"); }
body[data-page="knowledge"] #knowledge-modal .kb-modal-back { inset:7px 50px auto auto; transform:none; }

/* Admin history is a compact ledger with an independent scrolling list. */
body[data-page="donate"] .m-payment-heading { position:relative; }
body[data-page="donate"] .m-payment-heading #dimp-admin-history-open {
  position:absolute !important; top:-5px; right:-4px; width:36px; height:36px;
  justify-content:center; margin:0; padding:0; color:#eabb95;
  border:0; background:transparent; box-shadow:none;
}
body[data-page="donate"] .m-payment-heading #dimp-admin-history-open:hover { color:#fff1df; background:transparent; }
dialog.dimp-admin-dialog { width:min(760px,calc(100vw - 24px)); overflow:auto; box-sizing:border-box; }
dialog.dimp-admin-dialog .dimp-admin-dialog-head p { margin:4px 0 0; color:#d1b399; }
dialog.dimp-admin-dialog .dimp-admin-search {
  display:block; width:100%; box-sizing:border-box; min-height:42px; padding:9px 12px;
  color:#f3dfcb; background:#1b130e; border:1px solid #785236; border-radius:3px; font:inherit;
}
dialog.dimp-admin-dialog .dimp-admin-search:focus-visible { outline:2px solid #dfa775; outline-offset:2px; }
dialog.dimp-admin-dialog .dimp-admin-result { margin:8px 0 4px; color:#d1b399; font-size:13px; }
dialog.dimp-admin-dialog .dimp-admin-list { max-height:min(460px,45dvh); overflow:auto; scrollbar-color:#996747 #211811; }
dialog.dimp-admin-dialog .dimp-admin-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; padding:12px 8px; border-bottom:1px solid #563c2c; }
dialog.dimp-admin-dialog .dimp-admin-row > div { display:grid; gap:4px; min-width:0; }
dialog.dimp-admin-dialog .dimp-admin-row small { display:block; color:#d1b399; overflow-wrap:anywhere; }
dialog.dimp-admin-dialog .dimp-admin-status { color:#f0bc92; font-size:13px; }
dialog.dimp-admin-dialog .dimp-admin-row-amount { color:#f0bc92; white-space:nowrap; font-variant-numeric:tabular-nums; }
dialog.dimp-admin-dialog .dimp-admin-pager:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; }
.im-profile-source-modal[data-recovery-kind] :is(.im-source-existing-form,.im-source-real-card,.recovery-method-card) {
  width:100%; box-sizing:border-box; padding:0; margin:0; text-align:left;
  border:0 !important; border-radius:0; background:none !important; box-shadow:none !important;
}
.im-profile-source-modal[data-recovery-kind] .recovery-method-head { display:flex; align-items:center; justify-content:flex-start; flex-direction:row; gap:10px; text-align:left; }
.im-profile-source-modal[data-recovery-kind] .recovery-method-head > div { align-items:flex-start; }
.im-profile-source-modal[data-recovery-kind] .recovery-method-icon { background:none !important; border:0 !important; box-shadow:none; flex-basis:28px; width:28px; height:28px; }
.im-profile-source-modal[data-recovery-kind] .recovery-method-icon-telegram svg { fill:currentColor; stroke:none; }
.im-profile-source-modal[data-recovery-kind] .recovery-method-actions { justify-content:flex-start; margin:12px 0 0; }
.im-profile-source-modal[data-recovery-kind="password"] #profile-password-recovery-form { display:grid; gap:12px; margin-top:16px; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-channels { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr)); gap:8px; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel {
  display:flex; flex-direction:row; align-items:center; gap:8px; margin:0; padding:8px 10px;
  min-height:42px; border:1px solid #795537; background:transparent; box-sizing:border-box;
}
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel > span { display:flex; align-items:center; gap:7px; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel input { appearance:auto; accent-color:#e6a274; margin:0; flex:none; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel:has(:checked) { background:#38271b; border-color:#e6a274; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-send svg { display:none; }
.im-profile-source-modal[data-recovery-kind="password"] :is(.profile-password-recovery-code-wrap,.profile-password-recovery-password-wrap) { display:block; width:100%; margin:0; }
.im-profile-source-modal[data-recovery-kind="password"] :is(.profile-password-recovery-code-wrap,.profile-password-recovery-password-wrap) input { width:100%; box-sizing:border-box; }

/* Two recovery methods share one dialog and retain their original forms. */
.im-profile-source-modal[data-recovery-kind="combined"] .m-modal { width:min(520px,calc(100vw - 24px)); }
.im-profile-source-modal[data-recovery-kind="combined"] .m-modal-header .micro-label { display:none; }
.im-profile-source-modal[data-recovery-kind="combined"] .m-modal-header h2 { font-size:clamp(23px,5vw,31px); }
.im-profile-source-modal[data-recovery-kind="combined"] .m-modal-body { padding-block:8px 20px; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-settings-grid { gap:0; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-card + .recovery-method-card { border-top:1px solid #634630 !important; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head { position:relative; min-height:74px; margin:0; padding:10px 34px 10px 0; box-sizing:border-box; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head > div { min-width:0; overflow-wrap:anywhere; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head strong { color:#fae7d2; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-state { color:#e3bea0; }
.im-profile-source-modal[data-recovery-kind="combined"] .im-recovery-toggle {
  position:absolute; inset:0; width:100%; display:flex; align-items:center; justify-content:flex-end;
  padding:0 4px; background:none; color:#eab790; border:0; cursor:pointer;
}
.im-profile-source-modal[data-recovery-kind="combined"] .im-recovery-toggle:focus-visible { outline:2px solid #e3a777; outline-offset:-2px; }
.im-profile-source-modal[data-recovery-kind="combined"] .im-recovery-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.im-profile-source-modal[data-recovery-kind="combined"] [data-recovery-expanded="false"] > :not(.recovery-method-head) { display:none !important; }
.im-profile-source-modal[data-recovery-kind="combined"] [data-recovery-expanded="true"] { padding-bottom:14px; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-actions { gap:8px; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-link { min-height:36px; padding:6px 10px; }

                                                                             
                                            
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-settings-grid {
  display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:0 !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head {
  display:grid !important; grid-template-columns:26px minmax(0,1fr) !important;
  justify-items:start !important; align-items:center !important; text-align:left !important;
  width:100% !important; min-height:68px; padding:8px 36px 8px 0 !important; gap:12px !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head > div {
  display:flex !important; align-items:flex-start !important; text-align:left !important; gap:3px;
}
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head .recovery-method-icon {
  margin:0 !important; width:26px !important; height:26px !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head .im-recovery-toggle {
  position:absolute !important; inset:0 !important; width:100% !important; height:100% !important;
  display:flex !important; justify-content:flex-end !important; align-items:center !important;
  margin:0 !important; padding:0 4px !important; background:none !important; border:0 !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] [data-recovery-expanded="true"] > :not(.recovery-method-head) {
  margin-left:38px !important; max-width:calc(100% - 38px);
  text-align:left !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-actions {
  justify-content:flex-start !important; margin-top:4px !important;
}
                                                                   
.im-profile-source-modal[data-recovery-kind="combined"] .m-modal {
  border-radius:12px !important; overflow:auto; background:#261b14;
}
.im-profile-source-modal[data-recovery-kind="combined"] .m-modal-header { padding:16px 54px 15px 22px !important; }
.im-profile-source-modal[data-recovery-kind="combined"] .m-modal-header h2 {
  font-size:clamp(19px,4.8vw,25px) !important;
  font-weight:750; line-height:1.2; margin:0;
}
.im-profile-source-modal[data-recovery-kind="combined"] .m-modal-body { padding:5px 22px 10px !important; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head {
  align-items:start !important; min-height:0; padding:13px 36px 12px 0 !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head strong { font-size:17px; line-height:1.25; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-head .recovery-method-icon { margin-top:3px !important; color:#f3dfcb; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-icon svg { width:23px; height:23px; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-state:is(.is-linked,.is-verified,.is-connected,.is-confirmed,.is-ok) { color:#a4da86 !important; }
.im-profile-source-modal[data-recovery-kind="combined"] [data-recovery-expanded="true"] > .recovery-method-actions:not([hidden]) {
  display:flex !important; justify-content:flex-start !important; align-items:center;
  justify-self:start !important; width:calc(100% - 38px) !important;
  margin:4px 0 0 38px !important; gap:8px;
}
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-actions > button:not([hidden]) { flex:0 0 auto; margin:0 !important; }
.im-profile-source-modal[data-recovery-kind="combined"] :is(#recovery-email-change,#recovery-email-send,#recovery-telegram-link,#recovery-email-save,#recovery-email-change-request) {
  background:#e8aa79 !important; color:#24170e !important; border:1px solid #e8aa79 !important; border-radius:5px; padding-inline:12px;
}
.im-profile-source-modal[data-recovery-kind="combined"] :is(#recovery-email-unlink,#recovery-telegram-unlink) { background:none !important; border-color:transparent !important; color:#efc7a9 !important; }
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-email-change-form:not([hidden]) { display:grid; gap:7px; }
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-email-change-form input { min-width:0; border-radius:5px; }
.im-profile-source-modal[data-recovery-kind="combined"] .m-modal,
.im-profile-source-modal[data-recovery-kind="combined"] :is(button,input) { border-radius:0 !important; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-method-card:has(> #recovery-unlink-confirm:not([hidden])) > .recovery-method-actions { display:none !important; }
.im-profile-source-modal[data-recovery-kind="combined"] [data-recovery-expanded="true"] > #recovery-unlink-confirm:not([hidden]) {
  display:grid; gap:9px; padding:0 0 4px; margin-top:4px; border:0; background:none; box-shadow:none;
}
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-unlink-label { color:#fae7d2; font-weight:700; }
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-unlink-feedback { grid-row:2; margin:0 !important; font-size:13px; }
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-unlink-confirm-row {
  display:grid !important; grid-template-columns:max-content max-content; justify-content:start; gap:8px; width:100%;
}
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-unlink-code {
  grid-column:1/-1; width:100% !important; min-width:0 !important; box-sizing:border-box;
}
.im-profile-source-modal[data-recovery-kind="combined"] .recovery-unlink-confirm-row {
  grid-template-columns:max-content minmax(0,1fr);
}
.im-profile-source-modal[data-recovery-kind="combined"] :is(#recovery-unlink-submit,#recovery-unlink-cancel) { justify-self:start; margin:0 !important; padding:6px 10px; }
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-unlink-submit { background:#e8aa79 !important; color:#24170e !important; border-color:#e8aa79 !important; }
.im-profile-source-modal[data-recovery-kind="combined"] :is(#recovery-unlink-cancel,#recovery-unlink-resend) { border:0 !important; background:none !important; box-shadow:none; }
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-unlink-resend { justify-self:start; margin:0; padding:0; min-height:0; text-decoration:underline; }
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-unlink-resend:disabled { color:#ac9481; text-decoration:none; }
@media(max-width:370px) {
  .im-profile-source-modal[data-recovery-kind="combined"] [data-recovery-expanded="true"] > #recovery-unlink-confirm:not([hidden]) { margin-left:0 !important; max-width:none; }
}
 .im-profile-source-modal[data-recovery-kind="combined"] [data-recovery-expanded="true"] > #recovery-unlink-confirm:not([hidden]) { justify-self:stretch !important; width:auto !important; margin-right:0 !important; box-sizing:border-box; }
 .im-profile-source-modal[data-recovery-kind="combined"] [data-recovery-expanded="true"] > #recovery-unlink-confirm:not([hidden]) { align-self:flex-start !important; justify-self:start !important; width:calc(100% - 38px) !important; max-width:none !important; margin-left:38px !important; padding-inline:0 !important; }
.im-profile-source-modal[data-recovery-kind="combined"] [data-recovery-expanded="true"] > #recovery-email-change-form:not([hidden]) {
  display:grid; align-self:flex-start !important; justify-self:start !important;
  width:calc(100% - 38px) !important; max-width:none !important; margin:4px 0 12px 38px !important;
  padding:0 !important; gap:7px; text-align:left !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-email-change-form :is(label,#recovery-email-change-code-wrap) {
  display:block; margin:0; text-align:left !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-email-change-form [hidden] { display:none !important; }
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-email-change-form .recovery-email-code-row {
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
  width:100%; margin:0; justify-items:stretch; align-items:center;
}
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-email-change-form .recovery-email-code-row input {
  grid-column:1/-1; width:100% !important; min-width:0 !important; box-sizing:border-box; margin:0 !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] :is(#recovery-email-save,#recovery-email-cancel) {
  display:grid !important; place-items:center; width:100%; min-height:40px !important; box-sizing:border-box;
  margin:0 !important; padding:6px 9px !important; font:600 13px/1.2 var(--font) !important;
  letter-spacing:normal !important; text-transform:none !important;
  color:#f1c8a9 !important; background:#302118 !important; border:1px solid #785236 !important;
}
.im-profile-source-modal[data-recovery-kind="combined"] :is(#recovery-email-save,#recovery-email-cancel):hover { background:#3d2a1e !important; }
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-email-change-request {
  grid-column:1/-1; justify-self:start; width:auto !important; min-height:0 !important;
  margin:0 0 7px !important; padding:0 !important; border:0 !important;
  color:#efc7a9 !important; background:none !important; box-shadow:none !important;
  font:inherit !important; text-decoration:underline;
}
.im-profile-source-modal[data-recovery-kind="combined"] #recovery-email-change-request:disabled {
  color:#ac9481 !important; text-decoration:none; cursor:default;
}
/* Mobile interaction sizes and viewport bounds; desktop remains unchanged. */
@media(max-width:980px){
  #topbar .navigation{max-height:calc(100dvh - 87px);overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:740px){
  #topbar .navigation{max-height:calc(100dvh - 71px)}
  body input:not(:is([type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="button"],[type="submit"],[type="hidden"])),body textarea,body select{font-size:16px!important}
  body :is(.m-modal-close,.profile-dimp-audit-close,.dimp-admin-close,.dimp-tax-dialog-close,#dimp-catalog-modal [data-dimp-close]){width:44px!important;height:44px!important}
  .m-donate-layout .m-recipient-help-btn{position:relative}
  .m-donate-layout .m-recipient-help-btn::after{content:"";position:absolute;inset:-14px}
}

/* Shared header search: original search and scope logic, current site presentation. */
#search-dropdown-overlay{position:fixed;inset:0;z-index:12000;pointer-events:none;font-family:'Trebuchet MS',Arial,sans-serif;color:#f3dfcb}
#search-dropdown-overlay.hidden{display:none!important}
#search-dropdown-overlay .search-dropdown-backdrop{display:none}
#search-dropdown-overlay #search-dropdown-menu{position:fixed;pointer-events:auto;display:flex;flex-direction:column;overflow:auto;box-sizing:border-box;padding:0;background:#291d14;border:1px solid #9b6a45;border-radius:0;box-shadow:0 20px 65px #0008;opacity:1;transform:none;visibility:visible;animation:none;scrollbar-width:thin;scrollbar-color:#8c6248 #211812}
#search-dropdown-overlay .header-search-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid #67462e}
#search-dropdown-overlay .header-search-heading h2{margin:0;font:700 16px/1.4 'Trebuchet MS',Arial,sans-serif;color:#f3dfcb;letter-spacing:-.02em}
#search-dropdown-overlay .header-search-close{display:grid;place-items:center;flex:none;width:40px;height:40px;margin:-8px -12px -8px 0;padding:0;background:none;border:0;border-radius:0;color:#ebcdb2;font:400 25px/1 Arial,sans-serif}
#search-dropdown-overlay .search-dropdown-form{display:flex;flex-direction:column;gap:12px;padding:14px 16px}
#search-dropdown-overlay .search-dropdown-label{font-size:13px;font-weight:400;color:#ceb296}
#search-dropdown-overlay .search-dropdown-input{display:block;box-sizing:border-box;width:100%;height:46px;min-height:46px;padding:10px 12px;background:#1b140f;border:1px solid #805a3c;border-radius:0;color:#f3dfcb;font:400 16px/1.5 'Trebuchet MS',Arial,sans-serif;box-shadow:none;outline-offset:2px}
#search-dropdown-overlay .search-dropdown-input::placeholder{color:#ad9078}
#search-dropdown-overlay .search-dropdown-input:focus{border-color:#e5a16a;outline:1px solid #e5a16a}
#search-dropdown-overlay .search-dropdown-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
#search-dropdown-overlay .search-filter-option{position:relative;display:inline-flex;align-items:center;gap:8px;margin:0;min-height:26px;padding:2px 0;background:transparent;border:0;border-radius:0;outline:none!important;box-shadow:none;color:#d7bda5;cursor:pointer;font:400 12px/1.4 'Trebuchet MS',Arial,sans-serif}
#search-dropdown-overlay .search-filter-option input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
#search-dropdown-overlay .search-filter-option:focus-within{outline:none;box-shadow:none}
#search-dropdown-overlay .search-filter-option:has(input:focus-visible) .search-filter-text{text-decoration:underline;text-underline-offset:3px}
#search-dropdown-overlay .search-filter-option.is-active{background:transparent;border:0;color:#f3dfcb}
#search-dropdown-overlay .search-filter-mark{width:12px;height:12px;flex:none;box-sizing:border-box;border:1px solid #a87a55;border-radius:0;background:transparent}
#search-dropdown-overlay .is-active .search-filter-mark{background:#e6a36e;box-shadow:inset 0 0 0 2px #3b291d;border-color:#e6a36e}
#search-dropdown-overlay #search-results-dropdown-menu{position:static;display:block;width:auto;max-width:none;min-width:0;margin:0 16px 14px;padding:0;background:transparent;border:0;border-top:1px solid #67462e;border-radius:0;box-shadow:none;opacity:1;transform:none;visibility:visible;animation:none}
#search-dropdown-overlay #search-results-dropdown-menu[hidden]{display:none!important}
#search-dropdown-overlay .search-results-box{display:flex;flex-direction:column;gap:0;max-height:340px;overflow:auto;padding:0 6px 0 0;scrollbar-width:thin;scrollbar-color:#8c6248 #211812}
#search-dropdown-overlay .search-result-item{display:flex;flex-direction:column;gap:4px;padding:12px 8px;border:0;border-bottom:1px solid #67462e;border-radius:0;background:transparent;color:#f3dfcb;text-decoration:none}
#search-dropdown-overlay .search-result-item:last-child{border-bottom:0}
#search-dropdown-overlay .search-result-item:hover,#search-dropdown-overlay .search-result-item:focus-visible{background:#eaa26618;outline:1px solid #b97e50;outline-offset:-1px;text-decoration:none}
#search-dropdown-overlay .search-result-title{font:400 14px/1.5 'Trebuchet MS',Arial,sans-serif;color:#f3dfcb;text-decoration:none}
#search-dropdown-overlay .search-result-meta{font:400 12px/1.5 'Trebuchet MS',Arial,sans-serif;color:#bda38c}
#search-dropdown-overlay mark{background:#d38b4933;color:inherit;text-decoration:none}
#search-dropdown-overlay .search-results-empty{display:flex;flex-direction:column;gap:6px;padding:15px 8px;font-size:13px;color:#bda38c}
#search-dropdown-overlay .search-results-empty strong{color:#f3dfcb;font-weight:400}
#search-dropdown-overlay :is(.search-results-box,#search-dropdown-menu)::-webkit-scrollbar{width:7px;height:7px}
#search-dropdown-overlay :is(.search-results-box,#search-dropdown-menu)::-webkit-scrollbar-track{background:#211812}
#search-dropdown-overlay :is(.search-results-box,#search-dropdown-menu)::-webkit-scrollbar-thumb{background:#8c6248;border:0;border-radius:8px}
@media(max-width:520px){#search-dropdown-overlay .header-search-heading{padding:16px}#search-dropdown-overlay .search-dropdown-form{padding:16px}#search-dropdown-overlay #search-results-dropdown-menu{margin:0 16px 16px}#search-dropdown-overlay .search-results-box{max-height:38dvh}}


/* Edit and delete controls use the wall-post icon drawings and button geometry. */
body .im-action-icon-button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 24px;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;padding:0!important;margin:0;box-sizing:border-box;border:1px solid #61432f!important;border-radius:0!important;background:#2d2017!important;color:#cda585!important;box-shadow:none;font-size:0!important;line-height:1;vertical-align:middle}
body .im-action-icon-button:hover{border-color:#a5724d!important;background:#3b291c!important;color:#ebbd94!important}
body .im-action-icon-button:focus-visible{outline:2px solid #e5a16a;outline-offset:2px}
body .im-action-icon-button:disabled{opacity:.5;cursor:not-allowed}
body .im-action-icon-button svg{display:block!important;pointer-events:none;flex:none;width:12px!important;height:12px!important;max-width:none;max-height:none;fill:none!important;stroke:currentColor!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:none;transform:none;opacity:1}
body .im-action-icon-button svg path{fill:none!important;stroke:inherit!important}
body .im-action-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
