/* ================================================================
 * SunnyPhone — 小红书 · 页面框架
 * ================================================================ */
.rb-overlay {
	inset: 0;
	z-index: 3250;
	background: #fff;
	color: #202020;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	-webkit-tap-highlight-color: transparent;
}

.rb-overlay.visible { display: flex; }
.rb-overlay button,
.rb-overlay input,
.rb-overlay textarea { font: inherit; }
.rb-overlay button { cursor: pointer; touch-action: manipulation; }

.rb-app {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
}

.rb-header {
	z-index: 8;
	flex: 0 0 52px;
	height: 52px;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) 54px;
	align-items: center;
	padding: 0 10px;
	box-sizing: border-box;
	border-bottom: 1px solid #f0f0f0;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(15px);
}

.rb-header-btn {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border: 0;
	padding: 0;
	color: #262626;
	background: transparent;
	border-radius: 50%;
}

.rb-header-btn:hover { background: #f6f6f6; }
.rb-header-btn svg { width: 23px; height: 23px; }
.rb-header-spacer { display: block; width: 42px; }
.rb-header-title {
	min-width: 0;
	overflow: hidden;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 700;
}

.rb-header-text {
	border: 0;
	padding: 7px 0;
	color: #777;
	background: transparent;
	font-size: 12px;
	white-space: nowrap;
}

.rb-home-tabs {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
}

.rb-header.rb-header-home { grid-template-columns: 84px minmax(0, 1fr) 84px; }
.rb-header-home > .rb-header-btn { justify-self: start; }
.rb-header-home > .rb-header-actions { width: 84px; }

.rb-home-tabs button {
	position: relative;
	height: 100%;
	border: 0;
	padding: 2px 0 0;
	color: #8c8c8c;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
}

.rb-home-tabs button.active { color: #1d1d1d; }
.rb-home-tabs button.active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 6px;
	width: 18px;
	height: 3px;
	border-radius: 3px;
	background: #ff2442;
	transform: translateX(-50%);
}

.rb-body {
	flex: 1;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	box-sizing: border-box;
	padding-bottom: calc(72px + env(safe-area-inset-bottom));
	background: #fff;
	scrollbar-width: none;
}

.rb-body::-webkit-scrollbar { display: none; }
.rb-view-detail { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.rb-view-search,
.rb-view-message-category,
.rb-view-collection { padding-bottom: 20px; }
.rb-view-messages {
	padding-bottom: calc(62px + env(safe-area-inset-bottom));
	background: #fff;
}

.rb-nav {
	position: absolute;
	z-index: 9;
	left: 0;
	right: 0;
	bottom: 0;
	height: 62px;
	padding-bottom: env(safe-area-inset-bottom);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	box-sizing: content-box;
	border-top: 1px solid rgba(0, 0, 0, .08);
	background: rgba(255, 255, 255, .97);
	backdrop-filter: blur(16px);
}

.rb-nav[hidden] { display: none !important; }
.rb-nav button {
	position: relative;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	border: 0;
	padding: 2px 0 0;
	color: #8a8a8a;
	background: transparent;
}
.rb-nav-unread {
	position: absolute;
	top: 5px;
	left: calc(50% + 8px);
	min-width: 14px;
	height: 14px;
	display: grid;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 9px;
	padding: 0 2px;
	color: #fff;
	background: #ff2442;
	font-size: 7px;
	font-style: normal;
}

.rb-nav button > span {
	width: 25px;
	height: 25px;
	display: grid;
	place-items: center;
	border-radius: 9px;
}

.rb-nav svg { width: 22px; height: 22px; }
.rb-nav small { font-size: 10px; }
.rb-nav button.active { color: #202020; font-weight: 700; }
.rb-nav button.active > span { background: #f3f3f3; }
.rb-nav .rb-nav-create > span {
	width: 35px;
	height: 26px;
	color: #fff;
	background: #ff2442;
	border-radius: 8px;
	box-shadow: 0 4px 11px rgba(255, 36, 66, .2);
}
.rb-nav .rb-nav-create svg { width: 19px; height: 19px; stroke-width: 2; }

.rb-home { padding: 4px 10px 20px; }

.rb-note-grid {
	columns: 2;
	column-gap: 9px;
}
.rb-note-grid-horizontal {
	columns: auto;
	display: flex;
	align-items: flex-start;
	gap: 9px;
}
.rb-note-column {
	min-width: 0;
	flex: 1;
}
.rb-note-card {
	width: 100%;
	display: inline-block;
	margin: 0 0 12px;
	overflow: hidden;
	break-inside: avoid;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
	vertical-align: top;
}
.rb-note-open {
	width: 100%;
	display: block;
	border: 0;
	padding: 0;
	color: inherit;
	background: transparent;
	text-align: left;
}
.rb-note-cover {
	position: relative;
	width: 100%;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 11px;
	isolation: isolate;
}
.rb-note-cover::before,
.rb-detail-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .7), transparent 30%),
		linear-gradient(150deg, rgba(255, 255, 255, .18), transparent 55%);
}
.rb-note-cover::after,
.rb-detail-cover::after {
	content: "";
	position: absolute;
	width: 70%;
	aspect-ratio: 1;
	right: -20%;
	bottom: -30%;
	z-index: -1;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	box-shadow: 0 0 0 18px rgba(255, 255, 255, .08), 0 0 0 36px rgba(255, 255, 255, .06);
}
.rb-note-cover span {
	padding: 16px 10px;
	color: rgba(255, 255, 255, .96);
	text-align: center;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	font-family: Georgia, "Songti SC", serif;
	font-size: clamp(15px, 4.5vw, 21px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .05em;
}
.rb-cover-tall { aspect-ratio: .78; }
.rb-cover-square { aspect-ratio: 1; }
.rb-cover-wide { aspect-ratio: .9; }
.rb-cover-sunset { background: linear-gradient(145deg, #ffb598, #e8797c 52%, #745b8e); }
.rb-cover-green { background: linear-gradient(145deg, #a9d6b7, #5f9c80 55%, #315d53); }
.rb-cover-violet { background: linear-gradient(145deg, #c5b4ec, #8874bb 55%, #4a426f); }
.rb-cover-cream { background: linear-gradient(145deg, #e8cfa4, #c58d66 55%, #825b48); }
.rb-cover-blue { background: linear-gradient(145deg, #b9dcf4, #75a8d1 55%, #4f739f); }
.rb-cover-rose { background: linear-gradient(145deg, #e8b8be, #c77c89 55%, #835466); }

.rb-note-copy { padding: 8px 7px 5px; }
.rb-note-copy h2 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #282828;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}
.rb-note-copy footer {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	color: #9a9a9a;
}
.rb-note-copy footer b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 9px;
	font-weight: 500;
}
.rb-mini-avatar {
	width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, #ff9ea9, #ff546b);
	font-size: 8px;
}
.rb-note-copy footer em {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: 8px;
	font-style: normal;
}
.rb-note-copy footer svg { width: 12px; height: 12px; }
.rb-framework-tip {
	margin: 8px 0 0;
	padding: 11px 4px;
	color: #aaa;
	text-align: center;
	font-size: 9px;
	line-height: 1.6;
}

/* 视频 */
.rb-view-video {
	overflow: hidden;
	padding-bottom: calc(62px + env(safe-area-inset-bottom));
	background: #fafafa;
}
.rb-video-placeholder {
	position: relative;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 20px 34px 42px;
	box-sizing: border-box;
	text-align: center;
}
.rb-video-placeholder::before {
	content: "";
	position: absolute;
	top: 17%;
	left: 50%;
	width: 230px;
	height: 230px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255,36,66,.075), rgba(255,36,66,0) 68%);
	transform: translateX(-50%);
}
.rb-video-placeholder-art {
	position: relative;
	width: 112px;
	height: 112px;
	display: grid;
	place-items: center;
	margin-bottom: 23px;
	border: 1px solid #f1e4e6;
	border-radius: 34px;
	background: linear-gradient(145deg, #fff, #fff4f6);
	box-shadow: 0 18px 40px rgba(143, 36, 54, .09);
}
.rb-video-placeholder-art > span {
	width: 53px;
	height: 53px;
	display: grid;
	place-items: center;
	border-radius: 18px;
	color: #fff;
	background: linear-gradient(145deg, #ff526b, #ff2442);
	box-shadow: 0 8px 18px rgba(255,36,66,.22);
}
.rb-video-placeholder-art svg { width: 28px; height: 28px; }
.rb-video-placeholder-art i {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffd0d7;
}
.rb-video-placeholder-art i:nth-of-type(1) { top: 16px; right: 19px; }
.rb-video-placeholder-art i:nth-of-type(2) { left: 17px; bottom: 20px; width: 5px; height: 5px; background: #e4dff4; }
.rb-video-placeholder > small { color: #ff2442; font-size: 8px; font-weight: 700; letter-spacing: 1.7px; }
.rb-video-placeholder h1 { margin: 8px 0 7px; color: #272526; font-size: 18px; }
.rb-video-placeholder p { max-width: 230px; margin: 0; color: #aaa5a7; font-size: 10px; line-height: 1.7; }

/* 笔记详情 */
.rb-header.rb-header-detail {
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 4px;
	padding: 0 5px;
}
.rb-detail-header-author {
	min-width: 0;
	height: 48px;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	overflow: hidden;
	border: 0;
	padding: 0;
	color: #202020;
	background: transparent;
	text-align: left;
}
.rb-detail-header-avatar {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 0;
	border-radius: 50%;
	color: #666;
	background: #ededed;
	object-fit: cover;
	font-size: 10px;
	font-weight: 600;
}
.rb-detail-header-author > span { min-width: 0; }
.rb-detail-header-author b {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
}
.rb-detail-header-author small {
	display: flex;
	align-items: center;
	gap: 2px;
	overflow: hidden;
	margin-top: 2px;
	color: #999;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 8px;
	line-height: 1.2;
}
.rb-detail-header-author small svg { width: 9px; height: 9px; flex: 0 0 auto; }
.rb-detail-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
}
.rb-detail-header-actions .rb-header-btn { width: 35px; height: 40px; }
.rb-detail-header-actions .rb-header-btn svg { width: 20px; height: 20px; }
.rb-detail-follow {
	height: 21px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ff2442;
	border-radius: 11px;
	padding: 0 5px;
	color: #ff2442;
	background: #fff;
	font-size: 6px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}
.rb-detail-follow.is-following {
	border-color: #dedede;
	color: #8d8d8d;
}
.rb-detail { min-height: 100%; background: #f5f5f5; }
.rb-detail-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1.08;
	display: grid;
	place-items: center;
	overflow: hidden;
	isolation: isolate;
}
.rb-detail-regenerate-image {
	position: absolute;
	top: 11px;
	left: 11px;
	z-index: 2;
	height: 25px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 13px;
	padding: 0 9px;
	color: #fff;
	background: rgba(20, 20, 20, .42);
	box-shadow: 0 2px 9px rgba(0, 0, 0, .13);
	backdrop-filter: blur(7px);
	font-size: 8px;
	line-height: 1;
}
.rb-detail-regenerate-image svg { width: 12px; height: 12px; }
.rb-detail-regenerate-image:disabled { opacity: .62; }
.rb-detail-cover > span {
	padding: 30px;
	color: #fff;
	text-align: center;
	text-shadow: 0 3px 18px rgba(0, 0, 0, .16);
	font-family: Georgia, "Songti SC", serif;
	font-size: 31px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .08em;
}
.rb-detail-cover > i {
	position: absolute;
	right: 12px;
	bottom: 12px;
	border-radius: 12px;
	padding: 4px 8px;
	color: #fff;
	background: rgba(0, 0, 0, .35);
	font-size: 9px;
	font-style: normal;
}
.rb-detail-main,
.rb-comments { padding: 17px 16px; background: #fff; }
.rb-detail-main h1 { margin: 0 0 11px; font-size: 18px; font-weight: 650; line-height: 1.45; }
.rb-detail-main > p { margin: 0; color: #333; font-size: 13px; line-height: 1.78; white-space: pre-wrap; overflow-wrap: anywhere; }
.rb-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.rb-detail-tags button {
	border: 0;
	padding: 0;
	color: #376b9e;
	background: transparent;
	font-size: 12px;
}
.rb-detail-main > time { display: block; margin-top: 17px; color: #aaa; font-size: 9px; }
.rb-comments { margin-top: 7px; min-height: 220px; }
.rb-comments h2 { margin: 0; color: #777; font-size: 11px; font-weight: 500; }
.rb-comment-empty {
	min-height: 145px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	color: #b5b5b5;
	text-align: center;
}
.rb-comment-empty svg { width: 27px; height: 27px; }
.rb-comment-empty b { color: #777; font-size: 11px; }
.rb-comment-empty span { font-size: 9px; }
.rb-detail-actions {
	position: absolute;
	z-index: 9;
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 52px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) repeat(3, 44px);
	align-items: center;
	gap: 5px;
	padding: 6px 11px calc(6px + env(safe-area-inset-bottom));
	box-sizing: content-box;
	border-top: 1px solid #eee;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: blur(15px);
}
.rb-detail-actions > button {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	border: 0;
	color: #545454;
	background: transparent;
	font-size: 8px;
}
.rb-detail-actions > button svg { width: 21px; height: 21px; }
.rb-detail-actions .rb-comment-entry {
	height: 34px;
	display: block;
	border-radius: 18px;
	padding: 0 14px;
	color: #999;
	background: #f4f4f4;
	text-align: left;
	font-size: 10px;
}

/* 发布 */
.rb-compose { padding: 13px 14px 30px; }
.rb-media-picker {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 72px;
	gap: 9px;
	margin-bottom: 14px;
}
.rb-media-picker button {
	height: 118px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border: 1px dashed #e2e2e2;
	border-radius: 12px;
	color: #878787;
	background: #f8f8f8;
}
.rb-media-picker button > span {
	width: 31px;
	height: 31px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	background: #353535;
}
.rb-media-picker button svg { width: 18px; height: 18px; }
.rb-media-picker button b { font-size: 11px; }
.rb-media-picker button small { color: #aaa; font-size: 8px; }
.rb-media-picker button + button b,
.rb-media-picker button + button small { display: none; }
.rb-field { display: block; border-bottom: 1px solid #f0f0f0; }
.rb-field input,
.rb-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 0;
	outline: 0;
	padding: 13px 2px;
	color: #272727;
	background: transparent;
}
.rb-field input { font-size: 15px; font-weight: 650; }
.rb-field textarea { min-height: 145px; resize: none; font-size: 12px; line-height: 1.7; }
.rb-field input::placeholder,
.rb-field textarea::placeholder { color: #b3b3b3; }
.rb-compose-tools {
	display: flex;
	gap: 8px;
	padding: 12px 0;
	overflow-x: auto;
}
.rb-compose-tools button {
	flex: 0 0 auto;
	border: 0;
	border-radius: 15px;
	padding: 7px 11px;
	color: #555;
	background: #f5f5f5;
	font-size: 10px;
}
.rb-compose-options { margin-top: 6px; border-top: 8px solid #f7f7f7; }
.rb-compose-options button {
	width: 100%;
	min-height: 45px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 0;
	border-bottom: 1px solid #f1f1f1;
	padding: 0 2px;
	color: #333;
	background: #fff;
	font-size: 11px;
}
.rb-compose-options em { color: #aaa; font-style: normal; }
.rb-compose-notice { margin: 16px 3px 10px; color: #aaa; text-align: center; font-size: 9px; line-height: 1.55; }
.rb-publish-btn {
	width: 100%;
	min-height: 43px;
	border: 0;
	border-radius: 22px;
	color: #fff;
	background: #ff2442;
	box-shadow: 0 7px 18px rgba(255, 36, 66, .2);
	font-size: 13px;
	font-weight: 700;
}

/* 消息 */
.rb-messages {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #f7f7f7;
}
.rb-message-shortcuts {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 18px 13px 17px;
	background: #fff;
}
.rb-message-shortcuts > button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	border: 0;
	padding: 0;
	color: #333;
	background: transparent;
	font-size: 10px;
}
.rb-message-shortcuts > button b { font-weight: 500; }
.rb-message-shortcut-icon {
	position: relative;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	box-shadow: 0 5px 14px rgba(0, 0, 0, .1);
}
.rb-message-shortcut-icon svg { width: 23px; height: 23px; stroke-width: 1.7; }
.rb-message-shortcut-icon.like { background: linear-gradient(145deg, #ff7489, #ff3655); }
.rb-message-shortcut-icon.comment { background: linear-gradient(145deg, #82b9ff, #4d86e9); }
.rb-message-shortcut-icon.follow { background: linear-gradient(145deg, #f1b45f, #ed833e); }
.rb-dm-panel {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	margin-top: 8px;
	padding: 0 14px;
	background: #fff;
}
.rb-dm-panel > header {
	min-height: 49px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #f2f2f2;
}
.rb-dm-panel h2 { margin: 0; font-size: 14px; }
.rb-dm-panel header button { border: 0; color: #777; background: transparent; font-size: 10px; }
.rb-dm-empty {
	flex: 1;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #b2b2b2;
	text-align: center;
}
.rb-dm-empty svg { width: 30px; height: 30px; }
.rb-dm-empty b { color: #777; font-size: 12px; }
.rb-dm-empty span { font-size: 9px; }
.rb-message-category-page { min-height: 100%; background: #f7f7f7; }
.rb-message-category-hero {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 15px;
	background: #fff;
}
.rb-message-category-hero > div { min-width: 0; }
.rb-message-category-hero b { font-size: 13px; }
.rb-message-category-hero p { margin: 5px 0 0; color: #999; font-size: 9px; }
.rb-section-empty {
	min-height: 210px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #aaa;
	text-align: center;
}
.rb-section-empty b { color: #777; font-size: 12px; }
.rb-section-empty span { font-size: 9px; }

/* 作者主页 */
.rb-view-author { padding-bottom: 0; background: #fff; }
.rb-app.rb-app-author .rb-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 20;
	border: 0;
	background: transparent;
	backdrop-filter: none;
}
.rb-header.rb-header-author { grid-template-columns: 46px minmax(0,1fr) 82px; padding: 0 9px; }
.rb-app.rb-app-author .rb-header-btn {
	width: 34px;
	height: 34px;
	color: #282528;
	background: transparent;
}
.rb-app.rb-app-author .rb-header > .rb-header-btn {
	border-radius: 50%;
	color: #fff;
	background: rgba(67,54,59,.38);
	backdrop-filter: blur(8px);
}
.rb-author-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.rb-author-header-actions .rb-header-btn svg { width: 21px; height: 21px; }
.rb-author-header-actions .rb-header-btn:hover { background: rgba(255,255,255,.22); }
.rb-author-header-actions .rb-header-btn:last-child svg { width: 24px; height: 24px; }
.rb-author-page { min-height: 100%; background: #f5f5f5; }
.rb-author-hero {
	position: relative;
	min-height: 0;
	overflow: hidden;
	color: #2d292b;
	background-position: center !important;
	background-size: cover !important;
}
.rb-author-hero-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.18) 48%, rgba(255,255,255,.87) 100%),
		linear-gradient(120deg, rgba(255,210,221,.08), rgba(255,255,255,.18));
}
.rb-author-profile {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	box-sizing: border-box;
	padding: 82px 18px 19px;
}
.rb-author-avatar {
	width: 80px;
	height: 80px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,.96);
	border-radius: 50%;
	box-sizing: border-box;
	object-fit: cover;
	color: #fff;
	background: rgba(255,255,255,.38);
	box-shadow: 0 4px 14px rgba(86,59,67,.16);
	font-size: 23px;
	font-weight: 700;
}
.rb-author-profile > h1 {
	max-width: 100%;
	overflow: hidden;
	margin: 14px 0 0;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 20px;
	font-weight: 680;
	line-height: 1.3;
}
.rb-author-account { margin: 6px 0 0; color: rgba(45,41,43,.52); font-size: 9px; }
.rb-author-bio {
	max-width: 100%;
	margin: 13px 0 0;
	color: rgba(45,41,43,.88);
	font-size: 10px;
	line-height: 1.65;
	white-space: pre-wrap;
}
.rb-author-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rb-author-tags span {
	min-height: 23px;
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	border: 1px solid rgba(255,255,255,.72);
	border-radius: 12px;
	padding: 0 9px;
	color: #565052;
	background: rgba(255,255,255,.72);
	box-shadow: 0 1px 5px rgba(75,53,60,.04);
	font-size: 8px;
	backdrop-filter: blur(7px);
}
.rb-author-stats {
	display: flex;
	align-items: center;
	gap: 27px;
	margin-top: 22px;
}
.rb-author-stats > div,
.rb-author-stats > button {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 5px;
	border: 0;
	padding: 0;
	color: rgba(45,41,43,.55);
	background: transparent;
	font-size: 8px;
	white-space: nowrap;
}
.rb-author-stats b { color: #2b2829; font-size: 14px; font-weight: 650; line-height: 1; }
.rb-author-actions { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 17px; }
.rb-author-follow {
	min-width: 0;
	height: 38px;
	flex: 1;
	border: 0;
	border-radius: 20px;
	color: #fff;
	background: #ff2442;
	box-shadow: 0 5px 14px rgba(255,36,66,.15);
	font-size: 11px;
	font-weight: 650;
}
.rb-author-follow.is-following {
	border: 0;
	color: #666;
	background: rgba(242,242,242,.92);
	box-shadow: none;
}
.rb-author-message {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border: 1px solid rgba(61,54,57,.18);
	border-radius: 50%;
	padding: 0;
	color: #373234;
	background: rgba(255,255,255,.58);
	backdrop-filter: blur(8px);
}
.rb-author-message svg { width: 20px; height: 20px; }
.rb-author-tabs {
	position: sticky;
	z-index: 6;
	top: 0;
	height: 48px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid #f0f0f0;
	background: rgba(255,255,255,.97);
	backdrop-filter: blur(12px);
}
.rb-author-tabs button {
	position: relative;
	border: 0;
	padding: 0;
	color: #999;
	background: transparent;
	font-size: 11px;
}
.rb-author-tabs button.active { color: #252525; font-weight: 650; }
.rb-author-tabs button.active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 5px;
	width: 21px;
	height: 3px;
	border-radius: 3px;
	background: #ff2442;
	transform: translateX(-50%);
}
.rb-author-content { min-height: 300px; background: #fff; }
.rb-author-note-grid { padding: 10px 10px 18px; background: #f5f5f5; }
.rb-author-empty {
	min-height: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	color: #aaa;
}
.rb-author-empty > span {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	margin-bottom: 3px;
	border-radius: 50%;
	color: #aaa;
	background: #f6f6f6;
}
.rb-author-empty svg { width: 24px; height: 24px; stroke-width: 1.4; }
.rb-author-empty b { color: #777; font-size: 11px; font-weight: 600; }
.rb-author-empty small { color: #aaa; font-size: 8px; }
.rb-author-collection-tools {
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
}
.rb-author-collection-tools span { color: #666; font-size: 10px; }
.rb-author-collection-tools button {
	border: 0;
	border-radius: 14px;
	padding: 6px 10px;
	color: #ff2442;
	background: #fff0f2;
	font-size: 8px;
}
.rb-author-collections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 10px;
	padding: 0 12px 20px;
}
.rb-author-collection {
	min-width: 0;
	border: 0;
	padding: 0;
	background: transparent;
	text-align: left;
}
.rb-author-collection-cover {
	aspect-ratio: 4 / 3;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	place-items: center;
	overflow: hidden;
	border-radius: 9px;
	color: #aaa;
	background: #f2f2f2;
}
.rb-author-collection-cover > svg { width: 26px; height: 26px; grid-area: 1 / 1 / 3 / 3; }
.rb-author-collection-image {
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
	background-position: center !important;
	background-size: cover !important;
}
.rb-author-collection-image > img { width: 100%; height: 100%; object-fit: cover; }
.rb-author-collection-image > span { padding: 3px; color: inherit; text-align: center; font-size: 6px; }
.rb-author-collection-copy { display: flex; flex-direction: column; gap: 4px; margin-top: 7px; }
.rb-author-collection-copy b { overflow: hidden; color: #333; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.rb-author-collection-copy small { color: #999; font-size: 8px; }
.rb-author-comments { padding: 0 14px 18px; }
.rb-author-comments button {
	position: relative;
	width: 100%;
	display: block;
	border: 0;
	border-bottom: 1px solid #f1f1f1;
	padding: 14px 58px 14px 0;
	background: transparent;
	text-align: left;
}
.rb-author-comments p { margin: 0 0 7px; color: #333; font-size: 11px; line-height: 1.55; }
.rb-author-comments span { color: #999; font-size: 8px; }
.rb-author-comments time { position: absolute; top: 16px; right: 0; color: #bbb; font-size: 7px; }

.rb-following-page { min-height: 100%; padding: 0 14px 24px; background: #fff; }
.rb-following-list article {
	min-height: 72px;
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid #f2f2f2;
}
.rb-following-profile {
	min-width: 0;
	display: grid;
	grid-template-columns: 46px minmax(0,1fr);
	align-items: center;
	gap: 11px;
	border: 0;
	padding: 0;
	color: #2b2b2b;
	background: transparent;
	text-align: left;
}
.rb-following-avatar {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 50%;
	object-fit: cover;
	color: #777;
	background: #eee;
	font-size: 12px;
}
.rb-following-profile span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rb-following-profile b,
.rb-following-profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-following-profile b { font-size: 11px; }
.rb-following-profile small { color: #999; font-size: 8px; }
.rb-following-state {
	height: 27px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 14px;
	padding: 0 9px;
	color: #777;
	background: #fff;
	font-size: 7px;
	line-height: 1;
}

.rb-author-setting-field {
	min-height: 43px;
	display: grid;
	grid-template-columns: 70px minmax(0,1fr);
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid #f1f1f1;
}
.rb-author-setting-field > span { color: #777; font-size: 8px; }
.rb-modal .rb-author-setting-field input,
.rb-modal .rb-author-setting-field textarea {
	width: 100%;
	min-height: 0;
	border: 0;
	margin: 0;
	padding: 9px 0;
	background: transparent;
	text-align: right;
	font-size: 9px;
}
.rb-modal .rb-author-setting-field textarea { height: 58px; text-align: left; resize: none; line-height: 1.5; }
.rb-author-setting-bio { align-items: start; padding-top: 8px; }
.rb-author-setting-bio > span { padding-top: 9px; }
.rb-author-settings dl { margin: 8px 0 0; }
.rb-author-settings dl > div {
	min-height: 37px;
	display: grid;
	grid-template-columns: 72px minmax(0,1fr);
	align-items: center;
	border-bottom: 1px solid #f1f1f1;
}
.rb-author-settings dt { color: #999; font-size: 8px; }
.rb-author-settings dd { overflow: hidden; margin: 0; color: #333; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.rb-author-settings h3 { margin-top: 17px; }
.rb-author-background-presets { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.rb-author-background-presets button {
	aspect-ratio: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	border: 2px solid #fff;
	border-radius: 10px;
	padding: 0;
	box-shadow: 0 0 0 1px #e5e5e5;
}
.rb-author-background-presets button.active { box-shadow: 0 0 0 2px #ff2442; }
.rb-author-background-presets span {
	width: 100%;
	padding: 4px 1px;
	color: #555;
	background: rgba(255,255,255,.72);
	font-size: 7px;
}

/* 我的主页 */
.rb-view-profile { background: #f5f5f5; }
.rb-app.rb-app-self .rb-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 20;
	border: 0;
	background: transparent;
	backdrop-filter: none;
}
.rb-app.rb-app-self .rb-header-title { visibility: hidden; }
.rb-self-page {
	min-height: 100%;
	background: #f5f5f5;
}
.rb-self-cover {
	position: relative;
	height: 400px;
	overflow: hidden;
	background-position: center !important;
	background-size: cover !important;
}
.rb-self-cover-fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.17) 67%, rgba(255,255,255,.9) 100%);
}
.rb-self-cover.is-gradient .rb-self-cover-fade {
	background:
		linear-gradient(180deg, rgba(255,94,126,.08), rgba(255,255,255,0) 45%),
		linear-gradient(180deg, rgba(255,255,255,0) 43%, rgba(255,255,255,.18) 67%, rgba(255,255,255,.92) 100%);
}
.rb-self-cover.is-image .rb-self-cover-fade {
	background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(255,255,255,.05) 45%, rgba(255,255,255,.88) 100%);
}
.rb-self-profile {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 96px 18px 29px;
	color: #2b292a;
}
.rb-self-avatar-action {
	width: 80px;
	height: 80px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: transparent;
}
.rb-self-avatar {
	width: 80px;
	height: 80px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,.96);
	border-radius: 50%;
	box-sizing: border-box;
	object-fit: cover;
	color: #fff;
	background: linear-gradient(145deg, #ff8299, #ff3155);
	box-shadow: 0 3px 9px rgba(88,45,54,.16);
	font-size: 24px;
	font-weight: 700;
}
.rb-self-profile > h1 {
	margin: 15px 0 0;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
}
.rb-self-account {
	margin: 6px 0 0;
	color: rgba(43,41,42,.48);
	font-size: 11px;
	line-height: 1.4;
}
.rb-self-intro {
	margin: 15px 0 0;
	color: rgba(43,41,42,.76);
	font-size: 12px;
	line-height: 1.55;
}
.rb-self-location {
	display: flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	max-width: 100%;
	margin-top: 9px;
	color: rgba(43,41,42,.58);
	font-size: 10px;
	line-height: 1.3;
}
.rb-self-location svg { width: 12px; height: 12px; flex: 0 0 auto; }
.rb-self-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-self-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.rb-self-tags span {
	display: inline-flex;
	align-items: center;
	height: 25px;
	border-radius: 13px;
	padding: 0 12px;
	color: rgba(51,48,49,.67);
	background: rgba(255,255,255,.66);
	font-size: 11px;
}
.rb-self-metrics {
	display: flex;
	align-items: center;
	gap: 29px;
	margin-top: auto;
}
.rb-self-metrics button {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	border: 0;
	padding: 0;
	color: rgba(43,41,42,.58);
	background: transparent;
	font-size: 11px;
	line-height: 1;
}
.rb-self-metrics b {
	color: #2b292a;
	font-size: 16px;
	font-weight: 700;
}
.rb-self-tabs {
	height: 54px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid #ededed;
	background: #fff;
}
.rb-self-tabs button {
	position: relative;
	border: 0;
	padding: 0;
	color: #999;
	background: transparent;
	font-size: 14px;
}
.rb-self-tabs button.active {
	color: #262425;
	font-weight: 700;
}
.rb-self-tabs button.active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 8px;
	width: 21px;
	height: 2px;
	border-radius: 2px;
	background: #282627;
	transform: translateX(-50%);
}
.rb-self-content {
	min-height: 520px;
	background: #f5f5f5;
}
.rb-self-empty {
	min-height: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 70px;
	box-sizing: border-box;
	color: #aaa;
	font-size: 12px;
}
.rb-self-notes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2px;
	padding-top: 2px;
}
.rb-self-note {
	aspect-ratio: .78;
	overflow: hidden;
	border: 0;
	padding: 0;
	background: #eee;
}
.rb-self-note-cover,
.rb-self-collection-image {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	overflow: hidden;
	background-position: center !important;
	background-size: cover !important;
}
.rb-self-note-cover > img,
.rb-self-collection-image > img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}
.rb-self-note-cover > span,
.rb-self-collection-image > span {
	padding: 8px;
	color: #fff;
	text-align: center;
	font-size: 10px;
}
.rb-self-collection-bar {
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	background: #fff;
}
.rb-self-collection-bar b { font-size: 13px; }
.rb-self-collection-bar button {
	border: 0;
	padding: 5px;
	color: #777;
	background: transparent;
	font-size: 12px;
}
.rb-self-collections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 11px;
	padding: 12px;
}
.rb-self-collection {
	min-width: 0;
	border: 0;
	padding: 0;
	color: #333;
	background: transparent;
	text-align: left;
}
.rb-self-collection-cover {
	aspect-ratio: 1.28;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 8px;
	color: #aaa;
	background: #e9e9e9;
}
.rb-self-collection-cover > svg { width: 25px; height: 25px; }
.rb-self-collection > b,
.rb-self-collection > small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.rb-self-collection > b {
	margin: 8px 2px 0;
	font-size: 12px;
}
.rb-self-collection > small {
	margin: 4px 2px 0;
	color: #999;
	font-size: 10px;
}
.rb-collection-page { padding: 13px 10px 26px; }
.rb-collection-page > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 13px;
	padding: 2px 2px 10px;
	border-bottom: 1px solid #f1f1f1;
}
.rb-collection-page h1 { margin: 0; font-size: 15px; }
.rb-collection-page p { margin: 4px 0 0; color: #999; font-size: 9px; }
.rb-collection-page header button {
	border: 1px solid #ddd;
	border-radius: 15px;
	padding: 6px 12px;
	color: #666;
	background: #fff;
	font-size: 9px;
}

/* 搜索 */
.rb-search-page { padding: 12px 11px 25px; }
.rb-search-form {
	height: 39px;
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) auto;
	align-items: center;
	gap: 3px;
	border-radius: 20px;
	padding-left: 11px;
	background: #f5f5f5;
}
.rb-search-form > svg { width: 17px; height: 17px; color: #888; }
.rb-search-form input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.rb-search-form button {
	align-self: stretch;
	border: 0;
	padding: 0 14px;
	color: #ff2442;
	background: transparent;
	font-size: 10px;
	font-weight: 650;
}
.rb-hot-search h2 { margin: 21px 2px 12px; font-size: 13px; }
.rb-hot-search > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-hot-search button {
	border: 0;
	border-radius: 17px;
	padding: 8px 13px;
	color: #555;
	background: #f7f7f7;
	font-size: 10px;
}
.rb-search-result-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 17px 2px 10px;
}
.rb-search-result-head b { font-size: 13px; }
.rb-search-result-head span { color: #aaa; font-size: 9px; }

.rb-toast {
	position: absolute;
	z-index: 80;
	left: 50%;
	bottom: calc(82px + env(safe-area-inset-bottom));
	max-width: 76%;
	box-sizing: border-box;
	border-radius: 19px;
	padding: 9px 15px;
	color: #fff;
	background: rgba(28, 28, 28, .88);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity .2s, transform .2s;
	text-align: center;
	font-size: 10px;
	line-height: 1.45;
	pointer-events: none;
}
.rb-toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 340px) {
	.rb-header { grid-template-columns: 48px minmax(0, 1fr) 48px; padding: 0 6px; }
	.rb-home-tabs { gap: 15px; }
	.rb-author-profile { padding-right: 14px; padding-left: 14px; }
	.rb-author-stats { gap: 17px; }
	.rb-message-list article { grid-template-columns: 36px minmax(0, 1fr); }
	.rb-message-list article time { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rb-overlay,
	.rb-toast { transition-duration: .01ms !important; }
}

/* ================================================================
 * 完整功能层
 * ================================================================ */
.rb-header { grid-template-columns: 54px minmax(0, 1fr) auto; }
.rb-header-actions { display: flex; align-items: center; justify-content: flex-end; min-width: 84px; }
.rb-header-actions .rb-header-btn { width: 38px; }
.rb-header-btn.is-loading svg { animation: rb-spin 1s linear infinite; }
@keyframes rb-spin { to { transform: rotate(360deg); } }

.rb-new-badge {
	position: absolute;
	top: 7px;
	left: 7px;
	z-index: 3;
	border-radius: 10px;
	padding: 3px 7px;
	color: #fff;
	background: #ff2442;
	font-size: 8px;
	font-weight: 700;
}
.rb-note-card { position: relative; }
.rb-note-card.is-selected { box-shadow: 0 0 0 2px #ff2442; }
.rb-note-select-check {
	position: absolute;
	z-index: 5;
	top: 7px;
	right: 7px;
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	border: 1.5px solid rgba(255,255,255,.95);
	border-radius: 50%;
	box-sizing: border-box;
	color: transparent;
	background: rgba(20,20,20,.22);
	backdrop-filter: blur(5px);
}
.rb-note-card.is-selected .rb-note-select-check { color: #fff; background: #ff2442; }
.rb-note-select-check svg { width: 14px; height: 14px; stroke-width: 2.5; }
.rb-note-select-bar {
	position: absolute;
	z-index: 25;
	right: 0;
	bottom: 0;
	left: 0;
	min-height: 58px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 7px;
	padding: 7px 11px calc(7px + env(safe-area-inset-bottom));
	box-sizing: content-box;
	border-top: 1px solid rgba(0,0,0,.08);
	background: rgba(255,255,255,.98);
	backdrop-filter: blur(16px);
	box-shadow: 0 -5px 20px rgba(0,0,0,.05);
}
.rb-note-select-bar > span { color: #777; text-align: center; font-size: 10px; }
.rb-note-select-bar > span b { color: #222; font-size: 12px; }
.rb-note-select-bar button {
	height: 34px;
	border: 0;
	border-radius: 17px;
	padding: 0 11px;
	color: #555;
	background: #f2f2f2;
	font-size: 9px;
	white-space: nowrap;
}
.rb-note-select-bar button.is-danger {
	display: flex;
	align-items: center;
	gap: 3px;
	color: #fff;
	background: #ff2442;
}
.rb-note-select-bar button.is-danger svg { width: 14px; height: 14px; }
.rb-note-select-bar button:disabled { opacity: .4; }
.rb-note-cover { min-height: 135px; aspect-ratio: .82; background-size: cover !important; background-position: center !important; }
.rb-cover-media img,
.rb-detail-cover > img,
.rb-compose-cover-preview > img,
.rb-compose-thumb > img,
.rb-video-cover > img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}
.rb-cover-status {
	position: absolute;
	right: 7px;
	bottom: 7px;
	border-radius: 8px;
	padding: 3px 6px;
	color: #fff;
	background: rgba(0,0,0,.42);
	font-size: 7px;
	font-style: normal;
}
.rb-cover-status.error { background: rgba(178, 25, 48, .76); }
.rb-note-copy footer em.active,
.rb-detail-actions > button.active,
.rb-comment footer button.active { color: #ff2442; }
.rb-mini-avatar,
.rb-comment-avatar,
.rb-reply-avatar,
.rb-notification-avatar {
	object-fit: cover;
	overflow: hidden;
}
.rb-section-empty > svg { width: 30px; height: 30px; }

.rb-video-card { background: #242424; }
.rb-video-cover { position: absolute; inset: 0; z-index: -2; }
.rb-video-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,rgba(0,0,0,.05) 25%,rgba(0,0,0,.75));
}
.rb-section-empty.dark { min-height: 70vh; color: #aaa; background: #111; }

.rb-comments-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.rb-comments-head > button {
	border: 0;
	color: #ff2442;
	background: transparent;
	font-size: 10px;
}
.rb-obligation-list { margin-top: 10px; border-radius: 9px; padding: 5px 9px; background: #fff4f5; }
.rb-obligation-list > div { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9e3342; font-size: 9px; }
.rb-obligation-list button { border: 0; border-radius: 12px; padding: 5px 9px; color: #fff; background: #ff526b; font-size: 8px; }
.rb-comment-list { margin-top: 10px; }
.rb-comment {
	display: grid;
	grid-template-columns: 36px minmax(0,1fr);
	gap: 10px;
	padding: 13px 0;
	border-bottom: 1px solid #f2f2f2;
	user-select: none;
}
.rb-comment-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #666; background: #ededed; font-size: 10px; }
.rb-comment > div { min-width: 0; }
.rb-comment header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rb-comment header button { min-width: 0; overflow: hidden; border: 0; padding: 0; color: #777; background: transparent; text-overflow: ellipsis; font-size: 10px; }
.rb-comment header time { flex: 0 0 auto; color: #bbb; font-size: 8px; }
.rb-comment > div > p { margin: 6px 0; color: #252525; font-size: 12px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.rb-comment footer { display: flex; justify-content: flex-end; gap: 12px; }
.rb-comment footer button { display: flex; align-items: center; gap: 3px; border: 0; padding: 2px 0; color: #999; background: transparent; font-size: 9px; }
.rb-comment footer svg { width: 13px; height: 13px; }
.rb-replies { margin-top: 9px; border-radius: 10px; padding: 8px 9px; background: #f7f7f7; }
.rb-reply { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 7px; padding: 5px 0; user-select: none; }
.rb-reply-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #666; background: #e7e7e7; font-size: 8px; }
.rb-reply p { margin: 0; color: #4f4f4f; font-size: 10px; line-height: 1.58; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.rb-reply p b { color: #555; }
.rb-reply p em { color: #315f98; font-style: normal; }
.rb-reply p button { border: 0; margin-left: 7px; padding: 0; color: #999; background: transparent; font-size: 8px; }

.rb-cover-compose {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 20px 14px 24px;
}
.rb-cover-compose > h1 { margin: 0; font-size: 19px; }
.rb-cover-compose > p { margin: 6px 0 18px; color: #999; font-size: 10px; }
.rb-cover-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.rb-cover-options > button {
	min-height: 112px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid #eee;
	border-radius: 13px;
	color: #333;
	background: #fafafa;
}
.rb-cover-options > button > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #ff2442; background: #ffe9ed; }
.rb-cover-options svg { width: 21px; height: 21px; }
.rb-cover-options b { font-size: 12px; }
.rb-cover-options small { color: #999; font-size: 8px; }
.rb-selected-cover { margin: 18px 0 13px; }
.rb-selected-cover > b { display: block; margin-bottom: 8px; font-size: 11px; }
.rb-compose-cover-preview {
	position: relative;
	width: 150px;
	aspect-ratio: .78;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 12px;
	background-size: cover !important;
	background-position: center !important;
}
.rb-compose-cover-preview > span,
.rb-compose-thumb > span { padding: 12px; text-align: center; font-size: 15px; font-weight: 700; white-space: pre-wrap; }
.rb-cover-next { min-height: 39px; flex: 0 0 39px; margin-top: 20px; }
.rb-cover-compose > .rb-cover-next:last-child { margin-top: auto; }
.rb-selected-cover + .rb-cover-next { margin-top: 18px; }
.rb-publish-btn:disabled { opacity: .4; box-shadow: none; }
.rb-compose-cover-row { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.rb-compose-thumb {
	position: relative;
	width: 74px;
	aspect-ratio: .78;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 9px;
	background-size: cover !important;
	background-position: center !important;
}
.rb-compose-cover-row > button { border: 1px solid #ddd; border-radius: 15px; padding: 6px 11px; color: #666; background: #fff; font-size: 9px; }
.rb-compose-options label {
	min-height: 45px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #f1f1f1;
	font-size: 11px;
}
.rb-compose-options input,
.rb-compose-options select { max-width: 55%; border: 0; outline: 0; color: #777; background: transparent; text-align: right; font-size: 10px; }

.rb-loading-state {
	min-height: 260px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #777;
	font-size: 11px;
}
.rb-loading-state span { width: 27px; height: 27px; border: 3px solid #eee; border-top-color: #ff2442; border-radius: 50%; animation: rb-spin .8s linear infinite; }
.rb-search-form button:disabled { color: #aaa; }

.rb-message-shortcut-icon > i {
	position: absolute;
	top: -4px;
	right: -5px;
	min-width: 15px;
	height: 15px;
	display: grid;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 9px;
	padding: 0 2px;
	color: #fff;
	background: #ff2442;
	font-size: 7px;
	font-style: normal;
}
.rb-notification-list { background: #fff; }
.rb-notification {
	width: 100%;
	display: grid;
	grid-template-columns: 42px minmax(0,1fr);
	gap: 11px;
	border: 0;
	border-bottom: 1px solid #eee;
	padding: 13px 14px;
	color: #333;
	background: #fff;
	text-align: left;
}
.rb-notification-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #ff7a8f; }
.rb-notification > span { min-width: 0; }
.rb-notification b { font-size: 11px; }
.rb-notification p { margin: 4px 0; color: #666; font-size: 10px; line-height: 1.5; }
.rb-notification time { color: #aaa; font-size: 8px; }

.rb-view-settings {
	padding-bottom: calc(26px + env(safe-area-inset-bottom));
	background: #f7f7f8;
}

.rb-settings {
	min-height: 100%;
	padding: 14px 12px 30px;
	box-sizing: border-box;
	background:
		radial-gradient(circle at 95% -4%, rgba(255, 36, 66, .08), transparent 190px),
		#f7f7f8;
}

.rb-settings-hero {
	position: relative;
	min-height: 112px;
	display: flex;
	align-items: flex-start;
	gap: 13px;
	overflow: hidden;
	margin-bottom: 14px;
	border: 1px solid rgba(255, 36, 66, .09);
	border-radius: 19px;
	padding: 18px 17px;
	box-sizing: border-box;
	background: linear-gradient(135deg, #fff 0%, #fff7f8 62%, #ffe9ed 100%);
	box-shadow: 0 8px 24px rgba(108, 25, 38, .06);
}

.rb-settings-hero::after {
	content: "";
	position: absolute;
	right: -24px;
	bottom: -38px;
	width: 104px;
	height: 104px;
	border: 22px solid rgba(255, 36, 66, .06);
	border-radius: 50%;
}

.rb-settings-hero-mark {
	position: relative;
	z-index: 1;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	color: #fff;
	background: linear-gradient(145deg, #ff4a61, #ff2442);
	box-shadow: 0 7px 16px rgba(255, 36, 66, .24);
}

.rb-settings-hero-mark svg { width: 23px; height: 23px; }
.rb-settings-hero > div { position: relative; z-index: 1; min-width: 0; }
.rb-settings-hero small {
	display: block;
	margin: 1px 0 3px;
	color: #ff2442;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.3px;
}
.rb-settings-hero h1 { margin: 0; font-size: 18px; line-height: 1.35; }
.rb-settings-hero p { max-width: 245px; margin: 6px 0 0; color: #7a7475; font-size: 10px; line-height: 1.6; }

.rb-settings-card {
	overflow: hidden;
	margin: 0 0 13px;
	border: 1px solid #f0f0f1;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(28, 28, 30, .035);
}

.rb-settings-card > header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 15px 12px;
	background: linear-gradient(180deg, #fff, #fdfdfd);
}

.rb-settings-card > header > span {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	color: #ff2442;
	background: #fff1f3;
}

.rb-settings-card > header svg { width: 17px; height: 17px; }
.rb-settings-card > header h2 { margin: 0; font-size: 13px; line-height: 1.4; }
.rb-settings-card > header p { margin: 2px 0 0; color: #aaa5a6; font-size: 8px; line-height: 1.4; }
.rb-settings-card-body { padding: 0 15px 4px; }

.rb-setting-row {
	min-height: 58px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border-top: 1px solid #f3f3f3;
	box-sizing: border-box;
}

.rb-settings-card-body > .rb-setting-row:first-child { border-top: 0; }
.rb-setting-number-pair + .rb-setting-row { border-top: 1px solid #f3f3f3; }
.rb-setting-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rb-setting-copy b { color: #252324; font-size: 11px; font-weight: 600; line-height: 1.35; }
.rb-setting-copy small { color: #aaa6a7; font-size: 8px; line-height: 1.45; }

.rb-setting-number-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
	padding: 0 0 13px;
}

.rb-setting-number-pair .rb-setting-row {
	min-height: 66px;
	align-items: flex-start;
	flex-direction: column;
	gap: 9px;
	border: 0;
	border-radius: 13px;
	padding: 11px 12px;
	background: #f8f8f9;
}

.rb-number-control {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	border: 1px solid #ececef;
	border-radius: 10px;
	padding: 0 7px;
	background: #fafafa;
}

.rb-setting-number-pair .rb-number-control { width: 100%; box-sizing: border-box; background: #fff; }
.rb-setting-number input {
	width: 70px;
	height: 30px;
	border: 0;
	outline: 0;
	padding: 0;
	color: #363334;
	background: transparent;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
}
.rb-setting-number-pair input { width: 100%; }

.rb-switch { position: relative; flex: 0 0 43px; width: 43px; height: 25px; }
.rb-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rb-switch i {
	position: absolute;
	inset: 0;
	border-radius: 15px;
	background: #dcdcdf;
	transition: background .2s ease;
}
.rb-switch i::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,.18);
	transition: transform .2s ease;
}
.rb-switch input:checked + i { background: #ff2442; }
.rb-switch input:checked + i::after { transform: translateX(18px); }
.rb-switch input:focus-visible + i { outline: 2px solid rgba(255,36,66,.25); outline-offset: 2px; }
.rb-switch input:disabled + i { opacity: .45; }

.rb-contact-source { padding: 0 0 4px; }
.rb-contact-source[hidden] { display: none; }
.rb-contact-source > .rb-setting-row { padding: 0 2px; }
.rb-contact-picker {
	margin: 0 0 4px;
	border: 1px solid #eeecef;
	border-radius: 14px;
	background: #fafafa;
}
.rb-contact-picker summary {
	min-height: 53px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 12px;
	list-style: none;
	cursor: pointer;
}
.rb-contact-picker summary::-webkit-details-marker { display: none; }
.rb-contact-picker summary > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rb-contact-picker summary b { font-size: 10px; font-weight: 600; }
.rb-contact-picker summary small { color: #ff2442; font-size: 8px; }
.rb-contact-picker summary > i {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid #999;
	border-bottom: 1.5px solid #999;
	transform: rotate(45deg) translate(-2px, 2px);
	transition: transform .2s ease;
}
.rb-contact-picker[open] summary > i { transform: rotate(225deg) translate(-2px, 2px); }
.rb-contact-options {
	max-height: 240px;
	overflow-y: auto;
	border-top: 1px solid #eeecef;
	padding: 4px 10px;
	background: #fff;
}
.rb-contact-option {
	position: relative;
	min-height: 54px;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 19px;
	align-items: center;
	gap: 9px;
	border-bottom: 1px solid #f4f4f4;
}
.rb-contact-option:last-child { border-bottom: 0; }
.rb-settings-avatar {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	object-fit: cover;
	color: #fff;
	background: linear-gradient(145deg, #ff8797, #ff526b);
	font-size: 12px;
}
.rb-contact-option > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rb-contact-option b { overflow: hidden; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rb-contact-option small { color: #aaa; font-size: 7px; }
.rb-contact-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rb-contact-option > i {
	width: 17px;
	height: 17px;
	display: grid;
	place-items: center;
	border: 1.5px solid #d8d8da;
	border-radius: 50%;
	box-sizing: border-box;
}
.rb-contact-option input:checked + i { border-color: #ff2442; background: #ff2442; }
.rb-contact-option input:checked + i::after {
	content: "";
	width: 6px;
	height: 3px;
	border-left: 1.5px solid #fff;
	border-bottom: 1.5px solid #fff;
	transform: rotate(-45deg) translate(1px, -1px);
}
.rb-contact-empty { padding: 18px 6px; color: #aaa; text-align: center; font-size: 9px; }

.rb-setting-block { border-top: 1px solid #f3f3f3; padding: 13px 0 14px; }
.rb-tab-choice { display: flex; gap: 7px; margin-top: 10px; }
.rb-tab-choice label { flex: 1; }
.rb-tab-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rb-tab-choice span {
	height: 31px;
	display: grid;
	place-items: center;
	border: 1px solid #ececef;
	border-radius: 10px;
	color: #767273;
	background: #fafafa;
	font-size: 9px;
	transition: all .18s ease;
}
.rb-tab-choice input:checked + span { border-color: #ffd2d9; color: #ff2442; background: #fff2f4; font-weight: 600; }

.rb-settings-shared-note {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 2px;
	border-radius: 12px;
	padding: 10px 11px;
	background: #fff6f7;
}
.rb-settings-shared-note > span {
	flex: 0 0 27px;
	width: 27px;
	height: 27px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	color: #ff2442;
	background: #fff;
}
.rb-settings-shared-note svg { width: 15px; height: 15px; }
.rb-settings-shared-note p { min-width: 0; display: flex; flex-direction: column; gap: 3px; margin: 0; }
.rb-settings-shared-note b { font-size: 9px; }
.rb-settings-shared-note small { color: #9e8a8d; font-size: 7px; line-height: 1.45; }
.rb-settings-shared-note em { color: #ff2442; font-style: normal; font-weight: 700; }

.rb-context-notice {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 3px 1px 17px;
	border: 1px solid #eaeaec;
	border-radius: 15px;
	padding: 13px 14px;
	color: #555;
	background: rgba(255,255,255,.72);
}
.rb-context-notice > span {
	flex: 0 0 29px;
	width: 29px;
	height: 29px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	color: #747074;
	background: #f0f0f2;
}
.rb-context-notice svg { width: 16px; height: 16px; }
.rb-context-notice b { display: block; margin: 1px 0 4px; font-size: 10px; }
.rb-context-notice p { margin: 0; color: #999597; font-size: 8px; line-height: 1.6; }

.rb-settings-save { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rb-settings-save button {
	width: 100%;
	height: 45px;
	border: 0;
	border-radius: 14px;
	color: #fff;
	background: linear-gradient(100deg, #ff3150, #ff2442);
	box-shadow: 0 8px 18px rgba(255, 36, 66, .2);
	font-size: 12px;
	font-weight: 700;
}
.rb-settings-save button:active { transform: scale(.985); }
.rb-settings-save small { color: #b1adae; font-size: 8px; }

.rb-modal-mask {
	position: absolute;
	z-index: 100;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 14px;
	box-sizing: border-box;
	background: rgba(0,0,0,.42);
}
.rb-modal {
	width: min(100%, 380px);
	max-height: 82%;
	overflow-y: auto;
	border-radius: 16px;
	padding: 17px;
	box-sizing: border-box;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.rb-wide-modal { align-items: center; }
.rb-profile-generator-modal { align-items: center; }
.rb-profile-generator-modal .rb-modal { width: min(86%, 280px); }
.rb-profile-generate-confirm > p {
	margin: 2px 0 16px;
	color: #252525;
	text-align: center;
	font-size: 11px;
	line-height: 1.6;
}
.rb-profile-generate-confirm .rb-modal-actions { justify-content: center; margin-top: 0; }
.rb-modal h2 { margin: 0 0 13px; font-size: 15px; }
.rb-modal h3 { margin: 12px 0 7px; font-size: 10px; }
.rb-modal p { color: #777; font-size: 10px; }
.rb-modal input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.rb-modal textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e5e5e5;
	border-radius: 9px;
	outline: 0;
	margin: 5px 0;
	padding: 10px;
	font-size: 11px;
}
.rb-modal textarea { min-height: 82px; resize: vertical; }
.rb-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.rb-modal-actions button,
.rb-modal-secondary {
	border: 0;
	border-radius: 17px;
	padding: 8px 14px;
	color: #666;
	background: #f2f2f2;
	font-size: 10px;
}
.rb-modal-actions button:last-child { color: #fff; background: #ff2442; }
.rb-modal-list { display: grid; gap: 7px; }
.rb-modal-list > button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 0;
	border-radius: 9px;
	padding: 11px;
	color: #333;
	background: #f7f7f7;
	text-align: left;
	font-size: 10px;
}
.rb-modal-list small { color: #999; }
.rb-avatar-upload {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 0;
	margin: 0 auto 10px;
	color: #777;
	background: transparent;
	font-size: 10px;
}
.rb-profile-editor > h2 { margin-bottom: 11px; }
.rb-profile-editor-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	border-radius: 14px;
	padding: 11px 12px;
	background: #f8f8f8;
}
.rb-profile-editor-head .rb-avatar-upload { margin: 0; }
.rb-profile-editor-head .rb-profile-avatar {
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 2px solid #fff;
	border-radius: 50%;
	box-sizing: border-box;
	object-fit: cover;
	color: #fff;
	background: linear-gradient(145deg, #ff9cac, #ff4963);
	font-size: 16px;
}
.rb-profile-editor-head .rb-avatar-upload > span { color: #ff2442; font-size: 8px; }
.rb-profile-editor-head > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rb-profile-editor-head > div b { font-size: 11px; }
.rb-profile-editor-head > div small { color: #aaa; font-size: 8px; }
.rb-editor-field {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	align-items: center;
	border-bottom: 1px solid #f0f0f0;
}
.rb-editor-field > span { color: #555; font-size: 9px; }
.rb-modal .rb-editor-field input,
.rb-modal .rb-editor-field textarea { border: 0; margin: 0; padding: 11px 2px; background: transparent; }
.rb-modal .rb-editor-bio { align-items: start; }
.rb-modal .rb-editor-bio > span { padding-top: 13px; }
.rb-modal .rb-editor-bio textarea { min-height: 58px; }
.rb-editor-tags { align-items: start; }
.rb-editor-tags > span {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-top: 13px;
}
.rb-editor-tags > span small {
	color: #aaa;
	font-size: 7px;
}
.rb-editor-tag-control {
	min-width: 0;
	padding: 8px 0 10px;
}
.rb-editor-tag-control > small {
	display: block;
	margin-top: 5px;
	color: #aaa;
	font-size: 7px;
}
.rb-profile-tag-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}
.rb-profile-tag-list:empty { display: none; }
.rb-profile-tag-list > span {
	height: 23px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-radius: 12px;
	padding: 0 4px 0 9px;
	color: #555;
	background: #f4f4f4;
	font-size: 8px;
}
.rb-profile-tag-list > span button {
	width: 15px;
	height: 15px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	padding: 0;
	color: #aaa;
	background: transparent;
	font-size: 11px;
	line-height: 1;
}
.rb-profile-tag-input {
	height: 30px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #ededed;
}
.rb-modal .rb-profile-tag-input input {
	width: auto;
	min-width: 0;
	flex: 1;
	border: 0;
	margin: 0;
	padding: 0 2px;
	background: transparent;
	font-size: 9px;
}
.rb-profile-tag-input button {
	flex: 0 0 auto;
	border: 0;
	padding: 5px 2px 5px 10px;
	color: #ff2442;
	background: transparent;
	font-size: 9px;
	font-weight: 600;
}
.rb-profile-background-editor { margin-top: 15px; }
.rb-profile-background-editor > header { display: flex; flex-direction: column; gap: 3px; margin-bottom: 9px; }
.rb-profile-background-editor > header b { font-size: 11px; }
.rb-profile-background-editor > header small { color: #aaa; font-size: 8px; }
.rb-profile-background-preview {
	position: relative;
	height: 96px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 13px;
	background-position: center !important;
	background-size: cover !important;
}
.rb-profile-background-preview::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(0,0,0,.1));
}
.rb-profile-background-preview > span {
	position: relative;
	z-index: 1;
	border: 1px solid rgba(255,255,255,.38);
	border-radius: 12px;
	padding: 5px 9px;
	color: #fff;
	background: rgba(0,0,0,.12);
	font-size: 8px;
	backdrop-filter: blur(6px);
}
.rb-background-mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 9px 0; }
.rb-background-mode-tabs label { position: relative; }
.rb-background-mode-tabs input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rb-background-mode-tabs span {
	height: 31px;
	display: grid;
	place-items: center;
	border: 1px solid #e9e9e9;
	border-radius: 9px;
	color: #777;
	background: #fafafa;
	font-size: 8px;
}
.rb-background-mode-tabs input:checked + span { border-color: #ffcbd3; color: #ff2442; background: #fff2f4; font-weight: 650; }
.rb-background-panel[hidden] { display: none; }
.rb-background-panel {
	border: 1px solid #eeeeef;
	border-radius: 11px;
	padding: 4px 10px;
	background: #fafafa;
}
.rb-background-panel label {
	min-height: 39px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border-bottom: 1px solid #eee;
	font-size: 8px;
}
.rb-background-panel label:last-child { border-bottom: 0; }
.rb-background-panel input[type="color"] {
	width: 34px;
	height: 25px;
	border: 0;
	padding: 0;
	background: transparent;
}
.rb-background-panel select { border: 0; outline: 0; color: #777; background: transparent; font-size: 9px; }
.rb-background-upload { padding: 0; }
.rb-background-upload > button {
	width: 100%;
	min-height: 50px;
	display: flex;
	align-items: center;
	gap: 10px;
	border: 0;
	padding: 8px 11px;
	color: #444;
	background: transparent;
	text-align: left;
}
.rb-background-upload svg { width: 20px; height: 20px; color: #ff2442; }
.rb-background-upload span { display: flex; flex-direction: column; gap: 3px; }
.rb-background-upload b { font-size: 9px; }
.rb-background-upload small { color: #aaa; font-size: 7px; }
.rb-summary-number { padding: 12px 0; color: #ff2442; text-align: center; font-size: 30px; font-weight: 750; }
.rb-activity-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.rb-activity-summary > div { display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 10px; padding: 14px; background: #f7f7f7; }
.rb-activity-summary b { font-size: 18px; }
.rb-activity-summary span { color: #999; font-size: 9px; }
.rb-mention-list { max-height: 210px; overflow-y: auto; }
.rb-mention-list label { min-height: 38px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #eee; font-size: 10px; }
.rb-mention-list input { accent-color: #ff2442; }
.rb-text-preview {
	width: 140px;
	aspect-ratio: .78;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 10px;
	margin: 8px auto;
	background-size: cover !important;
	background-position: center !important;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	white-space: pre-wrap;
}
.rb-preset-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; }
.rb-preset-grid button { aspect-ratio: 1; overflow: hidden; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px #ddd; color: #666; font-size: 8px; }
.rb-color-row { display: flex; align-items: center; gap: 8px; }
.rb-color-row button { width: 25px; height: 25px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #ccc; }
.rb-color-row input { width: 30px; height: 30px; border: 0; padding: 0; background: transparent; }
.rb-ai-cover > button { border: 0; border-radius: 14px; padding: 7px 11px; color: #ff2442; background: #ffecef; font-size: 9px; }
.rb-ai-preview { min-height: 150px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; margin-top: 9px; color: #999; background: #f5f5f5; font-size: 9px; }
.rb-ai-preview img { width: 100%; max-height: 280px; object-fit: contain; }

@media (max-width: 340px) {
	.rb-header { grid-template-columns: 45px minmax(0,1fr) auto; }
	.rb-header.rb-header-detail { grid-template-columns: 39px minmax(0,1fr) auto; }
	.rb-detail-follow { padding: 0 5px; }
	.rb-detail-header-actions .rb-header-btn { width: 31px; }
	.rb-note-select-bar { grid-template-columns: auto minmax(0,1fr) auto; }
	.rb-note-select-bar > button[data-rb-action="select-all-notes"] { display: none; }
	.rb-header-actions .rb-header-btn { width: 34px; }
	.rb-preset-grid { grid-template-columns: repeat(5,1fr); }
}
