/* Readable proportions and community identity. Loaded after the appearance layer. */
html[data-nomi-theme="light"]{--nomi-site-border:#bfb2cd;--nomi-site-muted:#574c63;--nomi-site-soft:#eee7f4}
html[data-nomi-theme="dark"]{--nomi-site-border:#655572}
html[data-nomi-theme] .footer{margin-top:32px;padding:24px 20px 32px;border-top:1px solid var(--nomi-site-border);background:var(--nomi-site-soft);font-size:15px;line-height:1.8;text-align:center;overflow-wrap:anywhere}
html[data-nomi-theme] .footer a{display:inline-block;padding:4px 6px;color:var(--nomi-site-text)}
html[data-nomi-theme] :is(#nomiWalletPanel,#nomiCommunities){font-size:17px;line-height:1.5}
html[data-nomi-theme] :is(#nomiWalletPanel,#nomiCommunities) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:17px;min-height:46px;border-color:var(--nomi-site-border);color:var(--nomi-site-text);background:var(--nomi-site-surface)}
html[data-nomi-theme] :is(#nomiWalletPanel,#nomiCommunities) :is(p,.nmc-post-text){line-height:1.5;overflow-wrap:anywhere}
html[data-nomi-theme] :is(.nomi-wallet-card,.nomi-wallet-section,.nomi-referral-card,.nmc-panel){padding:20px;border-radius:14px}
html[data-nomi-theme] #nomiWalletPanel{max-width:1000px;margin-inline:auto}
html[data-nomi-theme] #nomiWalletPanel :is(.nomi-wallet-hero,.nomi-wallet-balance,.nomi-referral,.nomi-wallet-notice,.nomi-wallet-earnings){padding:20px;border-radius:14px;margin-block:16px}
html[data-nomi-theme] #nomiWalletPanel .nomi-wallet-hero{gap:16px}
html[data-nomi-theme] #nomiWalletPanel .nomi-wallet-icon{width:64px;height:64px;font-size:32px;border-radius:16px}
html[data-nomi-theme] #nomiWalletPanel :is(.nomi-wallet-subtitle,.nomi-referral p,.nomi-referral-label){font-size:17px;line-height:1.5}
html[data-nomi-theme] #nomiWalletPanel :is(.nomi-wallet-balance-label,.nomi-referral-terms,.nomi-referral-stats span){font-size:15px;line-height:1.5}
html[data-nomi-theme] #nomiWalletPanel .nomi-referral-linkrow{gap:8px;align-items:center}
html[data-nomi-theme] #nomiWalletPanel .nomi-referral-linkrow input{min-width:0;min-height:48px;padding:10px 12px;font-size:17px;border-color:#9581a5}
html[data-nomi-theme="light"] #nomiWalletPanel .nomi-referral-linkrow button{background:#eee7f4;color:#4c2a65;border:1px solid #a68db8;font-weight:700}
html[data-nomi-theme="light"] #nomiWalletPanel .nomi-referral-linkrow button:first-of-type{background:#704297;color:#fff;border-color:#704297}
html[data-nomi-theme] :is(.nomi-wallet-card,.nomi-referral-card) :is(p,label){font-size:17px}
html[data-nomi-theme] :is(#nomiWalletPanel,#nomiCommunities) :is(button,.nmc-btn){min-height:44px}
html[data-nomi-theme="light"] :is(#nomiWalletPanel,#nomiCommunities) button{border-color:#a895ba;color:#34253e}
html[data-nomi-theme="light"] #nomiCommunities .nmc-primary{background:#704297;color:#fff;border-color:#704297}
html[data-nomi-theme] #nomiThemeSwitch{position:relative;width:auto;flex:0 0 auto;order:initial;display:block;padding:0;margin:0 0 0 8px;border:0;background:transparent;border-radius:10px}
html[data-nomi-theme] #nomiThemeToggle{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border:1px solid var(--nomi-site-accent);border-radius:10px;background:var(--nomi-site-soft);color:var(--nomi-site-text);font-size:14px}
html[data-nomi-theme] #nomiThemeMenu{position:absolute;z-index:2500;right:0;top:calc(100% + 8px);width:176px;padding:7px;border:1px solid var(--nomi-site-border);border-radius:12px;background:var(--nomi-site-surface);box-shadow:0 8px 24px var(--nomi-site-shadow)}
#nomiThemeMenu[hidden]{display:none!important}
html[data-nomi-theme] #nomiThemeMenu button{display:block;width:100%;min-height:44px;text-align:left;border-radius:8px;padding:9px 12px}
html[data-nomi-theme="light"] #nomiThemeMenu button[aria-pressed="true"]{color:#fff;background:#704297}
html[data-nomi-theme="dark"] #nomiThemeMenu button[aria-pressed="true"]{color:#1b2031;background:#c6a7ed}
/* Override the old monochrome receipt declarations, including the light theme. */
html[data-nomi-theme] #nomiMessenger .nomi-receipt{display:inline-block;font-family:Arial,sans-serif!important;font-size:18px!important;font-weight:700!important;line-height:1.25;opacity:1!important;text-shadow:none!important}
html[data-nomi-theme="light"] #nomiMessenger .nomi-receipt.sent{color:#68636e!important}
html[data-nomi-theme="light"] #nomiMessenger .nomi-receipt.delivered{color:#76501c!important}
html[data-nomi-theme="light"] #nomiMessenger .nomi-receipt.read{color:#1265bd!important}
html[data-nomi-theme="dark"] #nomiMessenger .nomi-receipt.sent{color:#c5bdcf!important}
html[data-nomi-theme="dark"] #nomiMessenger .nomi-receipt.delivered{color:#edc779!important}
html[data-nomi-theme="dark"] #nomiMessenger .nomi-receipt.read{color:#73baff!important}
#nomiCommunities .nmc-creator-row{padding:12px 16px;margin:12px 0;background:var(--nomi-site-surface);border:1px solid var(--nomi-site-border);border-radius:12px}
#nomiCommunities .nmc-author{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%}
html[data-nomi-theme] #nomiCommunities .nmc-profile-link{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 4px 0 0;border:0;background:transparent;color:var(--nomi-site-text);text-align:left;border-radius:6px;max-width:100%;font-weight:700;box-shadow:none}
#nomiCommunities .nmc-profile-link .nmc-author-name{overflow-wrap:anywhere;min-width:0}
#nomiCommunities .nmc-profile-link .nmc-avatar{flex-shrink:0}
#nomiCommunities .nmc-profile-link:hover .nmc-author-name{text-decoration:underline}
#nomiCommunities .nmc-role{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border:1px solid var(--nomi-site-border);border-radius:6px;font-size:13px;line-height:1.4;font-weight:700;white-space:nowrap}
html[data-nomi-theme="light"] #nomiCommunities .nmc-role-owner{background:#f7ecc9;color:#654600;border-color:#bd9a3c}
html[data-nomi-theme="light"] #nomiCommunities .nmc-role-admin{background:#eee1f8;color:#633584;border-color:#a989bf}
html[data-nomi-theme="light"] #nomiCommunities .nmc-role-moderator{background:#dcedf6;color:#205975;border-color:#80aabd}
html[data-nomi-theme="dark"] #nomiCommunities .nmc-role-owner{background:#473c22;color:#f1d787}
html[data-nomi-theme="dark"] #nomiCommunities .nmc-role-admin{background:#3e2e52;color:#e0c1fa}
html[data-nomi-theme="dark"] #nomiCommunities .nmc-role-moderator{background:#213c4b;color:#a8d6ee}
#nomiCommunities .nmc-team-member{padding:14px 0;border-bottom:1px solid var(--nomi-site-border)}
#nomiCommunities .nmc-team-member:last-child{border-bottom:0}
#nomiCommunities .nmc-chat-panel{padding:18px}
#nomiCommunities #nmcChatLog{display:flex;flex-direction:column;gap:14px;margin:16px 0}
html[data-nomi-theme] #nomiCommunities .nmc-chat-message{max-width:88%;align-self:flex-start;margin:0;padding:12px 14px;border:1px solid var(--nomi-site-border);border-radius:13px;background:var(--nomi-site-surface);color:var(--nomi-site-text)}
html[data-nomi-theme] #nomiCommunities .nmc-chat-own{align-self:flex-end;background:var(--nomi-site-soft)}
#nomiCommunities .nmc-chat-message>.nmc-post-text{margin:6px 0;font-size:17px;font-weight:500}
#nomiCommunities .nmc-chat-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:4px}
#nomiCommunities .nmc-chat-actions .nmc-time{margin:0;font-size:13px;color:var(--nomi-site-muted)}
#nomiCommunities .nmc-chat-actions .nmc-btn{font-size:14px;padding:5px 8px;border:0;box-shadow:none;background:transparent}
html[data-nomi-theme] #nomiCommunities .nmc-chat-quote{margin:8px 0;padding:8px 10px;border:0;border-left:3px solid var(--nomi-site-accent);border-radius:0 7px 7px 0;background:var(--nomi-site-bg);color:var(--nomi-site-text);font-size:15px;overflow-wrap:anywhere}
#nomiCommunities .nmc-chat-quote summary{list-style:none;cursor:pointer}
#nomiCommunities .nmc-chat-quote summary strong{display:block;color:var(--nomi-site-accent);font-size:14px}
#nomiCommunities .nmc-quote-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere}
#nomiCommunities .nmc-quote-toggle{display:block;font-size:13px;color:var(--nomi-site-accent);margin-top:3px}
#nomiCommunities .nmc-chat-quote[open] .nmc-quote-excerpt{display:none}
#nomiCommunities .nmc-chat-quote p{white-space:pre-wrap;margin:8px 0 0}
#nomiCommunities .nmc-chat-composer{display:block;margin-top:16px;padding-top:16px;border-top:1px solid var(--nomi-site-border)}
#nomiCommunities .nmc-chat-composer label{display:block;margin-bottom:8px;font-size:15px;color:var(--nomi-site-muted)}
#nomiCommunities .nmc-chat-input-row{display:flex;gap:10px;align-items:flex-end}
#nomiCommunities .nmc-chat-input-row textarea{width:100%;min-width:0;resize:vertical;line-height:1.5;padding:10px 12px;border-radius:10px}
#nomiCommunities .nmc-reply-draft{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 12px;margin-bottom:12px;background:var(--nomi-site-soft);color:var(--nomi-site-text);border-left:3px solid var(--nomi-site-accent);border-radius:0 8px 8px 0;font-size:14px}
#nomiCommunities .nmc-reply-draft>div{min-width:0}
@media(max-width:600px){html[data-nomi-theme] #nomiThemeSwitch{width:auto;margin-left:auto;flex-basis:auto}#nomiThemeToggle .nomi-theme-label{display:none}html[data-nomi-theme] :is(.nomi-wallet-card,.nomi-wallet-section,.nomi-referral-card,.nmc-panel){padding:16px}html[data-nomi-theme] #nomiCommunities .nmc-chat-message{max-width:96%}#nomiCommunities .nmc-chat-input-row{flex-wrap:wrap}#nomiCommunities .nmc-chat-input-row .nmc-primary{margin-left:auto}html[data-nomi-theme] .footer{margin-top:24px;padding:20px 14px 28px}}
