/* =========================================================
   Bewellwiki Tools Common Styles
   - 공통 계산기 UI
   - 기존 Zone2 클래스 호환
   ========================================================= */

/* =========================
   공통 계산기 래퍼
========================= */

.bw-tool-calculator {
	width: 100%;
	margin: 0 auto 20px;
}

.bw-tool-box {
	background: #ffffff;
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(226, 232, 240, 0.8);
}

/* =========================
   상단 계산기 탭
========================= */

.bw-tool-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px;
	border-radius: 14px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.bw-tool-tabs::-webkit-scrollbar {
	display: none;
}

.bw-tool-tab {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 9px 14px;
	border-radius: 11px;
	border: none;
	background: transparent;
	color: #475569;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bw-tool-tab:hover {
	color: #0f172a;
	text-decoration: none;
}

.bw-tool-tab.is-active {
	background: #0f172a;
	color: #ffffff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* =========================
   안내 박스
========================= */

.bw-tool-note {
	margin: 0 0 18px;
	padding: 16px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #dbeafe;
	color: #334155;
	font-size: 14px;
	line-height: 1.75;
}

/* =========================
   입력 필드
========================= */

.bw-tool-field {
	margin: 0 0 16px;
}

.bw-tool-field label {
	display: block;
	margin: 0 0 8px;
	color: #020617;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

.bw-tool-field input,
.bw-tool-field select {
	width: 100%;
	height: 50px;
	padding: 0 20px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	color: #0f172a;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	outline: none;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bw-tool-field input::placeholder {
	color: #64748b;
	font-weight: 500;
}

.bw-tool-field input:focus,
.bw-tool-field select:focus {
	border-color: #0f172a;
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.bw-tool-field select {
	cursor: pointer;
}

/* =========================
   버튼
========================= */

.bw-tool-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	padding: 0 18px;
	border: none;
	border-radius: 10px;
	background: #0f172a;
	color: #ffffff;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.bw-tool-button:hover {
	background: #111827;
}

.bw-tool-button:active {
	transform: translateY(1px);
}

/* =========================
   결과 박스
========================= */

.bw-tool-result {
	margin: 20px 0 0;
	padding: 18px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.bw-tool-result-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 12px;
}

.bw-tool-result-head strong {
	color: #020617;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.35;
}

/* =========================
   결과 리스트
========================= */

.bw-tool-result-list {
	display: grid;
	gap: 9px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bw-tool-result-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
}

.bw-tool-result-list li span {
	color: #475569;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.bw-tool-result-list li strong {
	color: #0f172a;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.35;
	text-align: right;
	white-space: nowrap;
}

.bw-tool-result-list li.is-highlight {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.bw-tool-result-list li.is-highlight span,
.bw-tool-result-list li.is-highlight strong {
	color: #1d4ed8;
}

/* =========================
   결과 안내 문구
========================= */

.bw-tool-guide {
	margin: 14px 0 0;
	padding: 13px 14px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #334155;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.65;
}

.bw-tool-source {
	margin: 14px 0 0;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.55;
}

.bw-tool-disclaimer {
	margin: 8px 0 0;
	color: #64748b;
	font-size: 12px;
	line-height: 1.65;
}

/* =========================
   모바일
========================= */

@media (max-width: 767px) {
	.bw-tool-box {
		padding: 18px;
		border-radius: 16px;
	}

	.bw-tool-note {
		padding: 14px;
		font-size: 13px;
		line-height: 1.7;
	}

	.bw-tool-tab {
		min-height: 36px;
		padding: 8px 12px;
		font-size: 13px;
	}

	.bw-tool-field input,
	.bw-tool-field select {
		height: 48px;
		font-size: 14px;
	}

	.bw-tool-button {
		min-height: 50px;
		font-size: 15px;
	}

	.bw-tool-result {
		padding: 15px;
	}

	.bw-tool-result-list li {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
		padding: 12px;
	}

	.bw-tool-result-list li strong {
		text-align: left;
		white-space: normal;
	}
}

/* =========================
   Zone2 계산기 개별 보정
========================= */

.bw-tool-zone2 .bw-tool-result-list li.is-zone2 {
	background: #eff6ff;
	border-color: #bfdbfe;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.bw-tool-zone2 .bw-tool-result-list li.is-zone2 span,
.bw-tool-zone2 .bw-tool-result-list li.is-zone2 strong {
	color: #1d4ed8;
}

/* =========================
   BMR 계산기 개별 보정
========================= */

.bw-tool-bmr .bw-tool-result-list li.is-highlight {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.bw-tool-bmr .bw-tool-result-list li.is-highlight span,
.bw-tool-bmr .bw-tool-result-list li.is-highlight strong {
	color: #15803d;
}

.bw-tool-bmr .bw-tool-guide strong {
	color: #15803d;
	font-weight: 900;
}

/* =========================
   BMI 계산기 개별 보정
========================= */

.bw-tool-bmi .bw-tool-result-list li.is-highlight {
	background: #fefce8;
	border-color: #fde68a;
}

.bw-tool-bmi .bw-tool-result-list li.is-highlight span,
.bw-tool-bmi .bw-tool-result-list li.is-highlight strong {
	color: #a16207;
}

.bw-tool-bmi .bw-tool-guide strong {
	color: #a16207;
	font-weight: 900;
}

html.dark-mode .bw-tool-bmi .bw-tool-result-list li.is-highlight {
	background: #422006;
	border-color: #92400e;
}

html.dark-mode .bw-tool-bmi .bw-tool-result-list li.is-highlight span,
html.dark-mode .bw-tool-bmi .bw-tool-result-list li.is-highlight strong,
html.dark-mode .bw-tool-bmi .bw-tool-guide strong {
	color: #facc15;
}

/* =========================
   Tools single page tab position
========================= */

.single-tools-page .bw-tool-tabs {
	margin: 0 0 12px;
}

.single-tools-page .tool-header {
	margin-bottom: 10px;
}

.single-tools-page .tool-title {
	font-size: 20px;
}

.single-tools-page .tool-content h2 {
	font-size: 18px;
}

.single-tools-page .tool-content h3 {
	font-size: 17px;
}


/* =========================
   상단 계산기 탭 - 모바일 스크롤 보정
========================= */

@media (max-width: 767px) {
	.single-tools-page .bw-tool-tabs {
		width: 100%;
		max-width: 100%;
		gap: 6px;
		margin: 0 0 12px;
		padding: 4px;
		overflow-x: auto;
		overflow-y: hidden;
		flex-wrap: nowrap;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.single-tools-page .bw-tool-tabs::after {
		content: "";
		flex: 0 0 6px;
	}

	.single-tools-page .bw-tool-tab {
		flex: 0 0 auto;
		min-height: 34px;
		padding: 8px 11px;
		border-radius: 10px;
		font-size: 13px;
		white-space: nowrap;
		scroll-snap-align: start;
	}
}

/* =========================
   Tools breadcrumb
========================= */

.tool-breadcrumb {
	margin: 0 0 10px;
}

.tool-breadcrumb a {
	display: inline-flex;
	align-items: center;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
}

.tool-breadcrumb a:hover {
	color: #0f172a;
	text-decoration: none;
}

html.dark-mode .tool-breadcrumb a {
	color: #9ca3af;
}

html.dark-mode .tool-breadcrumb a:hover {
	color: #ffffff;
}

/* =========================
   공통 그리드 필드
========================= */

.bw-tool-grid {
	display: grid;
	gap: 12px;
}

.bw-tool-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bw-tool-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================
   러닝 페이스 계산기 개별 보정
========================= */

.bw-tool-pace .bw-tool-result-list li.is-highlight {
	background: #eef2ff;
	border-color: #c7d2fe;
}

.bw-tool-pace .bw-tool-result-list li.is-highlight span,
.bw-tool-pace .bw-tool-result-list li.is-highlight strong {
	color: #4338ca;
}

.bw-tool-pace .bw-tool-guide strong {
	color: #4338ca;
	font-weight: 900;
}

@media (max-width: 767px) {
	.bw-tool-grid-2,
	.bw-tool-grid-3 {
		grid-template-columns: 1fr;
	}
}

/* =========================
   운동 칼로리 계산기 개별 보정
========================= */

.bw-tool-calorie .bw-tool-result-list li.is-highlight {
	background: #fff7ed;
	border-color: #fed7aa;
}

.bw-tool-calorie .bw-tool-result-list li.is-highlight span,
.bw-tool-calorie .bw-tool-result-list li.is-highlight strong {
	color: #c2410c;
}

.bw-tool-calorie .bw-tool-guide strong {
	color: #c2410c;
	font-weight: 900;
}

/* =========================
   Tools dark mode - common calculators
========================= */

html.dark-mode .single-tools-page .tool-title,
html.dark-mode .single-tools-page .tool-content,
html.dark-mode .single-tools-page .tool-content h2,
html.dark-mode .single-tools-page .tool-content h3,
html.dark-mode .single-tools-page .tool-content h4 {
	color: #f3f4f6;
}

html.dark-mode .single-tools-page .tool-info-section {
	background: #131314;
	box-shadow: none;
}

html.dark-mode .bw-tool-box {
	background: #131314;
	border-color: #30343b;
	box-shadow: none;
}

html.dark-mode .bw-tool-tabs {
	background: #1a1c20;
	border-color: #30343b;
}

html.dark-mode .bw-tool-tab {
	background: transparent;
	color: #9ca3af;
}

html.dark-mode .bw-tool-tab:hover {
	color: #ffffff;
}

html.dark-mode .bw-tool-tab.is-active {
	background: #ffffff;
	color: #111827;
	box-shadow: none;
}

html.dark-mode .bw-tool-note {
	background: #1a1c20;
	border-color: #30343b;
	color: #d6dde7;
}

html.dark-mode .bw-tool-field label {
	color: #f3f4f6;
}

html.dark-mode .bw-tool-field input,
html.dark-mode .bw-tool-field select {
	background: #1f2329;
	border-color: #38404a;
	color: #f9fafb;
}

html.dark-mode .bw-tool-field input::placeholder {
	color: #8b95a5;
}

html.dark-mode .bw-tool-field input:focus,
html.dark-mode .bw-tool-field select:focus {
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

html.dark-mode .bw-tool-button {
	background: #2563eb;
	color: #ffffff;
}

html.dark-mode .bw-tool-button:hover {
	background: #1d4ed8;
}

html.dark-mode .bw-tool-result {
	background: #1a1c20;
	border-color: #30343b;
}

html.dark-mode .bw-tool-result-head strong {
	color: #f3f4f6;
}

html.dark-mode .bw-tool-result-list li {
	background: #131314;
	border-color: #30343b;
}

html.dark-mode .bw-tool-result-list li span {
	color: #d6dde7;
}

html.dark-mode .bw-tool-result-list li strong {
	color: #f9fafb;
}

html.dark-mode .bw-tool-guide {
	background: #131314;
	border-color: #30343b;
	color: #d6dde7;
}

html.dark-mode .bw-tool-source,
html.dark-mode .bw-tool-disclaimer {
	color: #9ca3af;
}

/* Zone2 highlight */
html.dark-mode .bw-tool-zone2 .bw-tool-result-list li.is-zone2 {
	background: #172554;
	border-color: #1d4ed8;
}

html.dark-mode .bw-tool-zone2 .bw-tool-result-list li.is-zone2 span,
html.dark-mode .bw-tool-zone2 .bw-tool-result-list li.is-zone2 strong {
	color: #93c5fd;
}

html.dark-mode .zone2-zone-list li.is-zone2 span,
html.dark-mode .zone2-zone-list li.is-zone2 strong,
html.dark-mode .bw-tool-zone2 .bw-tool-result-list li.is-zone2 span,
html.dark-mode .bw-tool-zone2 .bw-tool-result-list li.is-zone2 strong {
	color: #93c5fd;
}

/* BMR highlight */
html.dark-mode .bw-tool-bmr .bw-tool-result-list li.is-highlight {
	background: #052e16;
	border-color: #166534;
}

html.dark-mode .bw-tool-bmr .bw-tool-result-list li.is-highlight span,
html.dark-mode .bw-tool-bmr .bw-tool-result-list li.is-highlight strong,
html.dark-mode .bw-tool-bmr .bw-tool-guide strong {
	color: #86efac;
}

/* Running pace highlight */
html.dark-mode .bw-tool-pace .bw-tool-result-list li.is-highlight {
	background: #1e1b4b;
	border-color: #4338ca;
}

html.dark-mode .bw-tool-pace .bw-tool-result-list li.is-highlight span,
html.dark-mode .bw-tool-pace .bw-tool-result-list li.is-highlight strong,
html.dark-mode .bw-tool-pace .bw-tool-guide strong {
	color: #c7d2fe;
}

/* Exercise calorie highlight */
html.dark-mode .bw-tool-calorie .bw-tool-result-list li.is-highlight {
	background: #431407;
	border-color: #9a3412;
}

html.dark-mode .bw-tool-calorie .bw-tool-result-list li.is-highlight span,
html.dark-mode .bw-tool-calorie .bw-tool-result-list li.is-highlight strong,
html.dark-mode .bw-tool-calorie .bw-tool-guide strong {
	color: #fdba74;
}

/* =========================
   여성 건강 계산기 - 날짜 선택 버튼
========================= */

.bw-tool-date-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 50px;
	padding: 0 16px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	color: #0f172a;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bw-tool-date-display::after {
	content: "⌄";
	font-size: 18px;
	color: #64748b;
	flex: 0 0 auto;
}

.bw-tool-date-display:focus {
	outline: none;
	border-color: #0f172a;
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* =========================
   공통 날짜 선택 달력
========================= */

.bw-tool-picker {
	position: fixed !important;
	inset: 0 !important;
	z-index: 99999 !important;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.bw-tool-picker-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.56);
}

.bw-tool-picker-panel {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 420px;
	padding: 18px;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #e5eaf1;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.bw-tool-picker-head {
	display: grid;
	grid-template-columns: 42px 1fr 42px;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.bw-tool-picker-head strong {
	text-align: center;
	color: #111827;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.bw-tool-picker-nav {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid #d5dbe3;
	background: #ffffff;
	color: #111827;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.bw-tool-picker-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 6px;
}

.bw-tool-picker-weekdays span {
	text-align: center;
	padding: 8px 0;
	font-size: 13px;
	font-weight: 700;
	color: #6b7280;
}

.bw-tool-picker-weekdays span:first-child {
	color: #ef4444;
}

.bw-tool-picker-weekdays span:last-child {
	color: #2563eb;
}

.bw-tool-picker-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.bw-tool-picker-day {
	height: 42px;
	border: 1px solid #e5eaf1;
	border-radius: 10px;
	background: #ffffff;
	color: #111827;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.bw-tool-picker-day:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.bw-tool-picker-day.is-other-month {
	opacity: 0.35;
}

.bw-tool-picker-day.is-sunday {
	color: #ef4444;
}

.bw-tool-picker-day.is-saturday {
	color: #2563eb;
}

.bw-tool-picker-day.is-today {
	border-color: #111827;
}

.bw-tool-picker-day.is-selected {
	background: #111827;
	border-color: #111827;
	color: #ffffff;
}

.bw-tool-picker-close {
	width: 100%;
	min-height: 44px;
	margin-top: 14px;
	border: none;
	border-radius: 10px;
	background: #eef2f7;
	color: #111827;
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
}

/* =========================
   다크모드 - 공통 날짜 선택
========================= */

html.dark-mode .bw-tool-date-display {
	background: #1f2329;
	border-color: #38404a;
	color: #f9fafb;
}

html.dark-mode .bw-tool-date-display::after {
	color: #9ca3af;
}

html.dark-mode .bw-tool-picker-backdrop {
	background: rgba(0, 0, 0, 0.72);
}

html.dark-mode .bw-tool-picker-panel {
	background: #1a1c20;
	border-color: #30343b;
}

html.dark-mode .bw-tool-picker-head strong {
	color: #f3f4f6;
}

html.dark-mode .bw-tool-picker-nav,
html.dark-mode .bw-tool-picker-day {
	background: #1f2329;
	border-color: #38404a;
	color: #f9fafb;
}

html.dark-mode .bw-tool-picker-day.is-other-month {
	opacity: 0.35;
}

html.dark-mode .bw-tool-picker-day.is-sunday {
	color: #ff6b73;
}

html.dark-mode .bw-tool-picker-day.is-saturday {
	color: #6ea8ff;
}

html.dark-mode .bw-tool-picker-day.is-selected {
	background: #ffffff;
	border-color: #ffffff;
	color: #111827;
}

html.dark-mode .bw-tool-picker-close {
	background: #1f2329;
	color: #f9fafb;
}

.bw-tool-share-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	color: #0f172a;
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
}

.bw-tool-share-button:hover {
	background: #f8fafc;
}

html.dark-mode .bw-tool-share-button {
	background: #1f2329;
	border-color: #38404a;
	color: #f9fafb;
}

/* =========================
   테스트형 계산기 문항
========================= */

.bw-tool-question-list {
	display: grid;
	gap: 14px;
	margin: 18px 0;
}

.bw-tool-question {
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bw-tool-question.is-missing {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.bw-tool-question strong {
	display: block;
	margin-bottom: 12px;
	color: #0f172a;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.5;
}

.bw-tool-options {
	display: grid;
	gap: 8px;
}

.bw-tool-options label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
	color: #334155;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.bw-tool-options input[type="radio"] {
	flex: 0 0 auto;
	margin: 0;
}

html.dark-mode .bw-tool-question {
	background: #131314;
	border-color: #30343b;
}

html.dark-mode .bw-tool-question strong {
	color: #f9fafb;
}

html.dark-mode .bw-tool-options label {
	background: #1f2329;
	border-color: #38404a;
	color: #f9fafb;
}

/* =========================
   배란일 계산기 - 모드 탭
========================= */

.bw-tool-mode-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 18px;
	padding: 4px;
	border-radius: 12px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

.bw-tool-mode-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 12px;
	border: none;
	border-radius: 9px;
	background: transparent;
	color: #475569;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bw-tool-mode-btn:hover {
	color: #0f172a;
}

.bw-tool-mode-btn.is-active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* =========================
   배란일 계산기 - 버튼 행
========================= */

.bw-tool-action-row {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 10px;
	margin-top: 4px;
}

.bw-tool-sub-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	padding: 0 16px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	color: #334155;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bw-tool-sub-button:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a;
}

.bw-tool-sub-button:active {
	transform: translateY(1px);
}

.bw-tool-help {
	margin: -4px 0 16px;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
}

/* =========================
   배란일 계산기 - 결과 달력
========================= */

.bw-tool-ovulation .bw-tool-result-list {
	margin-bottom: 16px;
}

.bw-tool-ovulation .bw-tool-result-list li.is-highlight {
	background: #fff1f2;
	border-color: #fecdd3;
}

.bw-tool-ovulation .bw-tool-result-list li.is-highlight span,
.bw-tool-ovulation .bw-tool-result-list li.is-highlight strong {
	color: #be123c;
}

.ovulation-calendar-head {
	display: grid;
	grid-template-columns: 42px 1fr 42px;
	align-items: center;
	gap: 8px;
	margin: 16px 0 10px;
}

.ovulation-calendar-title {
	text-align: center;
	color: #0f172a;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.3;
}

.ovulation-cal-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #d5dbe3;
	border-radius: 10px;
	background: #ffffff;
	color: #111827;
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.ovulation-cal-nav:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.ovulation-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 6px;
}

.ovulation-calendar-weekdays span {
	text-align: center;
	padding: 8px 0;
	color: #64748b;
	font-size: 12px;
	font-weight: 900;
}

.ovulation-calendar-weekdays span:first-child {
	color: #ef4444;
}

.ovulation-calendar-weekdays span:last-child {
	color: #2563eb;
}

.ovulation-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.ovulation-calendar-cell {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 6px 4px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #ffffff;
	color: #0f172a;
	overflow: hidden;
}

.ovulation-calendar-cell.is-other-month {
	opacity: 0.38;
}

.ovulation-calendar-cell.is-sunday .ovulation-day-num {
	color: #ef4444;
}

.ovulation-calendar-cell.is-saturday .ovulation-day-num {
	color: #2563eb;
}

.ovulation-calendar-cell.has-marker {
	border-width: 1px;
}

.ovulation-calendar-cell.is-period {
	background: #fff1f2;
	border-color: #fecdd3;
}

.ovulation-calendar-cell.is-fertile {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.ovulation-calendar-cell.is-ovulation {
	background: #dbeafe;
	border-color: #60a5fa;
}

.ovulation-calendar-cell.is-next-period,
.ovulation-calendar-cell.is-future-period {
	background: #ffe4e6;
	border-color: #fb7185;
}

.ovulation-day-num {
	display: block;
	color: #0f172a;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.2;
}

.ovulation-day-label {
	display: block;
	margin-top: 3px;
	color: #475569;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.2;
	white-space: nowrap;
}

.ovulation-calendar-cell.is-ovulation .ovulation-day-num,
.ovulation-calendar-cell.is-ovulation .ovulation-day-label {
	color: #1d4ed8;
}

.ovulation-calendar-cell.is-next-period .ovulation-day-num,
.ovulation-calendar-cell.is-next-period .ovulation-day-label,
.ovulation-calendar-cell.is-future-period .ovulation-day-num,
.ovulation-calendar-cell.is-future-period .ovulation-day-label {
	color: #be123c;
}

/* =========================
   배란일 계산기 - 범례
========================= */

.ovulation-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 14px 0 0;
	padding: 12px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
}

.ovulation-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ovulation-legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.ovulation-legend i.is-period {
	background: #fecdd3;
}

.ovulation-legend i.is-fertile {
	background: #bfdbfe;
}

.ovulation-legend i.is-ovulation {
	background: #60a5fa;
}

.ovulation-legend i.is-next-period {
	background: #fb7185;
}

/* =========================
   배란일 계산기 - 모바일
========================= */

@media (max-width: 767px) {
	.bw-tool-mode-tabs {
		gap: 6px;
	}

	.bw-tool-mode-btn {
		min-height: 40px;
		padding: 0 8px;
		font-size: 13px;
	}

	.bw-tool-action-row {
		grid-template-columns: 92px 1fr;
		gap: 8px;
	}

	.bw-tool-sub-button {
		min-height: 48px;
		font-size: 14px;
	}

	.ovulation-calendar-grid {
		gap: 5px;
	}

	.ovulation-calendar-cell {
		min-height: 48px;
		padding: 5px 2px;
		border-radius: 8px;
	}

	.ovulation-day-num {
		font-size: 13px;
	}

	.ovulation-day-label {
		font-size: 9px;
	}

	.ovulation-legend {
		gap: 7px 10px;
		font-size: 11px;
	}
}

/* =========================
   배란일 계산기 - 다크모드
========================= */

html.dark-mode .bw-tool-mode-tabs {
	background: #1a1c20;
	border-color: #30343b;
}

html.dark-mode .bw-tool-mode-btn {
	color: #9ca3af;
}

html.dark-mode .bw-tool-mode-btn:hover {
	color: #ffffff;
}

html.dark-mode .bw-tool-mode-btn.is-active {
	background: #ffffff;
	color: #111827;
	box-shadow: none;
}

html.dark-mode .bw-tool-sub-button {
	background: #1f2329;
	border-color: #38404a;
	color: #f9fafb;
}

html.dark-mode .bw-tool-sub-button:hover {
	background: #262b33;
	border-color: #4b5563;
	color: #ffffff;
}

html.dark-mode .bw-tool-help {
	color: #9ca3af;
}

html.dark-mode .bw-tool-ovulation .bw-tool-result-list li.is-highlight {
	background: #4c0519;
	border-color: #9f1239;
}

html.dark-mode .bw-tool-ovulation .bw-tool-result-list li.is-highlight span,
html.dark-mode .bw-tool-ovulation .bw-tool-result-list li.is-highlight strong {
	color: #fda4af;
}

html.dark-mode .ovulation-calendar-title {
	color: #f3f4f6;
}

html.dark-mode .ovulation-cal-nav {
	background: #1f2329;
	border-color: #38404a;
	color: #f9fafb;
}

html.dark-mode .ovulation-cal-nav:hover {
	background: #262b33;
	border-color: #4b5563;
}

html.dark-mode .ovulation-calendar-weekdays span {
	color: #9ca3af;
}

html.dark-mode .ovulation-calendar-weekdays span:first-child {
	color: #ff6b73;
}

html.dark-mode .ovulation-calendar-weekdays span:last-child {
	color: #6ea8ff;
}

html.dark-mode .ovulation-calendar-cell {
	background: #1f2329;
	border-color: #38404a;
}

html.dark-mode .ovulation-calendar-cell.is-period {
	background: #4c0519;
	border-color: #9f1239;
}

html.dark-mode .ovulation-calendar-cell.is-fertile {
	background: #172554;
	border-color: #1d4ed8;
}

html.dark-mode .ovulation-calendar-cell.is-ovulation {
	background: #1d4ed8;
	border-color: #60a5fa;
}

html.dark-mode .ovulation-calendar-cell.is-next-period,
html.dark-mode .ovulation-calendar-cell.is-future-period {
	background: #4c0519;
	border-color: #fb7185;
}

html.dark-mode .ovulation-day-num {
	color: #f9fafb;
}

html.dark-mode .ovulation-day-label {
	color: #d6dde7;
}

html.dark-mode .ovulation-calendar-cell.is-sunday .ovulation-day-num {
	color: #ff6b73;
}

html.dark-mode .ovulation-calendar-cell.is-saturday .ovulation-day-num {
	color: #6ea8ff;
}

html.dark-mode .ovulation-calendar-cell.is-ovulation .ovulation-day-num,
html.dark-mode .ovulation-calendar-cell.is-ovulation .ovulation-day-label {
	color: #ffffff;
}

html.dark-mode .ovulation-calendar-cell.is-next-period .ovulation-day-num,
html.dark-mode .ovulation-calendar-cell.is-next-period .ovulation-day-label,
html.dark-mode .ovulation-calendar-cell.is-future-period .ovulation-day-num,
html.dark-mode .ovulation-calendar-cell.is-future-period .ovulation-day-label {
	color: #ffffff;
}

html.dark-mode .ovulation-legend {
	background: #131314;
	border-color: #30343b;
	color: #d6dde7;
}

html.dark-mode .ovulation-legend i.is-period {
	background: #fda4af;
}

html.dark-mode .ovulation-legend i.is-fertile {
	background: #3b82f6;
}

html.dark-mode .ovulation-legend i.is-ovulation {
	background: #60a5fa;
}

html.dark-mode .ovulation-legend i.is-next-period {
	background: #fb7185;
}

