/**
 * chatmate — 近代的なライトUI
 * ホーム / 認証 / チャット / 周辺ページ共通
 */

:root {
	--cm-mint: #3d6f69;
	--cm-mint-dark: #2f5651;
	--cm-mint-soft: #e8efed;
	--cm-coral: #c47a62;
	--cm-coral-soft: #f3e6e0;
	--cm-ink: #24332f;
	--cm-muted: #5a6a66;
	--cm-bg: #ffffff;
	--cm-bg-warm: #ffffff;
	--cm-surface: #ffffff;
	--cm-radius: 12px;
	--cm-radius-sm: 8px;
	--cm-radius-pill: 999px;
	--cm-shadow: 0 8px 24px rgba(36, 51, 47, 0.06);
	--cm-shadow-soft: 0 2px 10px rgba(36, 51, 47, 0.04);
	--cm-line: rgba(36, 51, 47, 0.12);
	--cm-line-strong: rgba(36, 51, 47, 0.2);

	--oc-primary: #3d6f69;
	--oc-primary-rgb: 61, 111, 105;
	--tblr-primary: #3d6f69;
	--tblr-azure: #5f7f92;
	--bs-primary: #3d6f69;
	--bs-primary-rgb: 61, 111, 105;
	--bs-link-color: #2f5651;
	--bs-link-hover-color: #24332f;

	--sent-background: #3d6f69;
	--sent-color: #ffffff;
	--received-background: #f0eeea;
	--received-color: #24332f;
}

/* —— Base —— */
html,
body {
	font-family: "IBM Plex Sans JP", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	line-height: 1.65;
	letter-spacing: 0.01em;
	color: var(--cm-ink);
	-webkit-font-smoothing: antialiased;
	font-size: 15px;
}

a { color: var(--cm-mint-dark); }
a:hover { color: var(--cm-mint); }

.btn-primary,
.btn-azure {
	--oc-btn-color: #3d6f69;
	--oc-btn-color-interactive: #2f5651;
	--oc-btn-color-text: #ffffff;
	background-color: var(--cm-mint) !important;
	border-color: var(--cm-mint) !important;
	border-radius: var(--cm-radius-sm);
	font-weight: 600;
}

.btn-primary:hover,
.btn-azure:hover {
	background-color: var(--cm-mint-dark) !important;
	border-color: var(--cm-mint-dark) !important;
}

.btn-outline-primary {
	color: var(--cm-mint-dark) !important;
	border-color: var(--cm-line-strong) !important;
	border-radius: var(--cm-radius-sm);
}

.btn-outline-primary:hover {
	background-color: var(--cm-mint) !important;
	border-color: var(--cm-mint) !important;
	color: #fff !important;
}

.btn-outline-secondary {
	border-radius: var(--cm-radius-sm);
}

.text-primary { color: var(--cm-mint) !important; }
.bg-primary { background-color: var(--cm-mint) !important; }

.form-control,
.form-select {
	border-radius: var(--cm-radius-sm);
	border-color: var(--cm-line);
	background: #fff;
}

.form-control:focus,
.form-select:focus {
	border-color: var(--cm-mint);
	box-shadow: 0 0 0 2px rgba(61, 111, 105, 0.16);
}

.form-check-input:checked {
	background-color: var(--cm-mint);
	border-color: var(--cm-mint);
}

.card {
	border-radius: var(--cm-radius) !important;
	border: 1px solid var(--cm-line) !important;
	background: var(--cm-surface) !important;
	box-shadow: none;
}

.alert-info {
	background: var(--cm-mint-soft);
	border-color: rgba(81, 139, 133, 0.25);
	color: var(--cm-ink);
	border-radius: var(--cm-radius-sm);
}

.lds-ellipsis div {
	background: var(--cm-mint) !important;
}

/* —— Public site shell —— */
html.light body.front-site {
	background: #fff;
	color: var(--cm-ink);
	min-height: 100vh;
	height: auto !important;
	/* overflow-x:hidden は fixed ナビの dropdown をクリップするので禁止 */
	overflow: visible;
}

html.light:has(body.front-site) {
	height: auto !important;
	overflow: visible;
}

html.light body.front-site .cm-home,
html.light body.front-site .cm-page,
html.light body.front-site main {
	overflow-x: clip;
	max-width: 100%;
}

/* Nav — header 全体を main より前面に（dropdown がヒーローに潜らないように） */
html.light body.front-site > header {
	position: relative;
	z-index: 2000;
}

html.light body.front-site > main {
	position: relative;
	z-index: 1;
}

html.light body.front-site .navbar.fixed-top,
html.light body.front-site .navbar-scroll {
	z-index: 2000;
}

html.light body.front-site .navbar-scroll {
	background: #fff;
	padding: 0.55rem 0;
	box-shadow: none;
	border-bottom: 1px solid var(--cm-line);
	transition: background 0.2s, border-color 0.2s;
	max-width: 100vw;
	overflow: visible;
}

html.light body.front-site .navbar-scroll .dropdown-menu,
html.light body.front-site .navbar-scroll .menu-dd .dropdown-menu,
html.light body.front-site header .dropdown-menu {
	z-index: 2010 !important;
}

html.light body.front-site .navbar-scroll.navbar-scrolled,
html.light body.front-site .navbar-scrolled {
	background: #fff !important;
	box-shadow: none !important;
	border-bottom-color: var(--cm-line-strong);
}

html.light body.front-site .navbar-scroll .nav-link,
html.light body.front-site .navbar-scroll .nav-link.active,
html.light body.front-site .navbar-scroll:not(.navbar-scrolled) .nav-link {
	color: var(--cm-ink) !important;
	text-shadow: none !important;
	font-weight: 500;
	font-size: 0.92rem;
}

/* Compact chrome (<1200): hamburger + mobile auth/lang. From 1200px: horizontal PC bar. */
.cm-nav-compact-only {
	display: flex;
	align-items: center;
}

@media (min-width: 1200px) {
	.cm-nav-compact-only {
		display: none !important;
	}

	html.light body.front-site .navbar-expand-cm .navbar-toggler {
		display: none !important;
	}

	html.light body.front-site .navbar-expand-cm #navbarCollapse.offcanvas {
		position: static !important;
		visibility: visible !important;
		transform: none !important;
		width: auto !important;
		height: auto !important;
		max-height: none !important;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		flex: 1 1 auto;
		min-width: 0;
	}

	html.light body.front-site .navbar-expand-cm #navbarCollapse .offcanvas-header {
		display: none !important;
	}

	html.light body.front-site .navbar-expand-cm #navbarCollapse .offcanvas-body {
		display: flex !important;
		flex-direction: row !important;
		flex-grow: 1;
		align-items: center;
		justify-content: flex-end;
		padding: 0 !important;
		overflow: visible !important;
	}

	html.light body.front-site .navbar-expand-cm .navbar-nav {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.05rem;
		margin: 0 !important;
		width: auto !important;
		max-width: 100%;
	}

	html.light body.front-site .navbar-expand-cm .navbar-nav .nav-item {
		width: auto !important;
		flex: 0 0 auto;
	}

	html.light body.front-site .navbar-expand-cm .navbar-nav .nav-link {
		white-space: nowrap;
		padding: 0.35rem 0.4rem !important;
		font-size: 0.8rem;
		display: inline-flex;
		align-items: center;
	}

	html.light body.front-site .navbar-expand-cm .navbar-nav .nav-link .ti {
		font-size: 1rem;
	}

	html.light body.front-site .navbar-expand-cm .navbar-nav .auth-dd,
	html.light body.front-site .navbar-expand-cm .navbar-nav .lang-dd {
		display: flex !important;
		flex-direction: row !important;
		align-items: center;
		align-self: center;
	}

	html.light body.front-site .navbar-expand-cm .navbar-nav .auth-dd.d-flex {
		flex-direction: row !important;
		flex-wrap: nowrap;
		gap: 0.35rem;
	}

	html.light body.front-site .navbar-expand-cm .navbar-nav .menu-dd {
		display: flex;
		align-items: center;
		padding: 0 !important;
		margin: 0;
	}

	html.light body.front-site .navbar-expand-cm .navbar-nav .menu-dd .btn {
		white-space: nowrap;
	}

	html.light body.front-site .cm-nav-people-search-item {
		width: auto !important;
		margin: 0 0.35rem 0 0 !important;
	}

	html.light body.front-site .cm-header-people-search {
		min-width: 0;
		max-width: 9.5rem;
		margin: 0;
	}

	html.light body.front-site .cm-header-people-search input[type="search"] {
		font-size: 0.78rem;
		padding: 0.28rem 0.55rem;
	}
}

@media (min-width: 1600px) {
	html.light body.front-site .navbar-expand-cm .navbar-nav .nav-link {
		padding-left: 0.48rem !important;
		padding-right: 0.48rem !important;
		font-size: 0.84rem;
	}

	html.light body.front-site .cm-header-people-search {
		max-width: 12rem;
	}
}

html.light body.front-site .navbar-scroll:not(.navbar-scrolled) .btn {
	text-shadow: none !important;
}

html.light body.front-site .navbar-scroll > .container {
	flex-wrap: nowrap;
	align-items: center;
}

html.light body.front-site .navbar-brand {
	flex: 0 0 auto;
	max-width: none;
	margin-right: 0.65rem;
	padding-top: 0.15rem;
	padding-bottom: 0.15rem;
}

html.light body.front-site .logo {
	height: 34px !important;
	width: auto !important;
	max-width: none !important;
	max-height: 34px !important;
	min-width: 7.5rem; /* 333x68 比率で高さ34px時の幅を確保 */
	flex-shrink: 0;
	object-fit: contain;
	object-position: left center;
	display: block;
}

html.light body.front-site .logo-sticky[style*="display:none"],
html.light body.front-site .logo-sticky[style*="display: none"] {
	display: none !important;
	min-width: 0;
}

html.light body.front-site .cm-nav-login {
	border-radius: var(--cm-radius-sm) !important;
	border: 1px solid var(--cm-line-strong) !important;
	background: var(--cm-surface) !important;
	color: var(--cm-ink) !important;
	padding: 0.32rem 0.85rem;
	font-weight: 600;
}

html.light body.front-site .cm-nav-signup,
html.light body.front-site .btn-light,
html.light body.front-site .btn-pill.btn-light {
	border-radius: var(--cm-radius-sm) !important;
	border: 1px solid var(--cm-mint) !important;
	background: var(--cm-mint) !important;
	color: #fff !important;
	padding: 0.32rem 0.85rem;
	font-weight: 600;
}

html.light body.front-site .btn-outline-light,
html.light body.front-site .auth-dd-mobile .btn-outline-light {
	color: var(--cm-ink) !important;
	border: 1px solid var(--cm-line-strong) !important;
	background: var(--cm-surface) !important;
	border-radius: var(--cm-radius-sm) !important;
}

html.light body.front-site .cm-auth-toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 0.4rem;
	max-width: 9.5rem;
}

html.light body.front-site .cm-auth-toggle-avatar {
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

html.light body.front-site .cm-auth-toggle-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

html.light body.front-site .navbar-toggler-icon {
	filter: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233d6f69' stroke-linecap='square' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html.light body.front-site .footer {
	border-top: 1px solid var(--cm-line);
	padding: 1.5rem 0 2rem;
	color: var(--cm-muted);
	background: transparent;
}

html.light body.front-site .footer a {
	color: var(--cm-mint-dark);
	text-decoration: none;
}

html.light body.front-site .footer a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cm-footer {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.cm-footer-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.25rem;
}

.cm-footer-copy {
	color: var(--cm-muted);
}

.cm-footer-lang {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	white-space: nowrap;
}

.cm-footer-lang-label {
	color: var(--cm-muted);
}

.cm-footer-sep {
	color: var(--cm-muted);
	opacity: 0.7;
}

.cm-footer-nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.15rem 0.85rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.cm-footer-nav::-webkit-scrollbar {
	display: none;
}

.cm-footer-nav a {
	white-space: nowrap;
	flex: 0 0 auto;
}

@media (max-width: 760px) {
	.cm-footer-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.cm-footer-nav {
		justify-content: flex-start;
		flex-wrap: wrap;
		overflow-x: visible;
		row-gap: 0.35rem;
	}
}

/* —— Home —— */
.cm-home { padding-top: 4.5rem; }

.cm-hero { padding: 1.75rem 0 2.75rem; }

.cm-hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 2.25rem;
	align-items: center;
}

/* ゲスト向けフルブリード第一画面 */
.cm-hero-bleed {
	position: relative;
	isolation: isolate;
	min-height: min(78vh, 42rem);
	display: flex;
	align-items: flex-end;
	padding: 0;
	margin: 0;
	overflow: hidden;
	background: #2a3f3c;
}

.cm-hero-bleed-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.cm-hero-bleed-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	display: block;
	transform: scale(1.02);
	animation: cm-hero-drift 18s ease-in-out infinite alternate;
}

@keyframes cm-hero-drift {
	from { transform: scale(1.02) translate3d(0, 0, 0); }
	to { transform: scale(1.06) translate3d(-1.2%, -0.6%, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.cm-hero-bleed-media img {
		animation: none;
		transform: none;
	}
}

.cm-hero-bleed-veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(105deg, rgba(24, 38, 36, 0.82) 0%, rgba(24, 38, 36, 0.55) 42%, rgba(24, 38, 36, 0.22) 68%, rgba(24, 38, 36, 0.35) 100%),
		linear-gradient(to top, rgba(24, 38, 36, 0.55) 0%, transparent 42%);
}

.cm-hero-bleed-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: calc(5.5rem + var(--cm-announce-strip-h, 0px));
	padding-bottom: clamp(2rem, 5vh, 3.25rem);
}

.cm-hero-copy-on-media {
	max-width: 34rem;
	animation: cm-hero-rise 0.7s ease-out both;
}

@keyframes cm-hero-rise {
	from { opacity: 0; transform: translateY(0.7rem); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cm-hero-copy-on-media { animation: none; }
}

.cm-hero-bleed .cm-hero-brand {
	color: #f4faf8;
	font-size: clamp(2rem, 5.5vw, 3.1rem);
	letter-spacing: 0.04em;
	margin-bottom: 0.55rem;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

.cm-hero-bleed .cm-hero-title {
	color: #eef6f3;
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 550;
	line-height: 1.55;
	margin-bottom: 0.75rem;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.cm-hero-bleed .cm-hero-lead {
	color: rgba(238, 246, 243, 0.88);
	max-width: 28em;
	margin-bottom: 1.35rem;
	font-size: 0.98rem;
	line-height: 1.7;
}

.cm-hero-bleed .cm-btn-primary {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cm-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.62rem 1.2rem;
	border-radius: var(--cm-radius-sm);
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none !important;
	background: rgba(255, 255, 255, 0.14);
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(6px);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.cm-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.24);
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.6);
}

.cm-hero-brand {
	font-size: clamp(1.45rem, 3.2vw, 2rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--cm-ink);
	margin-bottom: 0.65rem;
	line-height: 1.25;
}

.cm-hero-title {
	font-size: clamp(1.15rem, 2.4vw, 1.45rem);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--cm-ink);
	margin-bottom: 0.85rem;
}

.cm-hero-lead {
	font-size: 0.98rem;
	color: var(--cm-muted);
	max-width: 32em;
	margin-bottom: 1.5rem;
	line-height: 1.75;
}

.cm-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.cm-btn-primary,
.cm-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.62rem 1.2rem;
	border-radius: var(--cm-radius-sm);
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cm-btn-primary {
	background: var(--cm-mint);
	color: #fff !important;
	border: 1px solid var(--cm-mint);
	box-shadow: none;
}

.cm-btn-primary:hover {
	background: var(--cm-mint-dark);
	color: #fff !important;
	transform: none;
}

.cm-btn-outline {
	background: var(--cm-surface);
	color: var(--cm-mint-dark) !important;
	border: 1px solid var(--cm-line-strong);
}

.cm-btn-outline:hover {
	background: var(--cm-mint-soft);
	color: var(--cm-mint-dark) !important;
}

.cm-hero-visual {
	position: relative;
	z-index: 0;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: var(--cm-shadow);
	background: linear-gradient(145deg, #fff8f5, #eef6f3);
	aspect-ratio: 5 / 4;
}

.cm-hero-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/* transform アニメは fixed ナビの dropdown と重なると前面に描画されやすいため使わない */
	animation: cm-soft-glow 7s ease-in-out infinite;
}

@keyframes cm-soft-glow {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.96; }
}

.cm-rooms { padding: 0.25rem 0 2.5rem; }

.cm-rooms-head {
	text-align: left;
	margin-bottom: 1rem;
	max-width: 36rem;
}

.cm-rooms-head h2 {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-bottom: 0.3rem;
	color: var(--cm-ink);
}

.cm-rooms-head p {
	color: var(--cm-muted);
	font-size: 0.9rem;
	margin: 0;
	line-height: 1.65;
}

.cm-filters {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.cm-selectgroup {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: flex-start;
}

.cm-selectgroup .form-selectgroup-item {
	margin: 0 !important;
}

.form-selectgroup-label {
	border-radius: var(--cm-radius-pill) !important;
	border: 1px solid var(--cm-line) !important;
	background: rgba(255, 255, 255, 0.88) !important;
	color: var(--cm-muted) !important;
	padding: 0.35rem 0.85rem !important;
	font-weight: 500;
	font-size: 0.86rem;
	white-space: nowrap;
}

.form-selectgroup-input:checked + .form-selectgroup-label {
	background: var(--cm-mint) !important;
	border-color: var(--cm-mint) !important;
	color: #fff !important;
}

.cm-search {
	width: 100%;
	max-width: 28rem;
}

.cm-search .form-control {
	border-radius: var(--cm-radius-pill);
	border-color: var(--cm-line);
	background: #fff;
}

.cm-room-grid {
	display: grid !important;
	grid-gap: 1.1rem !important;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
}

.cm-room-grid .room-loop-link,
.room-list-row .room-loop-link {
	text-decoration: none;
	color: inherit;
}

.room-card {
	border-radius: var(--cm-radius) !important;
	border: 1px solid var(--cm-line) !important;
	background: var(--cm-surface) !important;
	box-shadow: var(--cm-shadow-soft);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.room-card:hover {
	box-shadow: var(--cm-shadow) !important;
	transform: translateY(-3px);
}

.room-card .card-img-top {
	min-height: 128px;
	background-size: cover;
	background-position: center;
}

.room-card .card-title {
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--cm-ink);
}

.room-image {
	border-radius: 14px !important;
	border: 3px solid #fff !important;
	box-shadow: var(--cm-shadow-soft);
}

.room-image-fallback {
	position: absolute;
	top: -30px;
	left: 15px;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	border: 3px solid #fff;
	background: var(--cm-mint-soft);
	color: var(--cm-mint);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--cm-shadow-soft);
}

.room-image-fallback .ti { font-size: 1.25rem; }

.room-stats { color: var(--cm-muted); font-size: 0.78rem; }

.room-enter {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--cm-mint-soft);
	color: var(--cm-mint);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.room-card-desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.85rem;
}

.cm-trust { padding: 2.5rem 0 3rem; }

.cm-trust-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	padding: 1.85rem 1.25rem;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--cm-line);
	border-radius: 24px;
	box-shadow: var(--cm-shadow-soft);
}

.cm-trust-item { text-align: center; padding: 0.5rem 0.75rem; }

.cm-trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 1.5px solid var(--cm-mint);
	color: var(--cm-mint);
	margin-bottom: 0.85rem;
}

.cm-trust-icon .ti { font-size: 1.35rem; }

.cm-trust-item h2 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
}

.cm-trust-item h3 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
	color: var(--cm-ink);
}

.cm-trust-item p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--cm-muted);
	line-height: 1.6;
}

.cm-hero-about {
	font-size: 0.9rem;
	color: var(--cm-muted);
	max-width: 36em;
	margin: -0.35rem 0 1.25rem;
	line-height: 1.7;
}

.cm-about-strip {
	padding: 0 0 1.75rem;
}

.cm-guest-section-head {
	margin-bottom: 1.15rem;
	max-width: 40em;
}

.cm-guest-section-head h2 {
	font-size: clamp(1.1rem, 2.2vw, 1.3rem);
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--cm-ink);
	margin: 0 0 0.4rem;
}

.cm-guest-section-head p {
	margin: 0;
	color: var(--cm-muted);
	line-height: 1.7;
	font-size: 0.95rem;
}

.cm-guest-section-head-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	max-width: none;
}

.cm-guest-more-links {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.65rem;
	align-items: center;
}

.cm-guest-more-links a {
	font-weight: 600;
	color: var(--cm-mint-dark, #2a7a68);
	text-decoration: none;
}

.cm-guest-more-links a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cm-guest-start {
	padding: 0.5rem 0 2.25rem;
}

.cm-guest-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
}

.cm-guest-steps li {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 1.15rem 1.2rem;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 250, 248, 0.88) 100%);
}

.cm-guest-step-num {
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
	color: #fff;
	background: var(--cm-mint, #3d9b84);
}

.cm-guest-steps h3 {
	font-size: 0.98rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	color: var(--cm-ink);
}

.cm-guest-steps p {
	margin: 0 0 0.65rem;
	font-size: 0.86rem;
	line-height: 1.65;
	color: var(--cm-muted);
}

.cm-guest-steps a {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--cm-mint-dark, #2a7a68);
	text-decoration: none;
}

.cm-guest-steps a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cm-guest-cta {
	padding: 0 0 2.75rem;
}

.cm-guest-cta-inner {
	padding: 1.6rem 1.4rem;
	border-radius: var(--cm-radius);
	border: 1px solid var(--cm-line);
	background:
		radial-gradient(ellipse 80% 120% at 0% 0%, rgba(61, 155, 132, 0.12), transparent 55%),
		linear-gradient(135deg, #f7fbf9 0%, #eef6f3 48%, #f5f8f6 100%);
}

.cm-guest-cta-brand {
	font-family: "IBM Plex Sans JP", "Noto Sans JP", sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin: 0 0 0.35rem;
	color: var(--cm-ink);
}

.cm-guest-cta-text {
	margin: 0 0 1.1rem;
	max-width: 34em;
	color: var(--cm-muted);
	line-height: 1.7;
}

.cm-hero-hint {
	margin: 0.85rem 0 0;
	font-size: 0.82rem;
	color: var(--cm-muted);
	line-height: 1.55;
}

.cm-guest-rooms-first {
	padding: 1.35rem 0 1.75rem;
}

.cm-guest-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
}

.cm-guest-cats a {
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--cm-ink);
	text-decoration: none;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius-sm);
	background: rgba(255, 255, 255, 0.88);
	white-space: nowrap;
}

.cm-guest-cats a:hover {
	border-color: rgba(61, 155, 132, 0.4);
	color: var(--cm-mint-dark, #2a7a68);
}

.cm-guest-cats-more {
	color: var(--cm-mint-dark, #2a7a68) !important;
}

.cm-guest-for {
	padding: 0.75rem 0 2.25rem;
}

.cm-guest-for-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
}

.cm-guest-for-list li {
	padding: 0.85rem 1rem;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius-sm);
	background: rgba(255, 255, 255, 0.86);
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--cm-ink);
}

.cm-guest-features {
	padding-bottom: 2rem;
}

.cm-guest-pillars {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--cm-line);
}

.cm-guest-pillars > li {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	padding: 1.25rem 1.15rem 1.25rem 0;
	border-bottom: 1px solid var(--cm-line);
}

.cm-guest-pillars > li:nth-child(odd) {
	padding-right: 1.5rem;
	border-right: 1px solid var(--cm-line);
}

.cm-guest-pillars > li:nth-child(even) {
	padding-left: 1.5rem;
}

.cm-guest-pillar-icon {
	flex: 0 0 auto;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(61, 155, 132, 0.12);
	color: var(--cm-mint-dark, #2a7a68);
	font-size: 1.15rem;
}

.cm-guest-pillars h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0.15rem 0 0.4rem;
	color: var(--cm-ink);
	letter-spacing: 0.02em;
}

.cm-guest-pillars p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.7;
	color: var(--cm-muted);
}

.cm-guest-rules {
	padding: 0.5rem 0 2.25rem;
}

.cm-guest-rules-list {
	margin-bottom: 1rem;
}

.cm-home-browse-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.1rem;
}

@media (max-width: 1100px) {
	.cm-guest-for-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.cm-guest-steps {
		grid-template-columns: 1fr;
	}

	.cm-guest-for-list {
		grid-template-columns: 1fr;
	}

	.cm-guest-pillars {
		grid-template-columns: 1fr;
		border-top: none;
	}

	.cm-guest-pillars > li,
	.cm-guest-pillars > li:nth-child(odd),
	.cm-guest-pillars > li:nth-child(even) {
		padding: 1rem 0;
		border-right: 0;
	}

	.cm-guest-pillars > li:first-child {
		border-top: 1px solid var(--cm-line);
	}

	.cm-guest-cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.2rem;
		mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.25rem), transparent 100%);
		-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.25rem), transparent 100%);
	}

	.cm-guest-cats::-webkit-scrollbar {
		display: none;
	}

	.cm-guest-rooms-first {
		padding: 1.1rem 0 1.5rem;
	}

	.cm-guest-for,
	.cm-guest-start,
	.cm-guest-rules {
		padding-top: 1.15rem;
		padding-bottom: 1.85rem;
	}

	.cm-guest-features.cm-about-strip {
		padding-bottom: 1.5rem;
	}

	.cm-guest-cta {
		padding-bottom: 2.25rem;
	}

	.cm-guest-section-head {
		margin-bottom: 0.95rem;
	}

	.cm-home-browse-cta {
		flex-direction: column;
		align-items: stretch;
	}

	.cm-home-browse-cta .btn {
		width: 100%;
		justify-content: center;
	}
}

.cm-about-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.cm-about-item {
	padding: 1.1rem 1.15rem;
	border: 1px solid var(--cm-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.82);
}

.cm-about-item h2,
.cm-about-item h3 {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--cm-ink);
}

.cm-about-item p {
	margin: 0;
	font-size: 0.84rem;
	color: var(--cm-muted);
	line-height: 1.65;
}

.cm-welcome-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 1rem 1.15rem;
	margin-bottom: 1.35rem;
	border: 1px solid var(--cm-line);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(228, 240, 237, 0.85), rgba(255, 255, 255, 0.95));
}

.cm-welcome-bar-label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--cm-mint-dark);
}

.cm-welcome-bar-title {
	margin: 0.15rem 0 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--cm-ink);
}

.cm-home-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.9fr);
	gap: 1.35rem;
	align-items: start;
}

/* mixi-inspired 3-column home desk */
.cm-home-desk {
	padding: 5.25rem 0 2rem;
}

/* desk / guest landing: nav clearance lives on desk or hero inner (avoid double padding) */
.cm-home.cm-myhome,
.cm-home.cm-guest-landing,
.cm-home.cm-profile-desk,
.cm-home.cm-social-desk {
	padding-top: 0;
}

.cm-home-trio {
	display: grid;
	grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr) minmax(13rem, 16.5rem);
	grid-template-areas: "rail feed updates";
	gap: 1rem;
	align-items: start;
}

.cm-home-rail {
	grid-area: rail;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.cm-area-feed {
	grid-area: feed;
	min-width: 0;
}

.cm-home-updates {
	grid-area: updates;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.cm-rail-profile {
	padding-bottom: 0.35rem;
}

.cm-rail-identity {
	display: grid;
	grid-template-columns: 3.4rem 1fr;
	gap: 0.65rem;
	align-items: center;
	text-decoration: none !important;
	color: inherit;
	margin-bottom: 0.45rem;
}

.cm-rail-identity img {
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	object-fit: cover;
	background: var(--cm-mint-soft);
	border: 1px solid var(--cm-line);
}

.cm-rail-identity strong {
	display: block;
	font-size: 0.95rem;
	color: var(--cm-ink);
}

.cm-rail-identity small {
	display: block;
	font-size: 0.75rem;
	color: var(--cm-muted);
}

.cm-rail-welcome {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	color: var(--cm-muted);
}

.cm-rail-shortcuts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
	border-top: 0;
	margin-top: 0.55rem;
}

.cm-rail-shortcuts a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	min-height: 3.75rem;
	padding: 0.35rem 0.2rem;
	border-radius: var(--cm-radius-sm);
	border: 0;
	background: var(--cm-mint-soft);
	color: var(--cm-ink);
	text-decoration: none !important;
	font-size: 0.64rem;
	font-weight: 650;
	letter-spacing: 0;
	line-height: 1.2;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cm-rail-shortcuts a:hover {
	background: rgba(61, 111, 105, 0.16);
	transform: translateY(-1px);
	color: var(--cm-mint-dark);
}

.cm-rail-shortcuts a[aria-current="page"] {
	background: rgba(61, 111, 105, 0.18);
	box-shadow: inset 0 0 0 1px rgba(61, 111, 105, 0.28);
	color: var(--cm-mint-dark);
}

.cm-rail-shortcuts span {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0;
	text-align: center;
	white-space: normal;
	overflow-wrap: normal;
	word-break: keep-all;
	line-break: strict;
	line-height: 1.2;
}

.cm-rail-shortcuts i {
	font-size: 1.1rem;
	color: var(--cm-mint);
	width: auto;
	text-align: center;
	flex-shrink: 0;
}

.cm-rail-shortcuts em {
	position: absolute;
	top: 0.25rem;
	right: 0.3rem;
	margin-left: 0;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: var(--cm-coral);
	color: #fff;
	font-style: normal;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.1rem;
	text-align: center;
}

.cm-rail-mini-link {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.82rem;
	font-weight: 650;
	color: var(--cm-mint-dark);
	text-decoration: none !important;
}

.cm-side-links {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
}

.cm-side-links a {
	display: block;
	padding: 0.45rem 0.2rem;
	border-bottom: 1px solid rgba(81, 139, 133, 0.08);
	color: var(--cm-mint-dark);
	font-size: 0.88rem;
	font-weight: 650;
	text-decoration: none !important;
}

.cm-side-links a:last-child {
	border-bottom: 0;
}

.cm-side-links a:hover {
	color: var(--cm-mint);
}

.cm-thumb-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.55rem 0.35rem;
}

.cm-thumb-grid a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	text-decoration: none !important;
	color: inherit;
	text-align: center;
}

.cm-thumb-grid img {
	width: 2.85rem;
	height: 2.85rem;
	border-radius: 50%;
	object-fit: cover;
	background: var(--cm-mint-soft);
	border: 1px solid var(--cm-line);
}

.cm-thumb-grid span {
	font-size: 0.68rem;
	line-height: 1.25;
	color: var(--cm-ink);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-friends-thumb-page {
	grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
	gap: 0.75rem 0.5rem;
}

.cm-friends-thumb-page img {
	width: 3.4rem;
	height: 3.4rem;
}

.cm-friends-thumb-page span {
	font-size: 0.74rem;
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.cm-friends-manage {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(81, 139, 133, 0.12);
}

.cm-friends-manage summary {
	cursor: pointer;
	font-size: 0.86rem;
	font-weight: 650;
	color: var(--cm-muted);
	margin-bottom: 0.65rem;
}

.cm-room-thumb-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.cm-room-thumb-list li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.25rem;
	align-items: center;
}

.cm-room-thumb-chat {
	display: grid;
	grid-template-columns: 1.85rem 1fr;
	gap: 0.45rem;
	align-items: center;
	min-width: 0;
	padding: 0.3rem 0.2rem;
	text-decoration: none !important;
	color: inherit;
	font-size: 0.82rem;
	font-weight: 600;
}

.cm-room-thumb-chat img,
.cm-room-thumb-chat .fallback {
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 8px;
	object-fit: cover;
	background: var(--cm-mint-soft);
}

.cm-room-thumb-chat .fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-mint);
	font-size: 0.95rem;
}

.cm-room-thumb-chat span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cm-room-thumb-board {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 8px;
	color: var(--cm-mint-dark);
	background: rgba(81, 139, 133, 0.1);
	text-decoration: none !important;
}

.cm-request-mini {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.cm-request-mini li {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid rgba(81, 139, 133, 0.1);
}

.cm-request-mini li > a {
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: 0.5rem;
	align-items: center;
	text-decoration: none !important;
	color: inherit;
	font-size: 0.86rem;
	font-weight: 650;
}

.cm-request-mini img {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	object-fit: cover;
}

.cm-friends-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 0.65rem;
}

.cm-friends-grid li {
	border-bottom: 0 !important;
	padding: 0.65rem 0.75rem !important;
	border-radius: 12px;
	background: rgba(255,255,255,0.78);
	border: 1px solid transparent;
}

.cm-friends-grid li:hover {
	border-color: var(--cm-line);
	background: #fff;
}

.cm-nav-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.15rem;
	height: 1.15rem;
	margin-left: 0.25rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: #c45c4a;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	vertical-align: middle;
}

@media (max-width: 1280px) {
	.cm-home-trio {
		grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr);
		grid-template-areas:
			"rail feed"
			"updates updates";
	}

	.cm-home-updates {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
		gap: 0.85rem;
	}
}

/* mixi-like phone: compact profile → feed; avoid sticky chrome eating the viewport */
@media (max-width: 760px) {
	.cm-home-desk {
		padding-top: 4.35rem;
		padding-bottom: 1.5rem;
	}

	body.front-site.has-announce-strip .cm-home-desk {
		padding-top: calc(4.35rem + var(--cm-announce-strip-h));
	}

	.cm-home-desk > .container {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.cm-home-trio {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"profile"
			"feed"
			"friends"
			"rooms"
			"updates";
		gap: 0.75rem;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	/* 機能ページは本題を先に（検索・投稿フォームなど） */
	.cm-social-desk .cm-home-trio,
	.cm-profile-desk .cm-home-trio {
		grid-template-areas:
			"feed"
			"profile"
			"friends"
			"rooms"
			"updates";
	}

	.cm-home-rail,
	.cm-home-updates {
		display: contents;
	}

	.cm-area-profile { grid-area: profile; }
	.cm-area-feed { grid-area: feed; }
	.cm-area-friends { grid-area: friends; }
	.cm-area-rooms { grid-area: rooms; }
	.cm-area-updates { grid-area: updates; display: flex; flex-direction: column; gap: 0.75rem; }

	.cm-area-profile {
		position: static;
		top: auto;
		z-index: auto;
		margin: 0;
		padding: 0.55rem 0.7rem 0.6rem;
		border-radius: var(--cm-radius);
		border: 1px solid var(--cm-line);
		background: var(--cm-surface);
		box-shadow: none;
	}

	.cm-rail-welcome {
		display: none;
	}

	.cm-rail-identity {
		margin-bottom: 0.35rem;
	}

	.cm-rail-identity img {
		width: 2.35rem;
		height: 2.35rem;
	}

	.cm-rail-settings-links {
		display: none;
	}

	.cm-rail-shortcuts {
		display: flex;
		flex-wrap: nowrap;
		gap: 0.4rem;
		overflow-x: auto;
		border-top: 0;
		margin-top: 0.35rem;
		padding: 0.1rem 0.05rem 0.35rem;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.cm-rail-shortcuts a {
		flex: 0 0 auto;
		width: 4.35rem;
		min-height: 3.35rem;
		padding: 0.35rem 0.2rem;
		font-size: 0.62rem;
		border: 0;
		border-radius: var(--cm-radius-sm);
		background: var(--cm-mint-soft);
		scroll-snap-align: start;
	}

	.cm-rail-shortcuts i {
		font-size: 1.05rem;
	}

	.cm-rail-shortcuts em {
		position: absolute;
		top: 0.15rem;
		right: 0.15rem;
		margin-left: 0;
	}

	.cm-action-strip {
		display: none;
	}

	.cm-feed-lead {
		display: none;
	}

	.cm-announce-banner {
		margin-bottom: 0.75rem;
		padding: 0.75rem 0.85rem;
	}

	.cm-announce-banner-title {
		font-size: 1rem;
	}

	.cm-area-friends,
	.cm-area-rooms,
	.cm-area-updates .cm-home-block {
		margin: 0;
	}

	.cm-thumb-scroll {
		display: flex;
		grid-template-columns: none;
		gap: 0.65rem;
		overflow-x: auto;
		padding: 0.15rem 0.1rem 0.45rem;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.cm-thumb-scroll li {
		flex: 0 0 auto;
		width: 4.1rem;
		scroll-snap-align: start;
	}

	.cm-thumb-scroll span {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.cm-feed-panel {
		border-radius: var(--cm-radius);
	}

	.cm-feed-head {
		margin-bottom: 0.45rem;
	}

	.cm-feed-head h2 {
		font-size: 1.05rem;
	}
}

/* —— Desk blocks / feed shell —— */
.cm-home-block {
	margin: 0;
	padding: 1rem 1.1rem 1.05rem;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	background: var(--cm-surface);
	box-shadow: var(--cm-shadow-soft);
}

.cm-home-block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0;
	border-bottom: 0;
}

.cm-home-block-head h2 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--cm-ink);
}

.cm-home-block-links {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.65rem 0.85rem;
}

.cm-home-block-link {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--cm-mint-dark);
	text-decoration: none !important;
	white-space: nowrap;
}

.cm-home-block-link:hover {
	color: var(--cm-mint);
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.cm-empty-soft {
	padding: 1.1rem 0.9rem;
	border: 1px dashed var(--cm-line-strong);
	border-radius: var(--cm-radius-sm);
	background: rgba(255, 255, 255, 0.35);
	text-align: center;
}

.cm-empty-soft p {
	margin: 0 0 0.65rem;
	color: var(--cm-muted);
	font-size: 0.88rem;
}

.cm-empty-soft-compact {
	padding: 0.7rem 0.6rem;
}

.cm-empty-soft-compact .cm-rail-mini-link {
	display: inline-block;
	margin: 0.15rem 0.2rem;
}

.cm-rail-room-create {
	margin-top: 0.55rem;
	padding-top: 0.35rem;
	border-top: 1px solid rgba(81, 139, 133, 0.12);
}

.cm-rooms-page-head {
	flex-wrap: wrap;
	align-items: flex-start;
}

.cm-rooms-page-head .cm-btn-primary {
	flex: 0 0 auto;
	margin-top: 0.15rem;
}

.cm-empty-soft-compact p {
	margin-bottom: 0.4rem;
	font-size: 0.82rem;
}

.cm-empty-soft-compact .cm-rail-mini-link + .cm-rail-mini-link {
	margin-top: 0.2rem;
}

.cm-empty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
	align-items: center;
	margin-top: 0.55rem;
}

.cm-empty-actions .cm-rail-mini-link {
	display: inline-flex;
}

.cm-empty-soft-compact .cm-empty-actions {
	margin-top: 0.4rem;
}

.cm-request-mini .cm-inline-actions {
	width: 100%;
}

.cm-request-mini .cm-inline-actions .btn {
	flex: 1 1 0;
	min-width: 0;
	font-size: 0.75rem;
	padding-inline: 0.45rem;
}

.cm-side-note {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.55;
	color: var(--cm-muted);
}

.cm-feed-panel {
	overflow: visible;
}

.cm-feed-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.cm-feed-head h2 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--cm-ink);
}

.cm-feed-lead {
	margin: 0.2rem 0 0;
	font-size: 0.84rem;
	color: var(--cm-muted);
	line-height: 1.5;
}

.cm-feed-tabs {
	display: flex;
	gap: 0;
	padding: 0;
	margin-bottom: 0.85rem;
	border-radius: 0;
	background: transparent;
	border-bottom: 1px solid var(--cm-line);
}

.cm-feed-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.35rem;
	padding: 0.4rem 0.55rem;
	margin-bottom: -1px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--cm-muted);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.cm-feed-tab i {
	display: inline-block;
	font-size: 0.95rem;
	opacity: 0.85;
}

.cm-feed-tab:hover {
	color: var(--cm-ink);
}

.cm-feed-tab.is-active {
	background: transparent;
	color: var(--cm-ink);
	box-shadow: none;
	transform: none;
	border-bottom-color: var(--cm-mint);
	font-weight: 700;
}

.cm-feed-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.2rem;
	height: 1.2rem;
	padding: 0 0.3rem;
	border-radius: 6px;
	background: rgba(81, 139, 133, 0.12);
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--cm-mint-dark);
}

.cm-feed-pane[hidden] {
	display: none !important;
}

.cm-feed-compose {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	margin-bottom: 0.85rem;
	padding: 0.75rem 0.85rem;
	border-radius: var(--cm-radius-sm);
	border: 1px solid var(--cm-line);
	background: #fff;
	text-decoration: none !important;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.cm-feed-compose:hover {
	border-color: var(--cm-line-strong);
	transform: none;
	color: inherit;
	background: #fff;
}

.cm-feed-compose-prompt {
	font-size: 0.9rem;
	color: var(--cm-muted);
}

.cm-feed-compose-copy {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.cm-feed-compose-kicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--cm-mint-dark);
}

.cm-feed-compose.is-week-theme .cm-feed-compose-prompt {
	font-size: 0.95rem;
	font-weight: 650;
	color: var(--cm-ink);
}

.cm-feed-compose-hint {
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--cm-muted);
}

.cm-week-theme {
	margin: 0 0 0.85rem;
	padding: 0.85rem 1rem;
	border-radius: var(--cm-radius-sm);
	border: 1px solid var(--cm-line);
	border-left: 4px solid var(--cm-mint-dark);
	background: var(--cm-mint-soft);
}

.cm-week-theme-kicker {
	margin: 0 0 0.2rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--cm-mint-dark);
}

.cm-week-theme-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--cm-ink);
	line-height: 1.4;
}

.cm-week-theme-body {
	margin: 0.35rem 0 0;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--cm-muted);
}

.cm-feed-compose-btn {
	flex-shrink: 0;
	padding: 0.35rem 0.75rem;
	border-radius: var(--cm-radius-sm);
	background: var(--cm-mint);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
}

.cm-feed-compose:hover .cm-feed-compose-btn {
	background: var(--cm-mint-dark);
}

.cm-feed-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid var(--cm-line);
}

.cm-feed-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
	border-bottom: 0;
}

.cm-feed-filter {
	border: 1px solid var(--cm-line);
	border-bottom: 1px solid var(--cm-line);
	background: transparent;
	color: var(--cm-muted);
	border-radius: var(--cm-radius-sm);
	padding: 0.28rem 0.62rem;
	margin-bottom: 0;
	font-size: 0.76rem;
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cm-feed-filter:hover {
	color: var(--cm-ink);
	border-color: var(--cm-line-strong);
}

.cm-feed-filter.is-active {
	background: rgba(61, 111, 105, 0.1);
	border-color: rgba(61, 111, 105, 0.35);
	border-bottom-color: rgba(61, 111, 105, 0.35);
	color: var(--cm-mint-dark);
	font-weight: 650;
}

.cm-feed-sections {
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
}

.cm-feed-section-head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.55rem;
	padding: 0 0.15rem;
}

.cm-feed-section-head h3 {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--cm-ink);
}

.cm-feed-section-icon {
	display: none;
}

.cm-feed-section-board .cm-feed-section-icon {
	background: var(--cm-coral-soft);
	color: #b56a55;
}

.cm-feed-section-chat .cm-feed-section-icon {
	background: #e8f0f6;
	color: #4a6f8c;
}

.cm-feed-section-count {
	margin-left: auto;
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
	color: var(--cm-muted);
	background: rgba(47, 61, 59, 0.05);
	padding: 0.15rem 0.45rem;
	border-radius: 6px;
}

.cm-feed-section[hidden],
.cm-feed-item[hidden] {
	display: none !important;
}

.cm-feed-item {
	border-bottom: 1px solid var(--cm-line);
}

.cm-feed-card,
.cm-feed-entry {
	display: block;
	position: relative;
	padding: 0.85rem 0.1rem 0.55rem;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: inherit;
	overflow: visible;
	box-shadow: none !important;
	transition: none;
}

.cm-feed-card:hover,
.cm-feed-entry:hover {
	background: transparent !important;
	box-shadow: none !important;
}

.cm-feed-card-diary,
.cm-feed-card-board,
.cm-feed-card-chat,
.cm-feed-entry-diary,
.cm-feed-entry-board,
.cm-feed-entry-chat {
	border-left: 0 !important;
	background: transparent !important;
	padding-left: 0.1rem;
	box-shadow: none !important;
}

.cm-feed-repost-label {
	margin: 0 0 0.35rem;
	padding: 0;
	font-size: 0.75rem;
	color: var(--cm-muted);
	display: block;
}

.cm-feed-repost-label i {
	display: none !important;
}

.cm-feed-repost-label a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cm-feed-avatar {
	width: 2.4rem;
	height: 2.4rem;
	flex-shrink: 0;
	display: block;
	overflow: hidden;
	border-radius: 50%;
}

.cm-feed-avatar img,
.cm-feed-avatar .fallback {
	display: block;
	width: 2.4rem !important;
	height: 2.4rem !important;
	max-width: 2.4rem;
	max-height: 2.4rem;
	border-radius: 50%;
	object-fit: cover;
	background: #f0f0f0;
	border: 1px solid var(--cm-line);
	box-shadow: none;
}

.cm-feed-avatar .fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-muted);
	font-size: 0.85rem;
	font-weight: 700;
	background: #f3f3f3;
}

.cm-feed-main {
	display: grid;
	grid-template-columns: 2.4rem minmax(0, 1fr);
	gap: 0.65rem;
	align-items: start;
	padding: 0;
	text-decoration: none !important;
	color: inherit;
}

a.cm-feed-avatar {
	text-decoration: none !important;
}

.cm-feed-author {
	color: inherit;
	text-decoration: none !important;
}

.cm-feed-author:hover strong {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cm-feed-content {
	display: block;
	text-decoration: none !important;
	color: inherit;
}

.cm-feed-content:hover .cm-feed-preview {
	color: var(--cm-mint-dark);
}

.cm-feed-preview-sub {
	display: block;
	margin-top: 0.28rem;
	font-size: 0.86rem;
	color: var(--cm-muted);
	line-height: 1.55;
}

.cm-feed-actions,
.cm-engage-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.85rem;
	padding: 0.4rem 0 0.1rem 3.05rem;
	border-top: 0;
	margin-top: 0.25rem;
}

.cm-engage-bar {
	padding: 0.55rem 0 0;
	margin-top: 0.65rem;
	border-top: 1px solid var(--cm-line);
}

.cm-feed-action-form {
	margin: 0;
	display: inline-flex;
}

.cm-feed-action {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	border: 0 !important;
	background: transparent !important;
	color: var(--cm-muted);
	border-radius: 0 !important;
	padding: 0 !important;
	font-size: 0.78rem;
	line-height: 1.3;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: color 0.12s ease;
}

.cm-feed-action:hover {
	background: transparent !important;
	color: var(--cm-mint-dark);
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.cm-feed-action.is-active {
	color: var(--cm-mint-dark);
	background: transparent !important;
	font-weight: 700;
}

.cm-feed-action.is-active[aria-pressed="true"] i.ti-repeat,
.cm-feed-action.is-active .ti-repeat {
	color: var(--cm-mint-dark);
}

.cm-feed-action.is-active:has(.ti-repeat) {
	color: var(--cm-mint-dark);
	background: transparent !important;
}

.cm-feed-action.is-static {
	cursor: default;
}

.cm-feed-action-count {
	font-variant-numeric: tabular-nums;
	min-width: 0;
	font-weight: 600;
}

.cm-feed-action-label {
	font-weight: 500;
	display: inline;
}

.cm-feed-action i {
	display: none !important;
}

@media (max-width: 575.98px) {
	.cm-feed-actions {
		padding-left: 0;
		gap: 0.35rem 0.75rem;
	}

	.cm-feed-action {
		font-size: 0.72rem;
	}

	.cm-feed-action-label {
		display: inline;
	}

	.cm-feed-card,
	.cm-feed-entry {
		padding: 0.75rem 0.05rem 0.5rem;
	}
}

.cm-feed-top {
	display: none;
}

.cm-feed-badge,
.cm-feed-badge-diary,
.cm-feed-badge-board,
.cm-feed-badge-chat,
.cm-feed-badge-repost {
	display: none;
}

.cm-feed-who {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.55rem;
	margin-bottom: 0.12rem;
}

.cm-feed-who strong {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--cm-ink);
}

.cm-feed-who time,
.cm-feed-who small {
	font-size: 0.76rem;
	font-weight: 400;
	color: var(--cm-muted);
}

.cm-feed-meta {
	display: inline-block;
	margin: 0.18rem 0 0.28rem;
	padding: 0.12rem 0.48rem;
	border-radius: 6px;
	background: rgba(36, 51, 47, 0.05);
	color: var(--cm-muted);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.35;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: top;
}

.cm-feed-entry-board .cm-feed-meta {
	color: #9a5a4a;
	background: var(--cm-coral-soft);
}

.cm-feed-entry-chat .cm-feed-meta {
	color: #4a6f8c;
	background: #e8f0f6;
}

.cm-feed-preview {
	display: block;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--cm-ink);
	word-break: break-word;
}

.cm-feed-hints {
	list-style: none;
	margin: 0.85rem 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	text-align: left;
}

.cm-feed-hints li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	background: rgba(255,255,255,0.75);
	font-size: 0.86rem;
	color: var(--cm-muted);
}

.cm-feed-hints a {
	font-weight: 650;
	color: var(--cm-mint);
	text-decoration: none;
}

.cm-people-rail {
	margin-bottom: 0.85rem;
	padding: 0 0 0.75rem;
	border-radius: 0;
	background: transparent;
	border-bottom: 1px solid var(--cm-line);
}

.cm-people-rail-label {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--cm-muted);
	letter-spacing: 0.04em;
}

.cm-people-rail ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.65rem;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-bottom: 0.15rem;
}

.cm-people-rail li {
	flex: 0 0 auto;
	min-width: 9.5rem;
}

.cm-people-rail a {
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: 0.5rem;
	align-items: center;
	padding: 0.25rem 0;
	border-radius: 0;
	background: transparent;
	text-decoration: none !important;
	color: inherit;
	border: 0;
	transition: color 0.15s ease;
}

.cm-people-rail a:hover {
	border-color: transparent;
	transform: none;
	color: var(--cm-mint-dark);
}

.cm-people-rail img {
	width: 2rem;
	height: 2rem;
	border-radius: 4px;
	object-fit: cover;
}

.cm-people-rail strong {
	display: block;
	font-size: 0.84rem;
	color: var(--cm-ink);
}

.cm-people-rail small {
	display: block;
	font-size: 0.72rem;
	color: var(--cm-muted);
	line-height: 1.35;
}

.cm-people-rail em {
	display: none;
}

.cm-feed-cta-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1rem;
}

.cm-guest-feed {
	padding: 0 0 0.5rem;
}

.cm-friends-count {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	font-weight: 650;
	color: var(--cm-mint-dark);
}

.cm-request-panel {
	padding: 1rem;
	border-radius: 16px;
	background: linear-gradient(160deg, rgba(255, 244, 236, 0.95), rgba(255,255,255,0.8));
	border: 1px solid rgba(196, 140, 78, 0.22);
}

.cm-status-note {
	display: block;
	margin-top: 0.2rem;
	font-style: normal;
	font-size: 0.78rem;
	color: var(--cm-muted);
}

.cm-board-diff {
	margin: 0.85rem 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	background: rgba(81, 139, 133, 0.08);
	border: 1px solid rgba(81, 139, 133, 0.14);
}

.cm-board-diff-title {
	margin: 0 0 0.4rem;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--cm-ink);
}

.cm-board-diff ul {
	margin: 0;
	padding-left: 1.1rem;
	color: var(--cm-muted);
	font-size: 0.86rem;
	line-height: 1.55;
}

.cm-profile-home {
	padding-top: 5rem;
	padding-bottom: 2rem;
}

.cm-profile-sheet {
	overflow: hidden;
	border-radius: 22px;
	background: rgba(255,255,255,0.88);
	border: 1px solid rgba(81, 139, 133, 0.12);
	box-shadow: 0 10px 28px rgba(47, 61, 59, 0.05);
}

.cm-profile-cover {
	height: 9.5rem;
	background-size: cover;
	background-position: center;
	background-color: var(--cm-mint-soft);
}

.cm-profile-body {
	padding: 0 1.35rem 1.5rem;
}

.cm-profile-identity {
	display: flex;
	align-items: flex-end;
	gap: 0.9rem;
	margin-top: -2.6rem;
	margin-bottom: 1rem;
}

.cm-profile-avatar {
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	background: #fff;
	box-shadow: 0 4px 14px rgba(47,61,59,0.08);
}

.cm-profile-names h1 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--cm-ink);
}

.cm-profile-handle {
	margin: 0.15rem 0 0;
	color: var(--cm-muted);
	font-size: 0.9rem;
}

.cm-profile-tag {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	color: var(--cm-mint-dark);
}

.cm-profile-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.cm-friend-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 650;
}

.cm-friend-pill.is-friends {
	background: rgba(81, 139, 133, 0.14);
	color: var(--cm-mint-dark);
}

.cm-friend-pill.is-pending,
.cm-friend-pill.is-incoming {
	background: rgba(196, 140, 78, 0.16);
	color: #9a6230;
}

.cm-profile-about {
	margin: 0 0 0.85rem;
	line-height: 1.65;
	color: var(--cm-ink);
}

.cm-profile-about.is-empty {
	color: var(--cm-muted);
}

.cm-profile-meta {
	list-style: none;
	margin: 0 0 1.1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
	font-size: 0.84rem;
	color: var(--cm-muted);
}

.cm-profile-section {
	padding-top: 1rem;
	margin-top: 0.85rem;
	border-top: 1px solid rgba(81, 139, 133, 0.12);
}

.cm-profile-rooms {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.cm-profile-rooms li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 0.7rem;
	border-radius: 12px;
	background: rgba(230, 242, 239, 0.55);
}

.cm-profile-rooms a {
	color: var(--cm-ink);
	text-decoration: none;
	font-weight: 650;
}

.cm-room-board-mini {
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	color: var(--cm-mint-dark) !important;
}

@media (max-width: 760px) {
	.cm-feed-head {
		flex-direction: column;
		align-items: stretch;
	}

	.cm-feed-compose {
		flex-direction: column;
		align-items: stretch;
		gap: 0.55rem;
	}

	.cm-feed-compose-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 0.45rem 0.75rem;
	}

	.cm-feed-tab {
		font-size: 0.82rem;
		padding: 0.4rem 0.45rem;
	}

	.cm-feed-tab i {
		display: none;
	}

	.cm-feed-filters {
		gap: 0.35rem;
	}

	.cm-feed-filter {
		padding: 0.26rem 0.55rem;
		font-size: 0.74rem;
	}
}

.cm-people-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.2rem;
	border-bottom: 1px solid rgba(81,139,133,0.1);
}

.cm-people-main {
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	gap: 0.65rem;
	align-items: center;
	text-decoration: none !important;
	color: inherit;
	min-width: 0;
}

.cm-people-main img {
	width: 2.5rem;
	height: 2.5rem;
	max-width: 2.5rem;
	max-height: 2.5rem;
	border-radius: 50%;
	object-fit: cover;
	background: var(--cm-mint-soft);
	border: 1px solid var(--cm-line);
}

.cm-footprint-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-footprint-list li {
	border-bottom: 1px solid rgba(81, 139, 133, 0.08);
}

.cm-footprint-list li:last-child {
	border-bottom: 0;
}

.cm-footprint-list a {
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	gap: 0.65rem;
	align-items: center;
	padding: 0.55rem 0.1rem;
	text-decoration: none !important;
	color: inherit;
	min-width: 0;
}

.cm-footprint-list img {
	width: 2.4rem;
	height: 2.4rem;
	max-width: 2.4rem;
	max-height: 2.4rem;
	border-radius: 50%;
	object-fit: cover;
	background: var(--cm-mint-soft);
	border: 1px solid var(--cm-line);
}

.cm-footprint-list span {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
}

.cm-footprint-list strong {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
}

.cm-footprint-list small {
	color: var(--cm-muted);
	font-size: 0.75rem;
	line-height: 1.35;
}

.cm-inline-actions {
	display: flex;
	gap: 0.35rem;
	flex-shrink: 0;
}

.cm-post-card {
	border: 1px solid var(--cm-line);
	border-radius: 16px;
	background: #fff;
	padding: 1.1rem 1.15rem;
	margin-bottom: 1.1rem;
	overflow: visible;
}

.cm-post-head a {
	display: grid;
	grid-template-columns: 2.6rem 1fr;
	gap: 0.7rem;
	align-items: center;
	text-decoration: none !important;
	color: inherit;
	margin-bottom: 0.85rem;
}

.cm-post-head img {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	object-fit: cover;
}

.cm-post-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.cm-post-body {
	line-height: 1.75;
	color: var(--cm-ink);
}

.cm-comment-list li {
	display: grid;
	grid-template-columns: 2.3rem 1fr;
	gap: 0.65rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid rgba(81,139,133,0.1);
}

.cm-comment-list img {
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 50%;
	object-fit: cover;
}

a.cm-comment-avatar {
	display: block;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 50%;
	overflow: hidden;
	text-decoration: none !important;
}

a.cm-comment-avatar img {
	width: 100%;
	height: 100%;
}

.cm-comment-author {
	color: inherit;
	text-decoration: none !important;
}

.cm-comment-author:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cm-comment-list p {
	margin: 0.25rem 0 0;
	line-height: 1.6;
}

.cm-side-list li a {
	display: block;
	padding: 0.45rem 0;
	text-decoration: none !important;
	color: var(--cm-ink);
	border-bottom: 1px solid rgba(81,139,133,0.08);
}

.cm-board-quick {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.cm-board-quick a {
	display: grid;
	grid-template-columns: 1.2rem 1fr auto;
	gap: 0.55rem;
	align-items: center;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	background: rgba(255,255,255,0.78);
	border: 1px solid transparent;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--cm-ink);
	text-decoration: none !important;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.cm-board-quick a:hover {
	border-color: var(--cm-line);
	background: #fff;
}

.cm-board-quick strong {
	display: block;
	font-size: 0.88rem;
}

.cm-board-quick small {
	display: block;
	margin-top: 0.1rem;
	font-size: 0.74rem;
	font-weight: 500;
	color: var(--cm-muted);
}

.cm-board-home {
	margin-top: 0.85rem;
}

.cm-rooms-board-note {
	margin: 0.45rem 0 0;
	font-size: 0.86rem;
	color: var(--cm-mint-dark);
}

/* Chat room board entry */
.cm-board-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(81, 139, 133, 0.28);
	background: rgba(230, 242, 239, 0.95);
	color: var(--cm-mint-dark) !important;
	font-size: 0.8rem;
	font-weight: 650;
	text-decoration: none !important;
	white-space: nowrap;
}

.cm-board-chip:hover {
	background: #fff;
	border-color: var(--cm-mint);
}

.cm-board-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding: 0.55rem 1rem;
	border-bottom: 1px solid rgba(81, 139, 133, 0.12);
	background: linear-gradient(90deg, rgba(230, 242, 239, 0.85), rgba(255,255,255,0.6));
}

.cm-board-strip p {
	margin: 0;
	font-size: 0.82rem;
	color: var(--cm-muted);
}

.cm-board-strip a {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.84rem;
	font-weight: 650;
	color: var(--cm-mint-dark);
	text-decoration: none !important;
}

.cm-board-side-cta {
	display: grid;
	grid-template-columns: 1.25rem 1fr auto;
	gap: 0.55rem;
	align-items: center;
	margin: 0.65rem 0.65rem 0.35rem;
	padding: 0.7rem 0.75rem;
	border-radius: 12px;
	border: 1px solid rgba(81, 139, 133, 0.2);
	background: rgba(230, 242, 239, 0.7);
	color: inherit;
	text-decoration: none !important;
}

.cm-board-side-cta strong {
	display: block;
	font-size: 0.86rem;
	color: var(--cm-ink);
}

.cm-board-side-cta small {
	display: block;
	margin-top: 0.1rem;
	font-size: 0.72rem;
	color: var(--cm-muted);
}

.cm-request-note {
	color: var(--cm-mint-dark) !important;
	font-weight: 600;
}

@media (max-width: 900px) {
	.cm-social-layout {
		grid-template-columns: 1fr;
	}
	.cm-people-list li {
		flex-wrap: wrap;
	}
	.cm-page.cm-social {
		padding-top: 4.35rem;
	}
	.cm-friends-thumb-page {
		grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr));
	}
	.cm-inline-actions {
		width: 100%;
	}
	.cm-inline-actions .btn {
		flex: 1 1 auto;
	}
}

.cm-trust-item p {
	font-size: 0.85rem;
	color: var(--cm-muted);
	margin: 0;
	line-height: 1.7;
}

/* —— Secondary pages —— */
.cm-page {
	padding: 5.5rem 0 3rem;
}

.cm-page-header {
	margin-bottom: 1.75rem;
}

.cm-page-header h1,
.cm-page-header h2,
.cm-page .chat-list-header h2 {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--cm-ink);
	margin-bottom: 0.5rem;
}

.cm-page-header p {
	color: var(--cm-muted);
	max-width: 36em;
}

.cm-page .card {
	border-radius: var(--cm-radius) !important;
}

.cm-page .card-header {
	background: transparent;
	border-bottom: 1px solid var(--cm-line);
}

.cm-page .main-content.no-header {
	margin-top: 0;
	padding-top: 0;
}

.cm-prose h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	color: var(--cm-ink);
}

.cm-prose p {
	color: var(--cm-muted);
	margin-bottom: 0.85rem;
}

/* —— About page —— */
.cm-about-page .cm-about-hero {
	margin-bottom: 2.5rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid var(--cm-line);
}

.cm-about-brand {
	font-family: "IBM Plex Sans JP", "Noto Sans JP", sans-serif;
	font-size: clamp(1.65rem, 4vw, 2.35rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--cm-ink);
	margin: 0 0 0.65rem;
	line-height: 1.25;
}

.cm-about-hero h1 {
	font-size: clamp(1.15rem, 2.4vw, 1.45rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: 0 0 0.75rem;
	color: var(--cm-ink);
}

.cm-about-lead {
	max-width: 38em;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--cm-muted);
	margin: 0 0 1.35rem;
}

.cm-about-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.cm-about-section-title {
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--cm-ink);
	margin: 0 0 0.45rem;
}

.cm-about-section-lead {
	max-width: 40em;
	color: var(--cm-muted);
	line-height: 1.7;
	margin: 0 0 1.15rem;
	font-size: 0.95rem;
}

.cm-about-pillars,
.cm-about-story,
.cm-about-values,
.cm-about-more {
	margin-bottom: 2.35rem;
}

.cm-about-pillar-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}

.cm-about-pillar {
	padding: 1.15rem 1.2rem;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 248, 0.9) 100%);
}

.cm-about-pillar h3 {
	font-size: 0.98rem;
	font-weight: 700;
	margin: 0 0 0.45rem;
	color: var(--cm-ink);
}

.cm-about-pillar p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.7;
	color: var(--cm-muted);
}

.cm-about-story-body {
	padding: 1.35rem 1.4rem 1.5rem;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	background: rgba(255, 255, 255, 0.88);
}

.cm-about-story-body > :first-child {
	margin-top: 0;
}

.cm-about-story-body h2,
.cm-about-story-body h3,
.cm-about-story-body h4 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--cm-ink);
	margin: 1.35rem 0 0.5rem;
}

.cm-about-story-body ul,
.cm-about-story-body ol {
	margin: 0.4rem 0 1rem;
	padding-left: 1.2rem;
	color: var(--cm-muted);
	line-height: 1.75;
}

.cm-about-story-body li {
	margin-bottom: 0.35rem;
}

.cm-about-story-body a {
	color: var(--cm-mint-deep, #2a7a68);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cm-about-value-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
}

.cm-about-value {
	padding: 1.05rem 1.1rem;
	border-top: 2px solid var(--cm-mint, #3d9b84);
	border-right: 1px solid var(--cm-line);
	border-bottom: 1px solid var(--cm-line);
	border-left: 1px solid var(--cm-line);
	border-radius: 0 0 var(--cm-radius-sm) var(--cm-radius-sm);
	background: rgba(255, 255, 255, 0.72);
}

.cm-about-value h3 {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--cm-ink);
}

.cm-about-value p {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.7;
	color: var(--cm-muted);
}

.cm-about-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.88);
}

.cm-about-link-list li {
	display: grid;
	grid-template-columns: minmax(8rem, 11rem) 1fr;
	gap: 0.75rem 1.25rem;
	align-items: baseline;
	padding: 0.95rem 1.2rem;
	border-top: 1px solid var(--cm-line);
}

.cm-about-link-list li:first-child {
	border-top: 0;
}

.cm-about-link-list a {
	font-weight: 600;
	color: var(--cm-ink);
	text-decoration: none;
}

.cm-about-link-list a:hover {
	color: var(--cm-mint-deep, #2a7a68);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cm-about-link-list span {
	font-size: 0.88rem;
	color: var(--cm-muted);
	line-height: 1.55;
}

.cm-about-cta {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.cm-about-cta-inner {
	padding: 1.5rem 1.4rem;
	border-radius: var(--cm-radius);
	border: 1px solid var(--cm-line);
	background:
		radial-gradient(ellipse 80% 120% at 0% 0%, rgba(61, 155, 132, 0.12), transparent 55%),
		linear-gradient(135deg, #f7fbf9 0%, #eef6f3 48%, #f5f8f6 100%);
}

.cm-about-cta-brand {
	font-family: "IBM Plex Sans JP", "Noto Sans JP", sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin: 0 0 0.35rem;
	color: var(--cm-ink);
}

.cm-about-cta-text {
	margin: 0 0 1.1rem;
	max-width: 34em;
	color: var(--cm-muted);
	line-height: 1.7;
}

@media (max-width: 900px) {
	.cm-about-value-grid {
		grid-template-columns: 1fr;
	}

	.cm-about-link-list li {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
}

@media (max-width: 640px) {
	.cm-about-pillar-grid {
		grid-template-columns: 1fr;
	}

	.cm-about-hero-actions .btn {
		width: 100%;
		justify-content: center;
	}
}

/* —— Community guide —— */
.cm-community-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.65rem;
	margin-top: 0.35rem;
}

.cm-community-toc a {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--cm-muted);
	text-decoration: none;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius-sm);
	background: rgba(255, 255, 255, 0.82);
}

.cm-community-toc a:hover {
	color: var(--cm-ink);
	border-color: rgba(61, 155, 132, 0.35);
}

.cm-community-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.9);
}

.cm-community-checklist li {
	position: relative;
	padding: 0.9rem 1.15rem 0.9rem 2.55rem;
	border-top: 1px solid var(--cm-line);
	color: var(--cm-muted);
	line-height: 1.7;
	font-size: 0.92rem;
}

.cm-community-checklist li:first-child {
	border-top: 0;
}

.cm-community-checklist li::before {
	position: absolute;
	left: 1.05rem;
	top: 0.95rem;
	font-weight: 700;
	line-height: 1;
}

.cm-community-checklist-do li::before {
	content: "○";
	color: var(--cm-mint, #3d9b84);
}

.cm-community-checklist-dont li::before {
	content: "×";
	color: #c45c5c;
}

@media (max-width: 640px) {
	.cm-community-toc a {
		font-size: 0.78rem;
	}
}

/* —— Auth —— */
html.light .auth-body {
	background: #fff !important;
	color: var(--cm-ink);
	overflow: auto;
	min-height: 100vh;
	height: auto !important;
}

html.light .auth-body .card,
html.light .auth-body .container-tight {
	border-radius: var(--cm-radius) !important;
}

html.light .auth-body .card {
	border: 1px solid var(--cm-line) !important;
	box-shadow: var(--cm-shadow);
	background: rgba(255, 255, 255, 0.96) !important;
}

html.light .auth-body .form-control {
	border-radius: var(--cm-radius-sm);
	padding: 0.7rem 0.9rem;
}

html.light .auth-body .btn-primary {
	border-radius: var(--cm-radius-pill);
	padding: 0.65rem 1.2rem;
}

html.light .auth-body .btn-dark {
	background-color: var(--cm-mint) !important;
	border-color: var(--cm-mint) !important;
	border-radius: var(--cm-radius-pill);
	color: #fff !important;
}

html.light .auth-body .nav-pills .nav-link.active {
	background-color: var(--cm-mint) !important;
	border-radius: var(--cm-radius-pill);
}

html.light .auth-body .nav-pills .nav-link {
	border-radius: var(--cm-radius-pill);
	color: var(--cm-mint-dark);
}

html.light .auth-body .bg-cover {
	border-radius: 0;
	filter: saturate(0.95);
}

.cm-auth-brand {
	display: inline-flex;
	align-items: center;
	margin-bottom: 1.25rem;
}

.cm-auth-brand img {
	height: 36px;
	width: auto;
}

html.light .auth-lang-switch a {
	color: var(--cm-mint-dark);
}

/* —— Chat (light) —— */
html.light #wrapper {
	background: var(--cm-bg);
}

html.light .room-bar {
	background: #eef5f3 !important;
	border-right: 1px solid var(--cm-line) !important;
	width: 4.25rem;
}

html.light .room-bar .cn-tab {
	border-radius: 14px;
	margin: 0.25rem auto;
}

html.light .room-bar .cn-tab:hover,
html.light .room-bar .cn-tab.active {
	background: var(--cm-mint-soft) !important;
	color: var(--cm-mint-dark) !important;
}

html.light .room-bar .ti {
	color: var(--cm-mint-dark);
}

html.light .non-login-message,
html.light .non-join-message {
	background: var(--cm-mint-soft) !important;
	border-radius: 16px;
	margin: 0.75rem;
	padding: 0.85rem 1rem;
	color: var(--cm-ink);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

html.light .non-login-message img,
html.light .non-join-message img {
	width: 40px !important;
	height: 40px !important;
	flex-shrink: 0;
	border-radius: 50%;
	object-fit: contain;
}

html.light .non-login-message p,
html.light .non-join-message p {
	margin: 0;
	line-height: 1.55;
}

html.light .non-login-message a,
html.light .non-join-message a {
	color: var(--cm-mint-dark);
	font-weight: 600;
}

html.light .mini-brand img {
	width: 36px !important;
	height: 36px !important;
	max-height: 36px;
	object-fit: contain;
}

html.light #wrapper .sidebar-wrapper,
html.light .channel-list {
	background-color: #f5f9f7 !important;
	border-right: 1px solid var(--cm-line);
	color: var(--cm-ink);
}

html.light .sidebar-heading,
html.light .username-bottom {
	color: var(--cm-ink) !important;
}

html.light .channel-item,
html.light .channel-cat {
	border-radius: 10px;
	margin: 2px 6px;
}

html.light .channel-item:hover,
html.light .channel-item.active,
html.light .channel-cat:hover {
	background-color: var(--cm-mint-soft) !important;
	color: var(--cm-ink);
}

html.light #wrapper .page-content-wrapper,
html.light #wrapper .main-panel {
	background: #fafcfb;
}

html.light .main-panel {
	border-right: 1px solid var(--cm-line);
}

html.light .main-panel::before {
	opacity: 0.35;
}

html.light #wrapper .room-header,
html.light .chat-header,
html.light .room-top-bar {
	background: rgba(255, 255, 255, 0.92) !important;
	border-bottom: 1px solid var(--cm-line);
}

html.light #wrapper .rightbar-wrapper {
	background: #fafcfb !important;
	border-left: 1px solid var(--cm-line);
}

html.light #rpanel-tab {
	background: #f3f7f6 !important;
}

html.light .right-panel .nav-pills .nav-link.active {
	background-color: var(--cm-mint-soft) !important;
	color: var(--cm-mint-dark) !important;
	border-radius: 10px;
}

html.light .user-row {
	border-radius: 10px;
	margin: 2px 4px;
}

html.light .user-row:hover {
	background-color: var(--cm-mint-soft) !important;
}

html.light .cn-tab .pill.active {
	background-color: var(--cm-mint) !important;
}

html.light .unread-indicator {
	background-color: #e07a6a !important;
}

html.light .editor-container {
	background: #ffffff !important;
	border: 1px solid var(--cm-line) !important;
	border-radius: 18px !important;
	margin: 0.65rem 0.85rem 0.9rem;
	box-shadow: var(--cm-shadow-soft);
	overflow: hidden;
}

html.light .editor-icon:hover,
html.light .attachment-col.dropup:hover,
html.light .link-dark:hover,
html.light .link-dark:focus {
	color: var(--cm-mint) !important;
}

html.light .cht.sent .message-data,
html.light .cht.replies .message-data {
	box-shadow: 0 2px 10px rgba(47, 61, 59, 0.05) !important;
	border-radius: 18px !important;
	max-width: min(72vw, 26rem) !important;
	line-height: 1.55 !important;
	padding: 0.65rem 0.95rem 0.7rem !important;
	overflow: hidden;
}

html.light .cht.sent .message-data {
	border-bottom-right-radius: 6px !important;
	background: var(--cm-mint) !important;
	color: #fff !important;
}

html.light .cht.replies .message-data {
	border-bottom-left-radius: 6px !important;
	background: #f7faf9 !important;
	color: var(--cm-ink) !important;
	border: 1px solid rgba(81, 139, 133, 0.14);
}

html.light .cht {
	margin-bottom: 0.55rem;
	padding: 0 0.5rem;
	align-items: flex-start;
}

html.light .cht .avatar {
	width: 34px !important;
	height: 34px !important;
	border: 2px solid #fff;
	box-shadow: var(--cm-shadow-soft);
	margin-top: 0.15rem;
}

html.light .cht a.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

html.light .sender-name .cm-chat-profile-link {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

html.light .sender-name .cm-chat-profile-link:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

html.light .message-meta {
	bottom: -1rem !important;
}

html.light .cht.replies .message-meta {
	left: 42px !important;
}

html.light .cht.sent .message-meta {
	right: 42px !important;
}

/* Hide legacy triangle tails — clash with soft bubble shape */
html.light .sent .message-data:before,
html.light .replies .message-data:after,
html.light .cht.sent .message-data:before,
html.light .cht.replies .message-data:after {
	display: none !important;
	content: none !important;
	border: 0 !important;
}

html.light .cht .chat-txt,
html.light .cht .chat-code,
html.light .cht .chat-fwd,
html.light .cht .chat-audio,
html.light .cht .link-meta,
html.light .cht .file-section,
html.light .cht .video-section {
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0.1rem 0 0 !important;
	line-height: 1.55 !important;
	font-size: 0.95rem;
}

html.light .cht .message-data small,
html.light .cht .sender-name {
	display: block;
	font-weight: 600 !important;
	font-size: 0.78rem !important;
	letter-spacing: 0.02em;
	padding: 0 0 0.2rem !important;
	margin: 0 !important;
	background: transparent !important;
	line-height: 1.3 !important;
}

html.light .cht.replies .message-data small,
html.light .cht.replies .sender-name {
	color: var(--cm-mint-dark) !important;
}

html.light .cht.sent .message-data small,
html.light .cht.sent .sender-name {
	color: rgba(255, 255, 255, 0.88) !important;
}

html.light .message-time {
	font-size: 0.68rem;
	color: var(--cm-muted) !important;
	opacity: 0.9;
}

html.light .cht .message-data.grp .message-html > div {
	border-radius: 0 !important;
	padding-top: 0.05rem !important;
}

html.light .chat-txt.deleted {
	opacity: 0.75;
	font-style: italic;
}

html.light .chat-replied-bubble {
	border-radius: 12px !important;
	padding: 0.4rem 0.55rem !important;
	margin-bottom: 0.35rem;
	opacity: 0.92;
}

html.light .cht.sent .chat-replied-bubble {
	background: rgba(255, 255, 255, 0.16) !important;
}

html.light .cht.replies .chat-replied-bubble {
	background: rgba(81, 139, 133, 0.08) !important;
}

html.light .attachments-container {
	background: #f5f7f6;
	border-radius: var(--cm-radius-sm);
}

html.light .private-messages .private-item,
html.light .action-item {
	background: #fff;
	border: 1px solid var(--cm-line);
	border-radius: 14px;
}

html.light .dropdown-menu {
	border-radius: 14px;
	border-color: var(--cm-line);
	box-shadow: var(--cm-shadow);
}

html.light .mini-brand-seperator {
	background-color: rgba(81, 139, 133, 0.25) !important;
}

html.light .room-bar .cn-tab .pill {
	background: transparent;
}

html.light .chat-scroll {
	background: transparent;
}

html.light .message-data {
	font-size: 0.95rem;
}

html.light .sidebar-room .room-name,
html.light .room-info-name {
	color: var(--cm-ink);
	font-weight: 600;
}

/* Auth visual soft overlay */
.cm-auth-visual {
	position: relative;
}

.cm-auth-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(81, 139, 133, 0.12), rgba(255, 249, 245, 0.2));
	pointer-events: none;
}


/* —— Soft dark —— */
html.dark {
	--cm-ink: #e8eceb;
	--cm-muted: #a8b5b2;
	--sent-background: #518b85;
	--sent-color: #ffffff;
	--received-background: #3d4543;
	--received-color: #e8eceb;
	--oc-primary: #6fa39b;
	--oc-primary-rgb: 111, 163, 155;
	--default-text-color: #d5dddb;
	--dark-bg: #2a302e;
	--darker-bg: #232826;
	--input-bg: #3a4240;
}

html.dark body {
	background-color: #2f3533 !important;
	color: var(--default-text-color) !important;
}

html.dark a { color: #8fbfb6; }
html.dark a:hover { color: #a8d0c8; }
html.dark .auth-body { background-color: #2f3533 !important; }

html.dark .room-bar {
	background: #262c2a !important;
	border-right: 1px solid #3d4543 !important;
}

html.dark .sidebar-wrapper,
html.dark .channel-list {
	background-color: #262c2a !important;
}

html.dark .rightbar-wrapper,
html.dark .room-bar {
	background-color: var(--dark-bg) !important;
}

html.dark .channel-cat:hover,
html.dark .channel-item:hover,
html.dark .channel-item.active,
html.dark .user-row:hover {
	background-color: #3d4543 !important;
}

html.dark .cn-tab .pill.active,
html.dark .btn-primary {
	background-color: var(--cm-mint) !important;
	border-color: var(--cm-mint) !important;
}

html.dark .editor-container {
	background: var(--input-bg) !important;
	border-radius: 18px !important;
	margin: 0.65rem 0.85rem 0.9rem;
}

html.dark .editor-icon:hover,
html.dark .link-dark:hover {
	color: #8fbfb6 !important;
}

html.dark .cht.sent .message-data,
html.dark .cht.replies .message-data {
	border-radius: 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* —— Living room chat layout (conversation-first drawers) —— */
html.light body.incallx.cm-living #wrapper,
body.incallx.cm-living #wrapper {
	display: block;
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

body.incallx.cm-living .main-container {
	width: 100% !important;
	max-width: 100%;
	margin: 0 !important;
	height: calc(var(--vh, 1vh) * 100);
}

body.incallx.cm-living .main-panel {
	border-right: none !important;
	width: 100%;
	flex: 1 1 auto;
}

body.incallx.cm-living .cm-drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1040;
	background: rgba(40, 55, 52, 0.28);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

body.incallx.cm-living.cm-drawer-open .cm-drawer-backdrop {
	opacity: 1;
	pointer-events: auto;
}

body.incallx.cm-living .room-bar {
	position: fixed !important;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 1060;
	width: 4.25rem !important;
	transform: translateX(-120%);
	transition: transform 0.25s ease;
	display: flex !important;
	box-shadow: var(--cm-shadow);
}

body.incallx.cm-living:not(.sb-sidenav-toggled) .room-bar {
	transform: translateX(0);
}

body.incallx.cm-living.sb-sidenav-toggled .room-bar {
	display: flex !important;
	transform: translateX(-120%);
}

body.incallx.cm-living #sidebar-wrapper,
body.incallx.cm-living .sidebar-wrapper {
	position: fixed !important;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 1055;
	width: min(20.5rem, 92vw) !important;
	padding-left: 4.25rem;
	margin-left: 0 !important;
	margin-right: 0 !important;
	transform: translateX(-105%);
	transition: transform 0.25s ease;
	box-shadow: var(--cm-shadow);
	border-right: 1px solid var(--cm-line) !important;
	background: #f5f9f7 !important;
}

body.incallx.cm-living:not(.sb-sidenav-toggled) #sidebar-wrapper,
body.incallx.cm-living:not(.sb-sidenav-toggled) .sidebar-wrapper {
	transform: translateX(0);
	margin-left: 0 !important;
}

body.incallx.cm-living.sb-sidenav-toggled #sidebar-wrapper,
body.incallx.cm-living.sb-sidenav-toggled .sidebar-wrapper {
	margin-left: 0 !important;
	transform: translateX(-105%);
}

body.incallx.cm-living .channel-bar {
	width: 100% !important;
	max-width: none;
}

body.incallx.cm-living .right-panel,
body.incallx.cm-living .rightbar-wrapper {
	position: fixed !important;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 1055;
	width: min(18rem, 90vw) !important;
	min-width: 0 !important;
	max-width: min(18rem, 90vw) !important;
	margin: 0 !important;
	margin-right: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0.35rem;
	padding: 0.85rem 0.75rem 1rem !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: calc(var(--vh, 1vh) * 100) !important;
	overflow: hidden !important;
	transform: translateX(110%);
	transition: transform 0.25s ease;
	box-shadow: var(--cm-shadow);
	background: #fafcfb !important;
	border-left: 1px solid var(--cm-line);
	border-radius: 0;
}

body.incallx.cm-living.sb-rightnav-toggled .right-panel,
body.incallx.cm-living.sb-rightnav-toggled .rightbar-wrapper,
body.incallx.cm-living.sb-rightnav-toggled #wrapper .rightbar-wrapper {
	transform: translateX(0) !important;
	margin-right: 0 !important;
	display: flex !important;
}

body.incallx.cm-living .rightbar-wrapper > .mb-1 {
	flex: 0 0 auto;
	width: 100%;
}

body.incallx.cm-living .rightbar-wrapper #rpanel-tab {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 0.2rem;
	width: 100%;
	padding: 0.2rem;
	margin: 0;
	background: #eef5f3;
	border-radius: 14px;
}

body.incallx.cm-living .rightbar-wrapper #rpanel-tab .nav-item {
	flex: 1 1 0;
	min-width: 0;
}

body.incallx.cm-living .rightbar-wrapper #rpanel-tab .nav-link {
	width: 100%;
	justify-content: center;
	border-radius: 10px;
	padding: 0.45rem 0.2rem;
}

body.incallx.cm-living .rightbar-wrapper .tab-content {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

body.incallx.cm-living .rightbar-wrapper .tab-content > .tab-pane.active {
	flex: 1 1 auto;
	min-height: 0;
	display: flex !important;
	flex-direction: column;
	overflow: hidden;
}

body.incallx.cm-living .rightbar-wrapper .height-scroll-rpanelx,
body.incallx.cm-living .rightbar-wrapper .room-users-row,
body.incallx.cm-living .rightbar-wrapper .tab-pane.active > .height-scroll-rpanel {
	flex: 1 1 auto;
	min-height: 0;
	height: auto !important;
	max-height: none !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	width: 100%;
}

body.incallx.cm-living .rightbar-wrapper .room-user-search {
	border-radius: 12px;
}

body.incallx.cm-living .navbar.topbar {
	background: rgba(255, 255, 255, 0.94) !important;
	backdrop-filter: none;
	border-bottom: 1px solid var(--cm-line);
	min-height: 3.25rem;
	padding: 0.35rem 0.75rem;
}

body.incallx.cm-living .cm-room-open {
	color: var(--cm-ink) !important;
	max-width: min(52vw, 22rem);
	padding: 0.15rem 0.35rem !important;
	border-radius: 12px;
}

body.incallx.cm-living .cm-room-open:hover {
	background: var(--cm-mint-soft);
}

body.incallx.cm-living .top-room-name {
	font-size: 0.68rem;
	color: var(--cm-muted);
	line-height: 1.1;
	font-weight: 500;
}

body.incallx.cm-living .top-channel-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--cm-ink);
	line-height: 1.2;
}

body.incallx.cm-living .cm-cat-merged .cm-cat-actions-solo {
	display: flex;
	justify-content: flex-end;
	padding: 0 0.5rem 0.15rem;
	min-height: 0.25rem;
}

body.incallx.cm-living .cm-cat-merged .cm-cat-actions-solo:empty {
	display: none;
}

/* Profile sheet inside chat shell */
body.incallx.cm-living #main-profile .page-content-wrapper {
	background: #fff;
	overflow-y: auto;
	height: calc(var(--vh, 1vh) * 100);
}

body.incallx.cm-living #main-profile .profile-section {
	max-width: 52rem;
	margin: 0 auto;
	padding: 1.25rem 1rem 2.5rem !important;
}

body.incallx.cm-living #main-profile .profile-header,
body.incallx.cm-living #main-profile .card {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius) !important;
	box-shadow: var(--cm-shadow-soft);
	overflow: hidden;
}

body.incallx.cm-living #main-profile .profile-header {
	width: 100%;
}

body.incallx.cm-living #main-profile .navbar.topbar {
	display: flex !important;
}

/* Home discovery — doorway / list mix */
.cm-discovery {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.cm-discovery-label {
	margin: 0.85rem 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--cm-mint-dark);
}

.cm-discovery-label:first-child {
	margin-top: 0.15rem;
}

.cm-room-rail {
	display: flex;
	gap: 0.9rem;
	overflow-x: auto;
	padding: 0.2rem 0.1rem 0.55rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	min-width: 0;
	max-width: 100%;
}

.cm-room-rail::-webkit-scrollbar {
	display: none;
}

.cm-room-rail .room-loop-link {
	flex: 0 0 auto;
	width: min(72vw, 15.5rem);
	scroll-snap-align: start;
	text-decoration: none;
	color: inherit;
}

/* Mid+ desktop: wrap featured rooms instead of clipping in a scroll strip */
@media (min-width: 761px) {
	.cm-room-rail {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(13.25rem, 1fr));
		overflow: visible;
		scroll-snap-type: none;
		padding-bottom: 0.15rem;
		mask-image: none;
		-webkit-mask-image: none;
	}

	.cm-room-rail .room-loop-link {
		width: auto;
		min-width: 0;
	}
}

@media (max-width: 760px) {
	.cm-room-rail {
		mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.75rem), transparent 100%);
		-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.75rem), transparent 100%);
	}

	.cm-room-rail.is-end {
		mask-image: none;
		-webkit-mask-image: none;
	}
}

.cm-room-door {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 11.5rem;
	border-radius: 18px;
	border: 1px solid var(--cm-line);
	background: var(--cm-surface);
	box-shadow: none;
	overflow: hidden;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.cm-room-door:hover {
	transform: translateY(-2px);
	border-color: rgba(81, 139, 133, 0.35);
	box-shadow: var(--cm-shadow-soft);
}

.cm-room-door-visual {
	height: 7.25rem;
	background-size: cover;
	background-position: center;
	position: relative;
	background-color: var(--cm-mint-soft);
}

.cm-room-door-visual.is-fallback {
	background-image:
		radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.7), transparent 42%),
		linear-gradient(145deg, #e8f3f0 0%, #f7faf8 48%, #f3ebe6 100%);
}

.cm-room-door-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.96) 100%);
}

.cm-room-door-body {
	padding: 0.7rem 0.95rem 0.95rem;
	margin-top: -1.5rem;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
	flex: 1;
}

.cm-room-door-icon {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 12px;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: var(--cm-shadow-soft);
	background: var(--cm-mint-soft);
}

.cm-room-door-icon.fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-mint);
}

.cm-room-door-title {
	font-size: 1rem;
	font-weight: 650;
	margin: 0;
	color: var(--cm-ink);
	line-height: 1.35;
}

.cm-room-door-desc {
	font-size: 0.8rem;
	color: var(--cm-muted);
	margin: 0;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cm-room-door-meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--cm-muted);
	padding-top: 0.4rem;
	border-top: 1px solid rgba(81, 139, 133, 0.1);
}

.cm-room-door-cta {
	font-weight: 600;
	color: var(--cm-mint-dark);
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
}

.cm-room-list {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-top: 0.15rem;
}

.cm-room-list .room-loop-link {
	text-decoration: none;
	color: inherit;
}

.cm-room-row {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	border-radius: 14px;
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.72);
	overflow: hidden;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cm-room-row:hover {
	background: #fff;
	border-color: var(--cm-line);
}

.cm-room-row-main {
	display: grid;
	grid-template-columns: 3.35rem 1fr auto;
	gap: 0.85rem;
	align-items: start;
	padding: 0.85rem 1rem 0.65rem;
	text-decoration: none !important;
	color: inherit;
}

.cm-room-row-board {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 1rem 0.75rem;
	padding: 0.4rem 0.7rem;
	align-self: flex-start;
	border-radius: 999px;
	border: 1px solid rgba(81, 139, 133, 0.22);
	background: rgba(81, 139, 133, 0.06);
	color: var(--cm-mint-dark);
	font-size: 0.78rem;
	font-weight: 650;
	text-decoration: none !important;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cm-room-row-board:hover {
	background: rgba(81, 139, 133, 0.12);
	border-color: rgba(81, 139, 133, 0.4);
}

.cm-room-row-icon {
	width: 3.35rem;
	height: 3.35rem;
	border-radius: 12px;
	object-fit: cover;
	background: var(--cm-mint-soft);
}

.cm-room-row-icon.fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-mint);
	font-size: 1.25rem;
}

.cm-room-row-body {
	min-width: 0;
}

.cm-room-row-title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--cm-ink);
	line-height: 1.35;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.cm-room-row-lock {
	font-size: 0.9rem;
	color: var(--cm-muted);
}

.cm-room-row-desc {
	margin: 0.2rem 0 0;
	font-size: 0.8rem;
	color: var(--cm-muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cm-room-row-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1rem;
	margin-top: 0.4rem;
	font-size: 0.75rem;
	color: var(--cm-muted);
}

.cm-room-row-meta .ti {
	font-size: 0.85rem;
	margin-right: 0.15rem;
	vertical-align: -0.1em;
}

.cm-room-row-enter {
	align-self: center;
	white-space: nowrap;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--cm-mint-dark);
	background: transparent;
	border: 1px solid rgba(81, 139, 133, 0.28);
	border-radius: var(--cm-radius-pill);
	padding: 0.35rem 0.75rem;
}

/* Auth — single soft sheet */
html.light .auth-body .cm-auth-shell {
	min-height: calc(100vh - 2.5rem);
	justify-content: center;
}

html.light .auth-body .cm-auth-shell > .cm-auth-side {
	display: none !important;
}

html.light .auth-body .cm-auth-sheet-col {
	max-width: 28rem;
	margin: 0 auto;
	width: 100%;
}

html.light .auth-body .cm-auth-sheet {
	border-radius: calc(var(--cm-radius) + 4px) !important;
	border: 1px solid var(--cm-line) !important;
	box-shadow: var(--cm-shadow);
	background: rgba(255, 255, 255, 0.97) !important;
}

.cm-page .card {
	border: 1px solid var(--cm-line) !important;
	box-shadow: var(--cm-shadow-soft);
	background: rgba(255, 255, 255, 0.96) !important;
}

.cm-page-header {
	max-width: 40rem;
}

/* —— Responsive —— */
@media (max-width: 900px) {
	.cm-hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.cm-hero-lead {
		margin-left: auto;
		margin-right: auto;
	}

	.cm-hero-actions { justify-content: center; }

	.cm-hero-visual {
		max-width: 420px;
		margin: 0 auto;
		order: -1;
	}

	.cm-hero-bleed {
		min-height: min(78vh, 36rem);
		align-items: flex-end;
	}

	.cm-hero-bleed-media img {
		object-position: center 48%;
	}

	.cm-hero-bleed-inner {
		padding-top: calc(4.75rem + var(--cm-announce-strip-h, 0px));
		padding-bottom: 1.85rem;
	}

	.cm-hero-copy-on-media {
		max-width: none;
	}

	.cm-hero-bleed .cm-hero-brand {
		font-size: clamp(1.85rem, 8.5vw, 2.55rem);
		margin-bottom: 0.4rem;
	}

	.cm-hero-bleed .cm-hero-title {
		font-size: clamp(1rem, 3.8vw, 1.2rem);
		margin-bottom: 0.55rem;
	}

	.cm-hero-bleed .cm-hero-lead {
		font-size: 0.92rem;
		margin-bottom: 1.1rem;
		max-width: none;
	}

	.cm-hero-bleed .cm-hero-actions {
		justify-content: stretch;
		flex-direction: column;
		align-items: stretch;
		gap: 0.55rem;
	}

	.cm-hero-bleed .cm-hero-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.cm-hero-bleed-veil {
		background:
			linear-gradient(to top, rgba(24, 38, 36, 0.9) 0%, rgba(24, 38, 36, 0.52) 46%, rgba(24, 38, 36, 0.28) 100%);
	}

	.cm-trust-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.cm-filters { flex-direction: column; align-items: stretch; }
	.cm-selectgroup {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.15rem;
		mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.5rem), transparent 100%);
		-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.5rem), transparent 100%);
	}
	.cm-selectgroup::-webkit-scrollbar { display: none; }
	.cm-selectgroup .form-selectgroup-item { flex: 0 0 auto; }
	.cm-search { max-width: none; }
	.cm-rooms-head { text-align: left; max-width: none; }
}

@media (max-width: 767.98px) {
	.cm-home { padding-top: 4rem; }
	.cm-page { padding-top: 4.5rem; }

	html.light .navbar-collapse.collapse.show,
	html.light #navbarCollapse.offcanvas {
		background-color: rgba(255, 255, 255, 0.98) !important;
		border-radius: var(--cm-radius-sm);
	}

	body.incallx.cm-living #sidebar-wrapper,
	body.incallx.cm-living .sidebar-wrapper {
		width: min(100vw, 22rem) !important;
	}

	.cm-room-rail .room-loop-link {
		width: min(82vw, 260px);
	}

	.cm-room-row-main {
		grid-template-columns: 3rem 1fr;
	}

	.cm-room-row-enter {
		grid-column: 2;
		justify-self: start;
		margin-top: 0.2rem;
	}

	.cm-board-chip span {
		display: none;
	}

	.cm-board-strip {
		padding: 0.5rem 0.75rem;
	}
}

/* Visibility / empathy / notices */
.cm-compose {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0.85rem 0 0;
	width: 100%;
	min-width: 0;
}

.cm-compose input[type="text"],
.cm-compose input[type="date"],
.cm-compose input[type="time"],
.cm-compose textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--cm-line);
	border-radius: 12px;
	background: #fff;
	color: var(--cm-ink);
	font: inherit;
	line-height: 1.5;
	resize: vertical;
}

.cm-compose textarea {
	min-height: 6rem;
}

.cm-compose input:focus,
.cm-compose textarea:focus {
	outline: 0;
	border-color: rgba(61, 111, 105, 0.55);
	box-shadow: 0 0 0 3px rgba(61, 111, 105, 0.12);
}

.cm-compose .cm-cal-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.cm-compose .cm-cal-fields label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.85rem;
	font-weight: 650;
	color: var(--cm-muted);
	min-width: 0;
}

.cm-topic-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-topic-list li {
	border-bottom: 1px solid rgba(81, 139, 133, 0.08);
}

.cm-topic-list li:last-child {
	border-bottom: 0;
}

.cm-topic-list a {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.8rem 0.1rem;
	text-decoration: none !important;
	color: inherit;
	min-width: 0;
}

.cm-topic-list a.cm-topic-author {
	display: inline;
	padding: 0.65rem 0 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--cm-mint-dark);
}

.cm-topic-list a.cm-topic-author + a {
	padding-top: 0.2rem;
}

.cm-topic-list strong {
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.4;
}

.cm-topic-list small {
	color: var(--cm-muted);
	font-size: 0.78rem;
}

.cm-topic-list em {
	font-style: normal;
	color: var(--cm-ink);
	font-size: 0.9rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.cm-visibility {
	border: 0;
	margin: 0 0 0.75rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.1rem;
	align-items: center;
}

.cm-visibility legend {
	float: left;
	width: auto;
	margin: 0 0.85rem 0 0;
	padding: 0;
	font-size: 0.85rem;
	font-weight: 650;
	color: var(--cm-muted);
}

.cm-visibility label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.88rem;
	color: var(--cm-ink);
	cursor: pointer;
}

.cm-post-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.85rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(81, 139, 133, 0.12);
}

.cm-empathy-form .btn.is-active {
	background: rgba(81, 139, 133, 0.16);
	border-color: rgba(81, 139, 133, 0.35);
	color: var(--cm-mint);
	font-weight: 700;
}

.cm-empathy-count {
	font-size: 0.85rem;
	color: var(--cm-muted);
}

.cm-notice-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.cm-notice-list li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.85rem 0.95rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(81, 139, 133, 0.12);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cm-notice-list li.is-unread {
	background: rgba(81, 139, 133, 0.08);
	border-color: rgba(81, 139, 133, 0.22);
}

.cm-notice-list li:hover {
	border-color: rgba(81, 139, 133, 0.28);
	background: rgba(81, 139, 133, 0.1);
}

.cm-notice-avatar {
	flex-shrink: 0;
	display: block;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	overflow: hidden;
	text-decoration: none !important;
}

.cm-notice-list img {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.cm-notice-body {
	flex: 1;
	min-width: 0;
	text-decoration: none !important;
	color: inherit;
}

.cm-notice-list span {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.cm-notice-list strong {
	font-size: 0.92rem;
}

.cm-notice-list em {
	font-style: normal;
	font-size: 0.88rem;
	color: var(--cm-ink);
}

.cm-notice-list small {
	font-size: 0.78rem;
	color: var(--cm-muted);
}

.cm-rail-request-note {
	margin: 0 0 0.55rem;
	font-size: 0.86rem;
}

.cm-rail-request-note a {
	color: var(--cm-mint-dark);
	font-weight: 600;
	text-decoration: none !important;
}

.cm-rail-request-note em {
	font-style: normal;
	display: inline-flex;
	min-width: 1.2rem;
	padding: 0 0.35rem;
	margin-left: 0.25rem;
	border-radius: 999px;
	background: var(--cm-coral);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.35;
	justify-content: center;
}

.cm-mutual-friends .cm-thumb-grid {
	margin-top: 0.35rem;
}

/* mixi-like profile / social desk */
.cm-profile-desk .cm-home-desk,
.cm-social-desk .cm-home-desk {
	padding-top: 5.25rem;
}

.cm-profile-page-title {
	margin: 0.15rem 0 0.35rem;
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
	font-weight: 760;
	line-height: 1.3;
	color: var(--cm-ink);
}

.cm-profile-owner {
	overflow: hidden;
	padding: 0 !important;
}

.cm-profile-mini-cover {
	height: 4.5rem;
	background-size: cover;
	background-position: center;
	background-color: var(--cm-mint-soft);
}

.cm-profile-owner-body {
	padding: 0 0.85rem 0.9rem;
	margin-top: -1.55rem;
}

.cm-profile-owner-avatar {
	width: 4.4rem;
	height: 4.4rem;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	background: #fff;
	box-shadow: 0 4px 12px rgba(47, 61, 59, 0.08);
	display: block;
}

.cm-profile-owner-names {
	margin: 0.55rem 0 0.25rem;
}

.cm-profile-owner-names strong {
	display: block;
	font-size: 0.98rem;
	font-weight: 750;
	line-height: 1.25;
}

.cm-profile-owner-names small {
	color: var(--cm-muted);
	font-size: 0.78rem;
}

.cm-profile-statline {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	color: var(--cm-muted);
}

.cm-profile-owner .cm-profile-actions {
	margin-bottom: 0.7rem;
	flex-direction: column;
	align-items: stretch;
}

.cm-profile-owner-settings {
	gap: 0.45rem;
}

.cm-profile-owner-settings .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
}

.cm-profile-owner-settings .btn .ti {
	font-size: 1rem;
}

.cm-profile-edit-link {
	margin-bottom: 0.7rem;
	width: 100%;
	text-align: center;
}

.cm-profile-settings-card .cm-side-note {
	margin-bottom: 0.85rem;
}

.cm-profile-settings-links {
	display: grid;
	gap: 0.55rem;
}

.cm-profile-settings-link {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.85rem 0.95rem;
	border-radius: var(--cm-radius);
	border: 1px solid var(--cm-line);
	background: #fff;
	text-decoration: none !important;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.cm-profile-settings-link:hover {
	border-color: rgba(61, 111, 105, 0.35);
	background: #f4f8f7;
}

.cm-profile-settings-link > .ti {
	font-size: 1.25rem;
	color: var(--cm-mint-dark);
	margin-top: 0.1rem;
}

.cm-profile-settings-link span {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.cm-profile-settings-link strong {
	font-size: 0.95rem;
}

.cm-profile-settings-link small {
	color: var(--cm-muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

.cm-rail-settings-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
	margin: 0.65rem 0 0.35rem;
}

.cm-rail-settings-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	padding: 0.4rem 0.45rem;
	border-radius: var(--cm-radius-sm);
	border: 1px solid var(--cm-line);
	background: #fff;
	color: var(--cm-ink);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none !important;
}

.cm-rail-settings-links a:hover {
	border-color: rgba(61, 111, 105, 0.35);
	color: var(--cm-mint-dark);
}

.cm-rail-settings-links .ti {
	font-size: 0.95rem;
}

.cm-profile-shortcuts {
	margin-top: 0.15rem;
}

.cm-home-block-head h2 small {
	font-weight: 600;
	color: var(--cm-muted);
	font-size: 0.78rem;
}

.cm-profile-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.cm-profile-table th,
.cm-profile-table td {
	padding: 0.55rem 0.35rem;
	border-bottom: 1px solid rgba(81, 139, 133, 0.1);
	vertical-align: top;
	text-align: left;
}

.cm-profile-table th {
	width: 7.5rem;
	color: var(--cm-muted);
	font-weight: 650;
	white-space: nowrap;
}

.cm-profile-table td small {
	color: var(--cm-muted);
}

.cm-profile-about {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.7;
	white-space: pre-wrap;
}

.cm-profile-about.is-empty {
	color: var(--cm-muted);
}

.cm-social-desk .cm-breadcrumb {
	margin-bottom: 0.35rem;
}

.cm-home-updates .cm-welcome-actions,
.cm-home-main .cm-welcome-actions {
	margin-top: 0.75rem;
}

.cm-home-updates .btn + .btn {
	margin-left: 0.35rem;
}

/* Albums & calendar */
.cm-album-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 0.75rem;
}

.cm-album-grid a {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	text-decoration: none !important;
	color: inherit;
}

.cm-album-grid img,
.cm-album-cover-fallback {
	aspect-ratio: 1;
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
	background: rgba(81, 139, 133, 0.1);
}

.cm-album-cover-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-mint);
	font-size: 1.6rem;
}

.cm-album-grid strong {
	font-size: 0.86rem;
	display: block;
}

.cm-album-grid small {
	font-size: 0.72rem;
	color: var(--cm-muted);
}

.cm-album-grid-compact {
	grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
}

.cm-photo-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
	gap: 0.65rem;
}

.cm-photo-grid figure {
	margin: 0;
}

.cm-photo-grid img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.cm-photo-grid figcaption {
	margin-top: 0.3rem;
	font-size: 0.75rem;
	color: var(--cm-muted);
	line-height: 1.35;
}

.cm-album-upload .cm-file-label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.86rem;
	font-weight: 650;
	color: var(--cm-muted);
}

.cm-cal-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	margin: 0.35rem 0 0.85rem;
}

.cm-cal-nav strong {
	min-width: 7rem;
	text-align: center;
	font-size: 1.05rem;
}

.cm-cal-grid {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0.25rem;
	table-layout: fixed;
}

.cm-cal-grid th {
	font-size: 0.72rem;
	font-weight: 650;
	color: var(--cm-muted);
	text-align: center;
	padding: 0.25rem;
}

.cm-cal-grid td {
	vertical-align: top;
	min-height: 4.2rem;
	height: 4.5rem;
	padding: 0.3rem;
	border-radius: 10px;
	background: rgba(81, 139, 133, 0.05);
	border: 1px solid transparent;
}

.cm-cal-grid td.is-empty {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

.cm-cal-grid td.is-today {
	border-color: rgba(61, 111, 105, 0.45);
	background: rgba(61, 111, 105, 0.12);
}

.cm-cal-grid td.has-events {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(81, 139, 133, 0.16);
}

.cm-cal-day {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	margin-bottom: 0.2rem;
}

.cm-cal-dots {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
}

.cm-cal-dots li {
	font-size: 0.62rem;
	line-height: 1.2;
	color: var(--cm-mint-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cm-cal-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-bottom: 0.65rem;
}

.cm-cal-fields label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.82rem;
	font-weight: 650;
	color: var(--cm-muted);
}

.cm-cal-fields input {
	min-width: 9rem;
	padding: 0.4rem 0.55rem;
	border-radius: 10px;
	border: 1px solid rgba(81, 139, 133, 0.2);
}

.cm-event-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.cm-event-list li {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid rgba(81, 139, 133, 0.1);
}

.cm-event-list strong {
	font-size: 0.78rem;
	color: var(--cm-mint-dark);
}

.cm-event-list span {
	font-size: 0.9rem;
	font-weight: 650;
}

.cm-event-list em {
	font-style: normal;
	font-size: 0.78rem;
	color: var(--cm-muted);
}

@media (max-width: 767.98px) {
	.cm-cal-grid td {
		height: 3.4rem;
		min-height: 3.2rem;
		padding: 0.2rem;
	}

	.cm-cal-dots li {
		font-size: 0;
		width: 0.4rem;
		height: 0.4rem;
		border-radius: 50%;
		background: var(--cm-mint);
		overflow: hidden;
	}
}

.cm-reco-rooms {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.cm-reco-rooms li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.35rem;
	align-items: stretch;
}

.cm-reco-room {
	display: grid;
	grid-template-columns: 2.6rem 1fr;
	gap: 0.55rem;
	align-items: flex-start;
	min-width: 0;
	padding: 0.45rem 0.35rem;
	border-radius: 12px;
	text-decoration: none !important;
	color: inherit;
	transition: background 0.2s ease;
}

.cm-reco-room:hover {
	background: rgba(81, 139, 133, 0.08);
}

.cm-reco-room-icon {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 10px;
	object-fit: cover;
	background: var(--cm-mint-soft);
	flex-shrink: 0;
}

.cm-reco-room-icon.fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-mint);
	font-size: 1.2rem;
}

.cm-reco-room-body {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
}

.cm-reco-room-body strong {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.25;
}

.cm-reco-room-body strong i {
	font-size: 0.85rem;
	color: var(--cm-muted);
}

.cm-reco-room-body em {
	font-style: normal;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--cm-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cm-reco-room-body small {
	font-size: 0.72rem;
	color: var(--cm-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.25rem;
}

.cm-reco-room-body small i {
	font-size: 0.8rem;
}

.cm-reco-room-board {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 2rem;
	height: 2rem;
	border-radius: 8px;
	color: var(--cm-mint-dark);
	background: rgba(81, 139, 133, 0.1);
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.cm-reco-room-board:hover {
	background: rgba(81, 139, 133, 0.18);
}

/* ひとこと操作メニュー */
.cm-post-head {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
}

.cm-post-head > a {
	flex: 1;
	min-width: 0;
	margin-bottom: 0.85rem;
}

.cm-diary-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-diary-list-item,
.cm-side-diary-item {
	display: grid;
	grid-template-columns: 2.4rem 1fr auto;
	gap: 0.7rem;
	align-items: start;
	position: relative;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(81, 139, 133, 0.08);
}

.cm-diary-list-item > a.cm-diary-avatar {
	display: block;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	overflow: hidden;
	text-decoration: none !important;
}

.cm-diary-list-item > a.cm-diary-avatar img,
.cm-diary-list-item > a img {
	width: 2.4rem;
	height: 2.4rem;
	max-width: 2.4rem;
	max-height: 2.4rem;
	border-radius: 50%;
	object-fit: cover;
	background: var(--cm-mint-soft);
	border: 1px solid var(--cm-line);
	display: block;
}

.cm-diary-list-item > a.cm-diary-body {
	display: block;
	text-decoration: none !important;
	color: inherit;
	min-width: 0;
}

.cm-diary-list-item > a.cm-diary-body span,
.cm-diary-list-item > a span {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	min-width: 0;
}

.cm-diary-list-item > a strong {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
}

.cm-diary-list-item > a small {
	color: var(--cm-muted);
	font-size: 0.78rem;
	line-height: 1.35;
}

.cm-diary-list-item > a em {
	font-style: normal;
	color: var(--cm-ink);
	font-size: 0.9rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.cm-diary-thumbs,
.cm-feed-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.35rem;
	margin-top: 0.45rem;
}

.cm-diary-thumbs img,
.cm-feed-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--cm-line);
	background: var(--cm-mint-soft);
}

.cm-diary-photos {
	display: grid;
	gap: 0.5rem;
	margin-top: 0.85rem;
}

.cm-diary-photos-1 {
	grid-template-columns: minmax(0, 1fr);
}

.cm-diary-photos-2,
.cm-diary-photos-4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cm-diary-photos-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cm-diary-photo {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid var(--cm-line);
	background: var(--cm-mint-soft);
}

.cm-diary-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1.2;
	object-fit: cover;
}

.cm-diary-photos-1 .cm-diary-photo img {
	aspect-ratio: 16 / 10;
	max-height: 420px;
}

.cm-compose-photos {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.cm-compose-photos-label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	width: fit-content;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius-sm);
	background: #fff;
	color: var(--cm-mint-dark);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.cm-compose-photos-label:hover {
	border-color: var(--cm-line-strong);
}

.cm-compose-photos input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.cm-compose-photos-hint {
	margin: 0;
	font-size: 0.78rem;
	color: var(--cm-muted);
}

.cm-compose-photos-preview {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.4rem;
}

.cm-compose-photos-preview img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--cm-line);
}

.cm-side-diary-item > a {
	display: block;
	padding: 0.45rem 0.2rem;
	text-decoration: none !important;
	color: inherit;
	min-width: 0;
}

.cm-feed-card,
.cm-feed-entry {
	position: relative;
}

.cm-feed-card > .cm-mod-menu,
.cm-feed-entry > .cm-mod-menu {
	position: absolute;
	top: 0.55rem;
	right: 0.45rem;
	z-index: 3;
}

.cm-mod-menu {
	position: relative;
	flex-shrink: 0;
	z-index: 40;
}

.cm-mod-menu-toggle {
	list-style: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--cm-muted);
	cursor: pointer;
	padding: 0;
}

.cm-mod-menu-toggle::-webkit-details-marker {
	display: none;
}

.cm-mod-menu-toggle:hover,
.cm-mod-menu[open] > .cm-mod-menu-toggle {
	background: rgba(36, 51, 47, 0.06);
	color: var(--cm-ink);
}

.cm-mod-menu-panel {
	position: absolute;
	top: calc(100% + 0.2rem);
	right: 0;
	min-width: 11rem;
	padding: 0.35rem;
	border-radius: 12px;
	border: 1px solid var(--cm-line);
	background: #fff;
	box-shadow: 0 10px 28px rgba(36, 51, 47, 0.12);
	z-index: 50;
}

.cm-mod-form {
	margin: 0;
}

.cm-mod-item {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--cm-ink);
	font-size: 0.875rem;
	text-align: left;
	padding: 0.5rem 0.6rem;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none !important;
}

.cm-mod-item:hover {
	background: rgba(46, 139, 109, 0.08);
}

.cm-mod-item.cm-mod-danger {
	color: #b42318;
}

.cm-mod-item.cm-mod-danger:hover {
	background: rgba(180, 35, 24, 0.08);
}

.cm-mod-item i {
	font-size: 1rem;
	opacity: 0.85;
}

/* honeypot: keep bots busy, hide from humans */
.cm-hp{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;}

/* —— Site announcements (strip / banner) —— */
:root {
	--cm-announce-strip-h: 0px;
}

body.has-announce-strip {
	/* JS が実測で上書き。未測定時のフォールバック */
	--cm-announce-strip-h: 2.85rem;
}

.cm-announce-strip {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	width: 100%;
	z-index: 1040;
	background: #2f5651;
	color: #f7faf9;
	font-size: 0.9rem;
	line-height: 1.4;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}

.cm-announce-strip.cm-announce-level-warning {
	background: #8a5a2b;
}

.cm-announce-strip.cm-announce-level-urgent {
	background: #8f3d3d;
}

.cm-announce-strip.is-dismissed,
.cm-announce-banner.is-dismissed {
	display: none !important;
}

.cm-announce-strip-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.55rem 2.75rem 0.55rem 1rem;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.45rem 0.75rem;
	position: relative;
	min-height: 2.75rem;
	box-sizing: border-box;
}

.cm-announce-strip-title {
	font-weight: 700;
	flex: 0 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 14rem;
}

.cm-announce-strip-body {
	opacity: 0.92;
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cm-announce-strip-link {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
	flex: 0 0 auto;
	white-space: nowrap;
}

.cm-announce-strip .cm-announce-dismiss {
	position: absolute;
	right: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.35rem;
	line-height: 1;
	padding: 0.2rem 0.45rem;
	cursor: pointer;
	opacity: 0.85;
	z-index: 1;
}

.cm-announce-strip .cm-announce-dismiss:hover {
	opacity: 1;
}

/* fixed navbar + content offset when strip is present */
body.front-site.has-announce-strip .navbar.fixed-top,
body.front-site.has-announce-strip .navbar-scroll {
	top: var(--cm-announce-strip-h);
}

/* desk pages: strip offset only on .cm-home-desk */
@media (min-width: 761px) {
	body.front-site.has-announce-strip .cm-home-desk {
		padding-top: calc(5.25rem + var(--cm-announce-strip-h));
	}
}

/* non-desk pages / guest landing */
body.front-site.has-announce-strip .cm-page,
body.front-site.has-announce-strip .cm-home:not(.cm-myhome):not(.cm-guest-landing):not(.cm-profile-desk):not(.cm-social-desk) {
	padding-top: calc(4.5rem + var(--cm-announce-strip-h));
}

body.incallx.has-announce-strip #wrapper,
body.incallx.has-announce-strip > .page,
body.cm-living.has-announce-strip #wrapper {
	padding-top: var(--cm-announce-strip-h);
}


.cm-announce-banner {
	margin: 0 0 1.25rem;
	padding: 1.15rem 1.25rem;
	border-radius: var(--cm-radius);
	background: linear-gradient(135deg, #e8efed 0%, #f7f4ef 100%);
	border: 1px solid var(--cm-line);
	color: var(--cm-ink);
}

.cm-announce-banner.cm-announce-level-warning {
	background: linear-gradient(135deg, #f3e6e0 0%, #faf4ec 100%);
	border-color: rgba(196, 122, 98, 0.35);
}

.cm-announce-banner.cm-announce-level-urgent {
	background: linear-gradient(135deg, #f6e5e5 0%, #faf1ef 100%);
	border-color: rgba(143, 61, 61, 0.3);
}

.cm-announce-banner-kicker {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cm-mint-dark);
}

.cm-announce-banner-title {
	margin: 0 0 0.4rem;
	font-size: 1.2rem;
	font-weight: 700;
}

.cm-announce-banner-body {
	margin: 0 0 0.85rem;
	color: var(--cm-muted);
	line-height: 1.65;
	white-space: pre-line;
}

.cm-announce-banner-compact .cm-announce-banner-body {
	white-space: normal;
	margin-bottom: 0.7rem;
}

.cm-announce-banner-compact {
	padding: 0.95rem 1.1rem;
}

.cm-announce-banner-compact .cm-announce-banner-title {
	font-size: 1.05rem;
	margin-bottom: 0.25rem;
}

.cm-site-notice-cta {
	display: inline-flex;
	margin-top: 0.45rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--cm-mint-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cm-announce-banner-link-soft {
	background: #fff !important;
	color: var(--cm-mint-dark) !important;
	border: 1px solid rgba(81, 139, 133, 0.35);
}

.cm-announce-banner-link-soft:hover {
	background: var(--cm-mint-soft) !important;
	color: var(--cm-ink) !important;
}

.cm-guest-announce {
	padding: 0 0 0.5rem;
}

.cm-guest-announce .cm-announce-banner {
	margin-bottom: 0;
}

.cm-announce-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

.cm-announce-banner-link {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.9rem;
	border-radius: var(--cm-radius-sm);
	background: var(--cm-mint);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none !important;
}

.cm-announce-banner-link:hover {
	background: var(--cm-mint-dark);
}

.cm-announce-banner .cm-announce-dismiss {
	border: 1px solid var(--cm-line);
	background: #fff;
	color: var(--cm-muted);
	border-radius: var(--cm-radius-sm);
	padding: 0.35rem 0.75rem;
	font-size: 0.85rem;
	cursor: pointer;
}

.cm-announce-banner .cm-announce-dismiss:hover {
	color: var(--cm-ink);
	border-color: var(--cm-line-strong);
}

/* Notices: site announcements block */
.cm-site-notice-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.cm-site-notice-list li {
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	padding: 0.9rem 1rem;
	margin-bottom: 0.65rem;
	background: #fff;
}

.cm-site-notice-list li.is-unread {
	border-color: rgba(61, 111, 105, 0.35);
	background: #f4f8f7;
}

.cm-site-notice-list strong {
	display: block;
	margin-bottom: 0.25rem;
}

.cm-site-notice-list em {
	display: block;
	font-style: normal;
	color: var(--cm-muted);
	font-size: 0.9rem;
	line-height: 1.55;
	white-space: pre-line;
}

.cm-site-notice-list small {
	display: block;
	margin-top: 0.35rem;
	color: var(--cm-muted);
	font-size: 0.78rem;
}

.cm-site-notice-badge {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--cm-mint-dark);
}

@media (max-width: 767.98px) {
	body.has-announce-strip {
		--cm-announce-strip-h: 2.6rem;
	}

	.cm-announce-strip-inner {
		padding: 0.45rem 2.4rem 0.45rem 0.75rem;
		font-size: 0.8rem;
		gap: 0.35rem 0.5rem;
		min-height: 2.5rem;
	}

	.cm-announce-strip-title {
		max-width: 38%;
	}

	.cm-announce-strip-body {
		display: none; /* 狭い画面ではタイトル＋CTAのみ */
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.cm-announce-strip-title {
		max-width: 11rem;
	}
}

/* —— Active discovery: people search + action strip —— */
.cm-action-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.45rem;
	margin: 0 0 1rem;
}

.cm-action-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	min-height: 4.1rem;
	min-width: 0;
	padding: 0.55rem 0.35rem;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius-sm);
	background: rgba(255, 255, 255, 0.72);
	color: var(--cm-ink);
	text-decoration: none !important;
	font-size: 0.72rem;
	font-weight: 650;
	line-height: 1.25;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cm-action-chip span {
	display: block;
	max-width: 100%;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.cm-action-chip i {
	font-size: 1.2rem;
	color: var(--cm-mint-dark);
}

.cm-action-chip:hover {
	border-color: var(--cm-mint);
	background: var(--cm-mint-soft);
	color: var(--cm-mint-dark);
}

.cm-people-search {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
	margin: 0.35rem 0 0.15rem;
}

.cm-people-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid var(--cm-line-strong);
	border-radius: var(--cm-radius-sm);
	padding: 0.55rem 0.75rem;
	background: #fff;
	color: var(--cm-ink);
	font-size: 0.92rem;
}

.cm-people-search input[type="search"]:focus {
	outline: 2px solid rgba(81, 139, 133, 0.35);
	outline-offset: 1px;
	border-color: var(--cm-mint);
}

.cm-people-search .btn {
	flex: 0 0 auto;
	white-space: nowrap;
}

.cm-people-search-list em {
	display: block;
	font-style: normal;
	font-size: 0.8rem;
	color: var(--cm-muted);
	margin-top: 0.15rem;
	line-height: 1.4;
}

.cm-header-people-search {
	display: flex;
	align-items: center;
	gap: 0;
	min-width: 11rem;
	max-width: 15rem;
	margin: 0.35rem 0.5rem 0.35rem 0;
	border: 1px solid rgba(81, 139, 133, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	overflow: hidden;
}

.cm-header-people-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.35rem 0.75rem;
	font-size: 0.82rem;
	color: var(--cm-ink);
}

.cm-header-people-search input[type="search"]:focus {
	outline: none;
}

.cm-header-people-search button {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: var(--cm-mint-dark);
	padding: 0.35rem 0.65rem;
	line-height: 1;
}

.cm-header-people-search button:hover {
	color: var(--cm-mint);
}

.cm-nav-people-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	border: 1px solid rgba(81, 139, 133, 0.35);
	color: var(--cm-mint-dark);
	background: rgba(255, 255, 255, 0.9);
	text-decoration: none !important;
}

.cm-nav-people-btn:hover {
	background: var(--cm-mint-soft);
	color: var(--cm-mint-dark);
}

@media (max-width: 1199.98px) {
	.cm-nav-people-search-item {
		width: 100%;
		margin-bottom: 0.65rem;
	}
	.cm-header-people-search {
		max-width: none;
		min-width: 0;
		width: 100%;
		margin: 0;
		border-radius: var(--cm-radius-sm);
	}
}

@media (max-width: 575.98px) {
	.cm-people-search {
		flex-direction: column;
	}
	.cm-people-search .btn {
		width: 100%;
	}
}

/* —— Games catalog —— */
.cm-games-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

@media (min-width: 768px) {
	.cm-games-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

.cm-game-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: var(--cm-radius-sm, 10px);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cm-game-card:hover,
.cm-game-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	color: inherit;
}

.cm-game-thumb {
	position: relative;
	display: block;
	aspect-ratio: 1.15 / 1;
	background: linear-gradient(145deg, #dfece6, #f4f7f2);
	overflow: hidden;
}

.cm-game-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cm-game-pr,
.cm-game-pr-inline {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	background: #f0c75e;
	color: #3a2f0a;
	line-height: 1.2;
}

.cm-game-pr {
	position: absolute;
	top: 0.45rem;
	left: 0.45rem;
}

.cm-game-pr-inline {
	margin-left: 0.4rem;
	vertical-align: middle;
}

.cm-game-meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.7rem 0.75rem 0.85rem;
}

.cm-game-meta strong {
	font-size: 0.95rem;
	line-height: 1.3;
}

.cm-game-meta small {
	color: #66706a;
	font-size: 0.75rem;
}

.cm-game-frame-wrap {
	position: relative;
	width: 100%;
	border-radius: var(--cm-radius-sm, 10px);
	overflow: hidden;
	background: #1b2420;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.cm-game-frame {
	display: block;
	width: 100%;
	height: min(70vh, 560px);
	min-height: 320px;
	border: 0;
	background: #111;
}

.cm-game-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.4rem;
	width: 100%;
	max-width: 28rem;
	font-weight: 600;
}

.cm-game-external-panel {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
}

.cm-game-rank-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.cm-game-rank-list li a {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: inherit;
	padding: 0.35rem 0;
}

.cm-game-rank-list img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.cm-game-rank-list span {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.cm-game-rank-list small {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--cm-mint-dark, #2f6b57);
}

.cm-game-score-hint {
	margin-top: 0.75rem;
}

@media (max-width: 575.98px) {
	.cm-game-frame {
		height: min(75vh, 520px);
		min-height: 280px;
	}
}

/* —— Mobile desk overrides (must stay after component rules) —— */
@media (max-width: 760px) {
	.cm-area-profile {
		position: static !important;
		overflow: visible;
	}

	.cm-rail-settings-links {
		display: none !important;
	}

	.cm-action-strip {
		display: none !important;
	}

	.cm-feed-lead {
		display: none !important;
	}

	.cm-rail-shortcuts {
		display: flex !important;
		flex-wrap: nowrap !important;
		grid-template-columns: none !important;
		gap: 0.4rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		margin: 0.35rem -0.35rem 0;
		padding: 0.1rem 0.7rem 0.4rem 0.35rem;
	}

	.cm-rail-shortcuts a {
		flex: 0 0 auto !important;
		width: 4.25rem;
		min-width: 4.25rem;
		min-height: 3.25rem;
		padding: 0.3rem 0.15rem;
		font-size: 0.6rem;
	}

	.cm-announce-banner {
		padding: 0.7rem 0.8rem;
		margin-bottom: 0.7rem;
	}

	.cm-people-search {
		flex-direction: column;
	}

	.cm-people-search .btn {
		width: 100%;
	}
}



/* —— Usage guide —— */
.cm-guide-hero {
	max-width: 40rem;
}

.cm-guide-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--cm-mint);
	margin: 0 0 0.4rem;
}

.cm-guide-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.75rem;
	margin: 0 0 2rem;
	padding: 0.85rem 1rem;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
}

.cm-guide-toc a {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--cm-ink);
	text-decoration: none;
}

.cm-guide-toc a:hover {
	color: var(--cm-mint-dark);
}

.cm-guide-section {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
	gap: 1.5rem 1.75rem;
	align-items: start;
	margin: 0 0 2.25rem;
	padding: 1.25rem 0 1.75rem;
	border-top: 1px solid var(--cm-line);
}

.cm-guide-section-alt .cm-guide-copy {
	order: 2;
}

.cm-guide-section-alt .cm-guide-shot {
	order: 1;
}

.cm-guide-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-bottom: 0.55rem;
	border-radius: 999px;
	background: var(--cm-mint-soft);
	color: var(--cm-mint-dark);
	font-size: 0.85rem;
	font-weight: 700;
}

.cm-guide-copy h2 {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 700;
	color: var(--cm-ink);
	margin: 0 0 0.55rem;
}

.cm-guide-copy p {
	color: var(--cm-muted);
	margin: 0 0 0.85rem;
	line-height: 1.75;
}

.cm-guide-steps {
	margin: 0 0 1rem;
	padding-left: 1.15rem;
	color: var(--cm-ink);
}

.cm-guide-steps li {
	margin-bottom: 0.4rem;
	line-height: 1.65;
}

.cm-guide-shot {
	margin: 0;
}

.cm-guide-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--cm-radius);
	border: 1px solid var(--cm-line);
	box-shadow: var(--cm-shadow-soft);
	background: #fff;
}

.cm-guide-shot figcaption {
	margin-top: 0.55rem;
	font-size: 0.82rem;
	color: var(--cm-muted);
	line-height: 1.55;
}

.cm-guide-footer-cta {
	margin: 0.5rem 0 1rem;
	padding: 1.5rem 1.25rem;
	border-radius: var(--cm-radius);
	background: linear-gradient(135deg, var(--cm-bg-mint), var(--cm-bg-warm));
	border: 1px solid var(--cm-line);
	text-align: center;
}

.cm-guide-footer-cta h2 {
	font-size: 1.2rem;
	margin: 0 0 0.4rem;
}

.cm-guide-footer-cta p {
	color: var(--cm-muted);
	margin: 0 0 1rem;
}

.cm-guide-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: center;
}

@media (max-width: 900px) {
	.cm-guide-section,
	.cm-guide-section-alt {
		grid-template-columns: 1fr;
	}

	.cm-guide-section-alt .cm-guide-copy,
	.cm-guide-section-alt .cm-guide-shot {
		order: initial;
	}
}

/* —— Mobile polish: prevent grid blowout + header clutter —— */
@media (max-width: 760px) {
	html.light body.front-site,
	html.light body.front-site .cm-home,
	html.light body.front-site .cm-home-desk,
	html.light body.front-site .cm-page {
		overflow-x: clip;
	}

	html.light body.front-site .logo {
		min-width: 0 !important;
		height: 28px !important;
		max-height: 28px !important;
		max-width: 7.25rem !important;
	}

	html.light body.front-site .navbar-brand {
		margin-right: 0.25rem;
		max-width: 42%;
	}

	html.light body.front-site .navbar-scroll > .container {
		gap: 0.2rem;
		padding-left: 0.65rem;
		padding-right: 0.65rem;
	}

	html.light body.front-site .auth-dd-mobile {
		display: inline-flex;
		align-items: center;
		gap: 0.2rem;
		margin-left: auto;
	}

	html.light body.front-site .cm-auth-toggle {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		gap: 0;
		width: 2.15rem !important;
		height: 2.15rem !important;
		min-width: 2.15rem;
		padding: 0 !important;
		border-radius: 50% !important;
		overflow: hidden;
	}

	html.light body.front-site .cm-auth-toggle::after {
		display: none !important;
	}

	html.light body.front-site .cm-auth-toggle-avatar {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	html.light body.front-site .cm-auth-toggle-name {
		display: none;
	}

	html.light body.front-site .cm-nav-people-btn {
		width: 2.15rem;
		height: 2.15rem;
	}

	html.light body.front-site .lang-dd-mobile .btn {
		padding: 0.2rem 0.35rem;
	}

	.cm-home-trio {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.cm-home-trio > *,
	.cm-area-profile,
	.cm-area-feed,
	.cm-area-friends,
	.cm-area-rooms,
	.cm-area-updates,
	.cm-home-main,
	.cm-home-block,
	.cm-feed-panel {
		min-width: 0 !important;
		max-width: 100% !important;
		width: 100%;
		box-sizing: border-box;
	}

	.cm-feed-compose {
		flex-direction: column;
		align-items: stretch;
		gap: 0.55rem;
		max-width: 100%;
	}

	.cm-feed-compose-prompt {
		min-width: 0;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.cm-feed-compose-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		white-space: nowrap;
	}

	.cm-feed-filters {
		display: flex;
		flex-wrap: nowrap;
		gap: 0.35rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		padding-bottom: 0.15rem;
		margin-right: -0.25rem;
	}

	.cm-feed-filter {
		flex: 0 0 auto;
	}

	.cm-feed-item,
	.cm-feed-item * {
		max-width: 100%;
	}

	.cm-feed-item p,
	.cm-feed-item .cm-feed-body,
	.cm-feed-text {
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.cm-rail-shortcuts {
		max-width: 100%;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0.1rem !important;
		padding-right: 0.1rem !important;
	}

	.cm-guide-toc {
		gap: 0.35rem 0.55rem;
		padding: 0.7rem 0.75rem;
	}

	.cm-guide-toc a {
		font-size: 0.8rem;
	}

	.cm-guide-section,
	.cm-guide-section-alt {
		gap: 0.85rem;
		padding: 1rem 0 1.25rem;
	}

	.cm-guide-shot img {
		border-radius: var(--cm-radius-sm);
	}

	.cm-guide-footer-links .btn {
		width: 100%;
	}

	.cm-page .container {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.cm-people-search input[type="search"] {
		min-width: 0;
		width: 100%;
	}
}

/* Shortcut scroll affordance + denser mobile chips */
@media (max-width: 760px) {
	.cm-area-profile {
		position: relative;
	}

	.cm-rail-shortcuts {
		mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.4rem), transparent 100%);
		-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.4rem), transparent 100%);
	}

	.cm-rail-shortcuts.is-end {
		mask-image: none;
		-webkit-mask-image: none;
	}

	.cm-rail-shortcuts a {
		width: 3.85rem !important;
		min-width: 3.85rem !important;
		min-height: 3.1rem;
		font-size: 0.58rem !important;
		padding: 0.28rem 0.1rem !important;
	}

	.cm-rail-shortcuts i {
		font-size: 1rem !important;
	}

	.cm-feed-tabs {
		display: flex;
		gap: 0.15rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.cm-feed-tabs::-webkit-scrollbar {
		display: none;
	}

	.cm-feed-tab {
		flex: 0 1 auto;
		white-space: nowrap;
	}
}

@media (max-width: 420px) {
	html.light body.front-site .lang-dd-mobile {
		display: none !important;
	}
}

@media (max-width: 760px) {
	.cm-empty-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cm-empty-actions .cm-rail-mini-link,
	.cm-empty-actions .btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	/* On social pages, keep shortcuts but don't steal the first screen */
	.cm-social-desk .cm-home-trio,
	.cm-profile-desk .cm-home-trio {
		grid-template-areas:
			"feed"
			"profile"
			"friends"
			"rooms"
			"updates";
	}
}

@media (max-width: 760px) {
	.cm-feed-filter {
		min-height: 2rem;
		padding: 0.35rem 0.7rem !important;
		font-size: 0.78rem;
	}

	.cm-feed-item .cm-feed-open,
	.cm-feed-item a.cm-feed-room-link {
		display: inline-flex;
		align-items: center;
		min-height: 2rem;
		padding: 0.2rem 0;
	}
}

.cm-invite-box {
	margin-top: 1rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--cm-line);
	border-radius: 16px;
	background: var(--cm-mint-soft);
}

.cm-invite-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.cm-invite-url {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.cm-invite-url input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--cm-line-strong);
	border-radius: 10px;
	padding: 0.45rem 0.7rem;
	background: var(--cm-surface);
}

.cm-invite-room-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-invite-room-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--cm-line);
}

.cm-invite-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.cm-invite-banner {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 1rem;
	padding: 0.7rem 0.85rem;
	border-radius: 12px;
	background: var(--cm-mint-soft);
}

.cm-invite-banner img,
.cm-invite-avatar {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	object-fit: cover;
}

.cm-invite-hero {
	text-align: center;
}

.cm-invite-hero .cm-invite-avatar {
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto 0.8rem;
}

.cm-invite-room-note {
	font-weight: 600;
}

@media (max-width: 760px) {
	.cm-invite-url,
	.cm-invite-cta,
	.cm-invite-room-list li {
		flex-direction: column;
		align-items: stretch;
	}
}
