/* Freezes, bans and appeals (restriction.js): the full-ban page, the card on 我的, the details sheet. */
html.rx-locked, html.rx-locked body { overflow: hidden; }

.rx-page { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); background: radial-gradient(120% 60% at 50% 0%, rgba(255, 109, 122, .10), transparent 62%), #0d1115; color: #eef2f4; }
.rx-page[hidden] { display: none; }
.rx-page-panel { width: min(560px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.rx-page-mark { width: 56px; height: 56px; margin: 8px auto 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 109, 122, .14); color: #ff9aa4; }
.rx-page-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rx-page h1 { margin: 0; font-size: 22px; font-weight: 700; text-align: center; }
.rx-page-who { margin: -6px 0 0; color: #9aa6ae; font-size: 13px; text-align: center; }
.rx-page-who:empty { display: none; }
.rx-page-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid #2b343b; border-radius: 14px; background: #161c22; }
.rx-page-balance:empty { display: none; }
.rx-page-balance small { color: #9aa6ae; font-size: 13px; }
.rx-page-balance b { font-size: 20px; font-variant-numeric: tabular-nums; }
.rx-page-body { display: flex; flex-direction: column; gap: 14px; color: #9aa6ae; font-size: 14px; }
.rx-page-logout { min-height: 46px; border: 1px solid #3a454d; border-radius: 14px; background: transparent; color: #eef2f4; font: inherit; font-size: 15px; cursor: pointer; }
.rx-page-logout:disabled { opacity: .6; }

/* One restriction: facts, appeals, the form. Used on the page and in the sheet. */
.rx-item { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #2b343b; border-radius: 16px; background: #161c22; color: #eef2f4; }
.rx-item-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rx-tag { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.rx-tag-ban { background: rgba(255, 109, 122, .16); color: #ff9aa4; }
.rx-tag-freeze { background: rgba(255, 181, 77, .16); color: #ffcf8a; }
.rx-tag-partial { background: rgba(122, 167, 255, .16); color: #b5ccff; }
.rx-item-state { color: #9aa6ae; font-size: 12px; }
.rx-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.rx-facts dt { color: #9aa6ae; white-space: nowrap; }
.rx-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rx-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: #b9c4cb; font-size: 13px; line-height: 1.6; }
.rx-appeals { display: flex; flex-direction: column; gap: 8px; }
.rx-appeals h3, .rx-form h3 { margin: 4px 0 0; font-size: 15px; }
.rx-appeal { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid #2b343b; border-radius: 12px; background: #1e252c; }
.rx-appeal-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.rx-appeal-top small { color: #9aa6ae; }
.rx-appeal-pending .rx-appeal-top b { color: #ffcf8a; }
.rx-appeal-approved .rx-appeal-top b { color: #6fe3a0; }
.rx-appeal-rejected .rx-appeal-top b { color: #ff9aa4; }
.rx-appeal-text { margin: 0; color: #b9c4cb; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.rx-appeal-reply { margin: 0; padding-top: 6px; border-top: 1px solid #2b343b; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.rx-appeal-reply.is-waiting { color: #9aa6ae; }
.rx-blocked { margin: 0; color: #9aa6ae; font-size: 13px; }
.rx-form { display: flex; flex-direction: column; gap: 8px; }
.rx-hint { margin: 0; color: #9aa6ae; font-size: 13px; line-height: 1.5; }
.rx-textarea, .rx-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #3a454d; border-radius: 12px; background: #0d1115; color: #eef2f4; font: inherit; font-size: 15px; }
.rx-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.rx-input { min-height: 46px; }
.rx-textarea:focus, .rx-input:focus { outline: none; border-color: #d8ff4f; }
.rx-counter { align-self: flex-end; margin-top: -4px; color: #9aa6ae; font-size: 12px; font-variant-numeric: tabular-nums; }
.rx-message { min-height: 0; margin: 0; color: #ff9aa4; font-size: 13px; }
.rx-message:empty { display: none; }
.rx-submit { width: 100%; }
.rx-submit:disabled { opacity: .6; }
.rx-page .rx-submit { min-height: 48px; border: 0; border-radius: 14px; background: #d8ff4f; color: #11150a; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }

/* The card at the top of 我的. */
html.ui-v2 .v2-account .rx-card { border-color: rgba(122, 167, 255, .4); background: linear-gradient(135deg, rgba(122, 167, 255, .12), rgba(122, 167, 255, .03)); }
html.ui-v2 .v2-account .rx-card.is-freeze { border-color: rgba(255, 181, 77, .45); background: linear-gradient(135deg, rgba(255, 181, 77, .12), rgba(255, 181, 77, .03)); }
html.ui-v2 .v2-account .rx-card .v2-invite-card-cta { background: var(--v2-raised); color: var(--v2-text); }
html.ui-v2 .v2-account .rx-card[hidden] { display: none; }
html.ui-v2 #v2RestrictionSheet .v2-sheet-body { display: flex; flex-direction: column; gap: 14px; }
