@charset "utf-8";
/* =====================================================================
   B-SIDE · 회원 페이지 리스킨 (라이믹스 회원 기본 스킨 .xm 위에 덮어쓰기)
   - 로그인 페이지 ("로그인이 필요합니다" 포함) → 로그인 팝업과 같은 카드
   - 회원가입 · 정보수정 폼 → 다크 입력칸 + 알약 버튼
   - PC · 모바일 공통
   ※ 회원 스킨 CSS보다 우선하도록 html body :is(.xm, .xc) 으로 시작
   ===================================================================== */

html body :is(.xm, .xc) {
	--m-card: #15152a;
	--m-field: rgba(255, 255, 255, .04);
	--m-line: rgba(255, 255, 255, .1);
	--m-line-2: rgba(255, 255, 255, .18);
	--m-tx: var(--bs-tx, #ececf7);
	--m-tx-2: var(--bs-tx-2, #a6a6c4);
	--m-tx-3: var(--bs-tx-3, #6d6d8f);
	--m-acc: var(--bs-acc, #818cf8);
	--m-acc-2: var(--bs-acc-2, #38bdf8);
	--m-grad: var(--bs-grad, linear-gradient(90deg, #818cf8, #38bdf8));
	font-family: var(--bs-f-ko, "Pretendard Variable", Pretendard, sans-serif);
	color: var(--m-tx);
}

/* ---------- 공통 입력칸 ---------- */
html body :is(.xm, .xc) input[type="text"],
html body :is(.xm, .xc) input[type="email"],
html body :is(.xm, .xc) input[type="password"],
html body :is(.xm, .xc) input[type="tel"],
html body :is(.xm, .xc) input[type="url"],
html body :is(.xm, .xc) input[type="number"],
html body :is(.xm, .xc) input[type="date"],
html body :is(.xm, .xc) select,
html body :is(.xm, .xc) textarea {
	box-sizing: border-box;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--m-line) !important;
	border-radius: 14px !important;
	background: var(--m-field) !important;
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: #fff !important;
	caret-color: var(--m-acc-2);
	color-scheme: dark;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
html body :is(.xm, .xc) textarea { height: auto; min-height: 100px; padding: 12px 16px; }
html body :is(.xm, .xc) select { -webkit-appearance: auto; appearance: auto; }
html body :is(.xm, .xc) input::placeholder,
html body :is(.xm, .xc) textarea::placeholder { color: var(--m-tx-3); opacity: 1; }
html body :is(.xm, .xc) input:hover,
html body :is(.xm, .xc) select:hover { border-color: var(--m-line-2) !important; }
html body :is(.xm, .xc) input:focus,
html body :is(.xm, .xc) select:focus,
html body :is(.xm, .xc) textarea:focus {
	outline: 0;
	border-color: var(--m-acc) !important;
	background: rgba(129, 140, 248, .08) !important;
	box-shadow: 0 0 0 4px rgba(129, 140, 248, .18);
}
/* 크롬 자동완성: 다크 유지 + 글씨 보이게 */
html body :is(.xm, .xc) input:-webkit-autofill,
html body :is(.xm, .xc) input:-webkit-autofill:hover,
html body :is(.xm, .xc) input:-webkit-autofill:active {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px #1d1d36 inset !important;
	box-shadow: 0 0 0 1000px #1d1d36 inset !important;
	transition: background-color 99999s ease 0s;
}
html body :is(.xm, .xc) input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px #23234a inset, 0 0 0 4px rgba(129, 140, 248, .18) !important;
	box-shadow: 0 0 0 1000px #23234a inset, 0 0 0 4px rgba(129, 140, 248, .18) !important;
}

/* 체크박스 · 라디오 */
html body :is(.xm, .xc) input[type="checkbox"],
html body :is(.xm, .xc) input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0 6px 0 0;
	vertical-align: -3px;
	accent-color: var(--m-acc);
}
html body :is(.xm, .xc) label { color: var(--m-tx-2); }

/* ---------- 공통 버튼 ---------- */
html body :is(.xm, .xc) .btn,
html body :is(.xm, .xc) input[type="submit"],
html body :is(.xm, .xc) button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	height: 48px;
	padding: 0 26px !important;
	border: 1px solid var(--m-line-2) !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-family: inherit;
	font-size: 15px !important;
	font-weight: 600;
	line-height: 1 !important;
	color: var(--m-tx) !important;
	text-decoration: none !important;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color .15s, border-color .15s, filter .15s, box-shadow .2s;
}
html body :is(.xm, .xc) .btn:hover {
	border-color: var(--m-acc) !important;
	background: rgba(129, 140, 248, .14) !important;
	color: #fff !important;
}
/* 메인 버튼(등록 · 로그인 · 저장) = 그라데이션 */
html body :is(.xm, .xc) .btn-inverse,
html body :is(.xm, .xc) input[type="submit"],
html body :is(.xm, .xc) button[type="submit"] {
	border: 0 !important;
	background: var(--m-grad) !important;
	color: #111122 !important;
	font-weight: 700;
	box-shadow: 0 10px 28px rgba(129, 140, 248, .32) !important;
}
html body :is(.xm, .xc) .btn-inverse:hover,
html body :is(.xm, .xc) input[type="submit"]:hover,
html body :is(.xm, .xc) button[type="submit"]:hover {
	background: var(--m-grad) !important;
	color: #111122 !important;
	box-shadow: 0 14px 34px rgba(56, 189, 248, .3) !important;
}
html body :is(.xm, .xc) .btn-inverse:active,
html body :is(.xm, .xc) input[type="submit"]:active { filter: brightness(.92); }

/* 안내 메시지 (예: 로그인이 필요합니다) */
html body :is(.xm, .xc) .message {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid rgba(129, 140, 248, .3);
	border-radius: 14px;
	background: rgba(129, 140, 248, .1);
	font-size: 14px;
	line-height: 1.5;
	color: var(--m-tx);
}
html body :is(.xm, .xc) .message p { margin: 0; color: inherit; }
html body :is(.xm, .xc) .message.error {
	border-color: rgba(244, 63, 94, .35);
	background: rgba(244, 63, 94, .1);
	color: #fda4af;
}
html body :is(.xm, .xc) .message.error p:before { margin-right: 6px; content: '🔒'; }

/* =====================================================================
   로그인 카드
   ===================================================================== */
html body :is(.xm, .xc) .signin {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 40px auto 60px;
	overflow: hidden;
	box-sizing: border-box;
	border: 1px solid var(--m-line) !important;
	border-radius: 24px !important;
	background:
		radial-gradient(420px 220px at 100% 0%, rgba(129, 140, 248, .22), transparent 70%),
		radial-gradient(360px 200px at 0% 100%, rgba(56, 189, 248, .10), transparent 70%),
		var(--m-card) !important;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
	color: var(--m-tx);
}
/* 상단 미니 건반 (로그인 팝업과 동일) */
html body :is(.xm, .xc) .signin:before {
	display: block;
	height: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	background-image:
		linear-gradient(90deg,
			transparent 0 12px, #0b0b18 12px 20px, transparent 20px 28px, #0b0b18 28px 36px,
			transparent 36px 60px, #0b0b18 60px 68px, transparent 68px 76px, #0b0b18 76px 84px,
			transparent 84px 92px, #0b0b18 92px 100px, transparent 100px 112px),
		linear-gradient(90deg, rgba(255, 255, 255, .16) 0 15px, rgba(0, 0, 0, .35) 15px 16px);
	background-size: 112px 12px, 16px 100%;
	background-repeat: repeat-x;
	content: '';
}
html body :is(.xm, .xc) .signin > .login-header {
	padding: 28px 30px 4px !important;
	border: 0 !important;
}
html body :is(.xm, .xc) .signin > .login-header > h1 {
	margin: 0;
	font-family: var(--bs-f-en, "Space Grotesk", sans-serif);
	font-size: 32px !important;
	font-weight: 700 !important;
	letter-spacing: -0.04em;
	line-height: 1.1 !important;
	color: #fff !important;
}
html body :is(.xm, .xc) .signin > .login-header > h1 > i { display: none; }
html body :is(.xm, .xc) .signin > .login-header > h1:before {
	display: block;
	margin-bottom: 12px;
	font-family: var(--bs-f-mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	color: var(--m-acc-2);
	content: '● REC READY';
}
html body :is(.xm, .xc) .signin > .login-body {
	max-height: none !important;
	padding: 18px 30px 0 !important;
}
html body :is(.xm, .xc) .signin .control-group {
	padding: 0 !important;
	margin: 0 !important;
}
html body :is(.xm, .xc) .signin input[type="text"],
html body :is(.xm, .xc) .signin input[type="email"],
html body :is(.xm, .xc) .signin input[type="password"] {
	display: block;
	width: 100% !important;
	height: 54px;
	margin: 0 0 10px !important;
}
html body :is(.xm, .xc) .signin label[for="keepid_opt"],
html body :is(.xm, .xc) .signin .control-group > label {
	gap: 8px;
	display: inline-flex !important;
	align-items: center;
	margin: 6px 0 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--m-tx-2) !important;
}
html body :is(.xm, .xc) .signin #warning {
	margin: -8px 0 14px;
	padding: 10px 14px;
	border: 1px solid var(--m-line);
	border-radius: 12px;
	background: #24243f;
	font-size: 12px;
	line-height: 1.55;
	color: var(--m-tx-2);
}
html body :is(.xm, .xc) .signin #warning p { margin: 0; }
html body :is(.xm, .xc) .signin input[type="submit"],
html body :is(.xm, .xc) .signin .submit {
	position: static !important;   /* 회원 스킨은 버튼을 입력칸 옆에 absolute로 붙여 둠 → 아래로 */
	display: flex !important;
	width: 100% !important;
	height: 54px !important;
	margin: 0 !important;
	font-size: 16px !important;
}
html body :is(.xm, .xc) .signin > .login-footer {
	margin: 22px 30px 0 !important;
	padding: 18px 0 26px !important;
	border: 0 !important;
	border-top: 1px solid rgba(255, 255, 255, .08) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center !important;
	font-size: 0;                    /* 사이의 | 문자 숨김 */
	color: transparent !important;
}
html body :is(.xm, .xc) .signin > .login-footer > a {
	display: inline-block;
	margin: 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--m-tx-2) !important;
	text-decoration: none !important;
}
html body :is(.xm, .xc) .signin > .login-footer > a:last-child { color: var(--m-acc-2) !important; }
html body :is(.xm, .xc) .signin > .login-footer > a:hover { color: #fff !important; }

/* =====================================================================
   회원가입 · 정보수정 폼
   ===================================================================== */
html body :is(.xm, .xc) > h1,
html body :is(.xm, .xc) h1[style] {
	margin: 10px 0 24px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--m-line) !important;
	font-family: var(--bs-f-ko);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #fff;
}
html body :is(.xm, .xc) .form-horizontal {
	max-width: 720px;
}
html body :is(.xm, .xc) .form-horizontal .control-group {
	display: grid;
	grid-template-columns: 160px 1fr;
	align-items: start;
	gap: 0 20px;
	margin: 0 0 18px !important;
}
html body :is(.xm, .xc) .form-horizontal .control-group:before,
html body :is(.xm, .xc) .form-horizontal .control-group:after { display: none !important; content: none !important; }   /* 옛 clearfix가 그리드 칸을 먹지 않게 */
html body :is(.xm, .xc) .form-horizontal .control-label {
	float: none !important;
	width: auto !important;
	padding-top: 14px !important;
	text-align: right;
	font-size: 14px;
	font-weight: 600;
	color: var(--m-tx) !important;
}
html body :is(.xm, .xc) .form-horizontal .control-label em { color: #fb7185 !important; font-style: normal; }
html body :is(.xm, .xc) .form-horizontal .controls {
	margin: 0 !important;
	min-width: 0;
}
html body :is(.xm, .xc) .form-horizontal .controls input[type="text"],
html body :is(.xm, .xc) .form-horizontal .controls input[type="email"],
html body :is(.xm, .xc) .form-horizontal .controls input[type="password"],
html body :is(.xm, .xc) .form-horizontal .controls input[type="tel"],
html body :is(.xm, .xc) .form-horizontal .controls input[type="url"] {
	width: 100%;
	max-width: 360px;
}
html body :is(.xm, .xc) .help-inline,
html body :is(.xm, .xc) .help-block {
	display: block;
	margin: 6px 2px 0;
	padding: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--m-tx-3);
}
/* 아이디 중복 등 실시간 안내(빨간 글씨) */
html body :is(.xm, .xc) .controls [style*="color:red"],
html body :is(.xm, .xc) .controls [style*="color: red"],
html body :is(.xm, .xc) .controls .error { color: #fb7185 !important; }
/* 라디오 줄 (메일링 · 쪽지) → 알약 선택지 */
html body :is(.xm, .xc) .form-horizontal .controls[style] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 6px !important;
}
html body :is(.xm, .xc) .form-horizontal .controls > label {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 9px 16px 9px 12px;
	border: 1px solid var(--m-line);
	border-radius: 999px;
	background: var(--m-field);
	font-size: 14px;
	font-weight: 500;
	color: var(--m-tx-2) !important;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
html body :is(.xm, .xc) .form-horizontal .controls > label:has(input:checked) {
	border-color: var(--m-acc);
	background: rgba(129, 140, 248, .14);
	color: #fff !important;
}
/* 약관 */
html body :is(.xm, .xc) .agreement {
	margin: 0 0 18px;
	padding: 16px 18px;
	border: 1px solid var(--m-line);
	border-radius: 16px;
	background: var(--m-field);
}
html body :is(.xm, .xc) .agreement .title { font-weight: 700; color: #fff; margin-bottom: 8px; }
html body :is(.xm, .xc) .agreement .text {
	max-height: 140px;
	overflow: auto;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(0, 0, 0, .25);
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--m-tx-2);
}
html body :is(.xm, .xc) .agreement .confirm { margin-top: 10px; }
/* 하단 버튼: 취소(고스트) ← → 등록(그라데이션) */
html body :is(.xm, .xc) form:not(#fo_friend_list, #fo_message_list) .btnArea {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: row-reverse;
	gap: 10px;
	margin-top: 28px !important;
	padding-top: 20px !important;
	border-top: 1px solid var(--m-line) !important;
}
html body :is(.xm, .xc) form:not(#fo_friend_list, #fo_message_list) .btnArea .pull-right,
html body :is(.xm, .xc) form:not(#fo_friend_list, #fo_message_list) .btnArea .pull-left { float: none !important; }
html body :is(.xm, .xc) form:not(#fo_friend_list, #fo_message_list) .btnArea input[type="submit"] { min-width: 160px; }

/* 회원 메뉴 탭 (정보 보기 · 작성 글 …) */
html body :is(.xm, .xc) .nav-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px !important;
	border: 0 !important;
}
html body :is(.xm, .xc) .nav-tabs > li { float: none !important; margin: 0 !important; }
html body :is(.xm, .xc) .nav-tabs > li > a {
	display: inline-block;
	padding: 8px 16px !important;
	border: 1px solid var(--m-line) !important;
	border-radius: 999px !important;
	background: transparent !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--m-tx-2) !important;
	text-decoration: none !important;
}
html body :is(.xm, .xc) .nav-tabs > li > a:hover { border-color: var(--m-acc) !important; color: #fff !important; }
html body :is(.xm, .xc) .nav-tabs > .active > a,
html body :is(.xm, .xc) .nav-tabs > .active > a:hover {
	border-color: transparent !important;
	background: var(--m-grad) !important;
	color: #111122 !important;
}
/* 회원 정보 표 */
html body :is(.xm, .xc) .table th,
html body :is(.xm, .xc) .table td,
html body :is(.xm, .xc) .dl-horizontal dt,
html body :is(.xm, .xc) .dl-horizontal dd {
	border-color: var(--m-line) !important;
	background: transparent !important;
	color: var(--m-tx) !important;
}
html body :is(.xm, .xc) .table th,
html body :is(.xm, .xc) .dl-horizontal dt { color: var(--m-tx-2) !important; }

/* =====================================================================
   📱 모바일
   ===================================================================== */
@media all and (max-width: 640px) {
	html body :is(.xm, .xc) { padding: 0 16px; }
	html body :is(.xm, .xc) .signin {
		margin: 24px auto 40px;
		border-radius: 22px !important;
	}
	html body :is(.xm, .xc) .signin > .login-header { padding: 24px 22px 4px !important; }
	html body :is(.xm, .xc) .signin > .login-body { padding: 16px 22px 0 !important; }
	html body :is(.xm, .xc) .signin > .login-footer { margin: 20px 22px 0 !important; }
	html body :is(.xm, .xc) .signin > .login-header > h1 { font-size: 28px !important; }
	/* 16px 이상이면 아이폰에서 입력할 때 화면이 확대되지 않음 */
	html body :is(.xm, .xc) input[type="text"],
	html body :is(.xm, .xc) input[type="email"],
	html body :is(.xm, .xc) input[type="password"],
	html body :is(.xm, .xc) select { font-size: 16px; }

	html body :is(.xm, .xc) > h1,
	html body :is(.xm, .xc) h1[style] { font-size: 22px; margin-top: 20px; }
	html body :is(.xm, .xc) .form-horizontal .control-group {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	html body :is(.xm, .xc) .form-horizontal .control-label {
		padding-top: 0 !important;
		text-align: left;
	}
	html body :is(.xm, .xc) .form-horizontal .controls input[type="text"],
	html body :is(.xm, .xc) .form-horizontal .controls input[type="email"],
	html body :is(.xm, .xc) .form-horizontal .controls input[type="password"] { max-width: none; }
	html body :is(.xm, .xc) form:not(#fo_friend_list, #fo_message_list) .btnArea { flex-direction: column; align-items: stretch; }
	html body :is(.xm, .xc) form:not(#fo_friend_list, #fo_message_list) .btnArea .btn,
	html body :is(.xm, .xc) form:not(#fo_friend_list, #fo_message_list) .btnArea input[type="submit"] { width: 100%; }
}

/* =====================================================================
   📋 목록 화면 (v20) — 스크랩 · 저장함 · 작성 글/댓글 · 자동 로그인 · 쪽지함 · 친구
   라이믹스 기본 흰 버튼 · 부트스트랩 페이지 번호 → B-SIDE 트랜스포트 컨트롤
   ※ 페이지 번호가 있는 화면만 골라서 적용 ( :has(.pagination) )
   ===================================================================== */

/* ---------- 툴바 줄 (버튼 · 선택상자 모음) ---------- */
html body :is(.xm, .xc) .btnArea:not(form:not(#fo_friend_list, #fo_message_list) .btnArea) {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	float: none !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: 0 !important;
	text-align: left;
}
html body :is(.xm, .xc) .btnArea > div[style*="clear"],
html body :is(.xm, .xc) .pagination > div[style*="clear"],
html body :is(.xm, .xc) div[class="clear:both"] { display: none !important; }
/* 스크랩: 왼쪽(폴더) · 오른쪽(폴더 추가) 두 덩어리를 한 줄로 */
html body .xm > div:has(> .btnArea) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 14px;
}
html body .xm > div:has(> .btnArea) > .btnArea { margin: 0 !important; }
html body :is(.xm, .xc) .btnArea > form,
html body :is(.xm, .xc) .btnArea > .etc,
html body :is(.xm, .xc) .btnArea > .btn-group {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	float: none !important;
	margin: 0 !important;
}
/* 표 아래 줄 (삭제 · 이동) → 오른쪽 정렬 */
html body :is(.xm, .xc) form:is(#fo_message_list, #fo_friend_list) .table + .btnArea { justify-content: flex-end; margin: 12px 0 0 !important; }

/* ---------- 작은 컨트롤 공통 크기 ---------- */
html body :is(.xm, .xc):has(.pagination) :is(.btn, input[type="submit"], button[type="submit"]) {
	height: 38px !important;
	min-width: 0 !important;
	width: auto !important;
	padding: 0 16px !important;
	margin: 0 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	border-radius: 999px !important;
}
/* 목록 화면의 제출 버튼(저장 · 삭제 · 이동)은 고스트, 검색만 그라데이션 */
html body :is(.xm, .xc):has(.pagination) :is(.btnArea, .btn-group) :is(input[type="submit"], button[type="submit"]) {
	border: 1px solid var(--m-line-2) !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--m-tx) !important;
}
html body :is(.xm, .xc):has(.pagination) :is(.btnArea, .btn-group) :is(input[type="submit"], button[type="submit"]):hover {
	border-color: var(--m-acc) !important;
	background: rgba(129, 140, 248, .14) !important;
	color: #fff !important;
}
/* 삭제 = 빨간 고스트 */
html body #fo_message_list .table + .btnArea input[type="submit"],
html body #fo_friend_list button[value="procCommunicationDeleteFriend"],
html body :is(.xm, .xc) #scrap_folder_delete {
	border-color: rgba(244, 63, 94, .4) !important;
	color: #fda4af !important;
}
html body #fo_message_list .table + .btnArea input[type="submit"]:hover,
html body #fo_friend_list button[value="procCommunicationDeleteFriend"]:hover,
html body :is(.xm, .xc) #scrap_folder_delete:hover {
	border-color: var(--bs-rec, #f43f5e) !important;
	background: rgba(244, 63, 94, .14) !important;
	color: #fff !important;
}
/* 버튼 앞 작은 아이콘 */
html body :is(.xm, .xc) #scrap_folder_create:before,
html body .xc a.btn[href*="AddFriendGroup"]:before { content: '+'; font-size: 16px; font-weight: 500; }

/* ---------- 선택상자 → 알약 + 화살표 ---------- */
html body :is(.xm, .xc):has(.pagination) select {
	width: auto !important;
	min-width: 110px;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 34px 0 14px !important;
	border-radius: 999px !important;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a6a6c4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center,
		var(--m-field) !important;
	font-size: 13px !important;
	font-weight: 600;
	line-height: normal;
	cursor: pointer;
	-webkit-appearance: none !important;
	appearance: none !important;
}
html body :is(.xm, .xc):has(.pagination) select option { background: #1d1d36; color: #fff; }
html body :is(.xm, .xc):has(.pagination) input[type="text"] {
	height: 38px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	font-size: 14px;
}

/* ---------- 쪽지함: 받은/보낸/보관/안 읽은 → 세그먼트 스위치 ---------- */
html body .xc .btnArea > .btn-group:has(> a[href*="message_type"]) {
	gap: 2px;
	padding: 4px;
	border: 1px solid var(--m-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .03);
}
html body .xc .btnArea > .btn-group > a[href*="message_type"] {
	height: 32px !important;
	padding: 0 14px !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--m-tx-2) !important;
	font-weight: 600 !important;
}
html body .xc .btnArea > .btn-group > a[href*="message_type"]:hover { color: #fff !important; background: rgba(255, 255, 255, .06) !important; }
html body .xc .btnArea > .btn-group > a[href*="message_type"][style*="bold"] {
	background: var(--m-grad) !important;
	color: #111122 !important;
}
/* 쪽지함엔 제목(h1)이 없어서 툴바 위에 같은 모양으로 붙여 줌 */
html body .xc:has(#fo_message_list) > .btnArea:has(> .btn-group):before {
	display: block;
	flex-basis: 100%;
	order: -1;
	margin: 0 0 16px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--m-line);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.03em;
	color: #fff;
	content: '쪽지함';
}
/* 받은 쪽지 내용 보기 */
html body .xc .table[style*="fixed"] {
	overflow: hidden;
	margin: 0 0 14px;
	border: 1px solid var(--m-line);
	border-radius: 16px;
	border-collapse: separate;
	background: rgba(255, 255, 255, .03);
}
html body .xc .table[style*="fixed"] th { font-size: 17px; color: #fff !important; }
html body .xc .rhymix_content { font-size: 15px; line-height: 1.7; color: var(--m-tx) !important; }

/* ---------- 표 ---------- */
html body :is(.xm, .xc) .table {
	width: 100%;
	margin: 0;
	border: 0 !important;
	border-collapse: collapse;
	background: transparent !important;
}
html body :is(.xm, .xc) .table > :is(thead, tbody, tfoot) { border: 0 !important; }
/* 체크박스 → 다크 네모 + 그라데이션 체크 */
html body :is(.xm, .xc) .table input[type="checkbox"] {
	position: relative;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	border: 1.5px solid var(--m-line-2);
	border-radius: 6px;
	background: rgba(255, 255, 255, .04);
	vertical-align: middle;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background .15s, border-color .15s;
}
html body :is(.xm, .xc) .table input[type="checkbox"]:hover { border-color: var(--m-acc); }
html body :is(.xm, .xc) .table input[type="checkbox"]:checked {
	border-color: transparent;
	background: var(--m-grad);
}
html body :is(.xm, .xc) .table input[type="checkbox"]:checked:after {
	position: absolute;
	top: 2px;
	left: 5px;
	width: 5px;
	height: 9px;
	border: solid #111122;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	content: '';
}
html body :is(.xm, .xc) .table > caption {
	caption-side: top;
	padding: 0 0 10px;
	text-align: left;
	font-family: var(--bs-f-mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--m-tx-3);
}
html body :is(.xm, .xc) .table > caption:before { margin-right: 6px; color: var(--m-acc-2); content: '●'; }
html body :is(.xm, .xc) .table th,
html body :is(.xm, .xc) .table td {
	padding: 13px 14px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--m-line) !important;
	vertical-align: middle !important;
	font-size: 14px;
}
html body :is(.xm, .xc) .table thead th {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	border-bottom-color: var(--m-line-2) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-align: left;
	color: var(--m-tx-3) !important;
}
html body :is(.xm, .xc) .table tbody tr { transition: background-color .15s; }
html body :is(.xm, .xc) .table-hover tbody tr:hover { background: rgba(129, 140, 248, .07); }
html body :is(.xm, .xc) .table td a { color: var(--m-tx) !important; text-decoration: none !important; }
html body :is(.xm, .xc) .table td a:hover { color: var(--m-acc-2) !important; }
html body :is(.xm, .xc) .table td .savedContent {
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .25);
	color: var(--m-tx-2);
}
/* 표 안의 작은 버튼 (삭제 · 자동 로그인 삭제) */
html body :is(.xm, .xc) .table td button.text,
html body :is(.xm, .xc) .table td button.delete_autologin {
	height: 28px;
	padding: 0 12px;
	border: 1px solid rgba(244, 63, 94, .35);
	border-radius: 999px;
	background: transparent;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	color: #fda4af;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
html body :is(.xm, .xc) .table td button.text:hover,
html body :is(.xm, .xc) .table td button.delete_autologin:hover { background: rgba(244, 63, 94, .16); color: #fff; }
html body :is(.xm, .xc) .table td select { height: 30px !important; min-width: 80px; font-size: 12px !important; }
/* 빈 목록 (js/bside.member.js 가 줄을 넣어 줌) */
html body :is(.xm, .xc) .table tr.bs-empty td {
	padding: 44px 14px !important;
	border-bottom: 1px dashed var(--m-line) !important;
	text-align: center;
	font-size: 13px;
	color: var(--m-tx-3) !important;
}
html body :is(.xm, .xc) .table tr.bs-empty td:before {
	display: block;
	margin-bottom: 8px;
	font-size: 26px;
	opacity: .55;
	content: '🎧';
}
html body :is(.xm, .xc) .table-hover tbody tr.bs-empty:hover { background: transparent; }
/* 같은 화면에 표가 두 개(자동 로그인 · 등록 기기)면 사이 간격 */
html body .xm > .pagination + h1 { margin-top: 44px; }

/* ---------- 아래 줄: 검색 + 페이지 번호 ---------- */
html body :is(.xm, .xc) .pagination {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 22px 0 0 !important;
	padding: 0 !important;
	text-align: left;
}
html body :is(.xm, .xc) .pagination-centered { justify-content: center; }
html body :is(.xm, .xc) .pagination > form {
	display: flex !important;
	align-items: center;
	gap: 6px;
	float: none !important;
	margin: 0 !important;
}
html body :is(.xm, .xc) .pagination > form input[type="text"] { width: 200px !important; }
/* 검색 버튼 = 그라데이션 알약 */
html body :is(.xm, .xc) .pagination > form button[type="submit"] {
	border: 0 !important;
	background: var(--m-grad) !important;
	box-shadow: 0 8px 22px rgba(129, 140, 248, .28) !important;
	color: #111122 !important;
}
html body :is(.xm, .xc) .pagination > form button[type="submit"]:before {
	width: 12px;
	height: 12px;
	margin-right: 2px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E") center / contain no-repeat;
	content: '';
}
/* 페이지 번호 → 트래커 트랜스포트 버튼 */
html body :is(.xm, .xc) .pagination ul {
	display: flex !important;
	align-items: center;
	gap: 6px;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	list-style: none;
}
html body :is(.xm, .xc) .pagination ul > li { display: block !important; float: none !important; margin: 0 !important; }
html body :is(.xm, .xc) .pagination ul > li > a,
html body :is(.xm, .xc) .pagination ul > li > span {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	float: none !important;
	min-width: 38px;
	height: 38px;
	padding: 0 10px !important;
	border: 1px solid var(--m-line) !important;
	border-radius: 12px !important;
	background: rgba(255, 255, 255, .03) !important;
	font-family: var(--bs-f-mono, "JetBrains Mono", monospace);
	font-size: 13px;
	font-weight: 600;
	line-height: 1 !important;
	color: var(--m-tx-2) !important;
	text-decoration: none !important;
	transition: border-color .15s, background-color .15s, color .15s;
}
html body :is(.xm, .xc) .pagination ul > li > a:hover {
	border-color: var(--m-acc) !important;
	background: rgba(129, 140, 248, .14) !important;
	color: #fff !important;
}
html body :is(.xm, .xc) .pagination ul > li.active > a,
html body :is(.xm, .xc) .pagination ul > li.active > a:hover {
	border-color: transparent !important;
	background: var(--m-grad) !important;
	box-shadow: 0 6px 18px rgba(129, 140, 248, .3);
	color: #111122 !important;
}
/* « 첫 페이지 / 끝 페이지 » → ⏮ ⏭ 아이콘만 (글자는 화면낭독기용으로 남김) */
html body :is(.xm, .xc) .pagination ul > li:first-child > a,
html body :is(.xm, .xc) .pagination ul > li:last-child > a {
	position: relative;
	width: 38px;
	padding: 0 !important;
	overflow: hidden;
	font-size: 0 !important;
	color: transparent !important;
}
html body :is(.xm, .xc) .pagination ul > li:first-child > a:before,
html body :is(.xm, .xc) .pagination ul > li:last-child > a:before {
	width: 14px;
	height: 14px;
	background: var(--m-tx-2);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h2.5v16H5zM20 4v16L9 12z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h2.5v16H5zM20 4v16L9 12z'/%3E%3C/svg%3E") center / contain no-repeat;
	content: '';
	transition: background-color .15s;
}
html body :is(.xm, .xc) .pagination ul > li:last-child > a:before { transform: scaleX(-1); }
html body :is(.xm, .xc) .pagination ul > li:first-child > a:hover:before,
html body :is(.xm, .xc) .pagination ul > li:last-child > a:hover:before { background: #fff; }

/* ---------- 📱 모바일 (목록) ---------- */
@media all and (max-width: 640px) {
	html body .xc { padding: 0 16px; }
	html body :is(.xm, .xc) .table th,
	html body :is(.xm, .xc) .table td { padding: 11px 8px !important; font-size: 13px; }
	html body :is(.xm, .xc) .pagination { flex-direction: column-reverse; align-items: stretch; }
	html body :is(.xm, .xc) .pagination ul { justify-content: center; }
	html body :is(.xm, .xc) .pagination > form { width: 100%; }
	html body :is(.xm, .xc) .pagination > form input[type="text"] { flex: 1; width: auto !important; min-width: 0; }
	html body :is(.xm, .xc):has(.pagination) select { font-size: 16px !important; }
	html body :is(.xm, .xc):has(.pagination) input[type="text"] { font-size: 16px !important; }
	html body .xc:has(#fo_message_list) > .btnArea:has(> .btn-group):before { font-size: 22px; }
	/* 탭 · 쪽지함 스위치 → 한 줄 가로 스크롤 */
	html body :is(.xm, .xc) .nav-tabs,
	html body .xc .btnArea > .btn-group:has(> a[href*="message_type"]) {
		flex-wrap: nowrap !important;
		max-width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	html body :is(.xm, .xc) .nav-tabs::-webkit-scrollbar,
	html body .xc .btnArea > .btn-group::-webkit-scrollbar { display: none; }
	html body :is(.xm, .xc) .nav-tabs { margin-left: -16px !important; margin-right: -16px !important; padding: 0 16px !important; }
	html body :is(.xm, .xc) .nav-tabs > li > a,
	html body .xc .btnArea > .btn-group > a[href*="message_type"] { white-space: nowrap; }
	html body .xc .btnArea > .btn-group > a[href*="message_type"] { padding: 0 12px !important; font-size: 12.5px !important; }
	/* 표 → 옆으로 밀어서 보기 */
	html body :is(.xm, .xc) .table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	html body :is(.xm, .xc) .table > caption { display: block; }
	html body :is(.xm, .xc) .table th,
	html body :is(.xm, .xc) .table td { white-space: nowrap; }
	html body :is(.xm, .xc) .table td.title { min-width: 160px; white-space: normal; }
	html body :is(.xm, .xc) .table tr.bs-empty td { white-space: normal; width: 100vw; }
}
