﻿/*_______________________________________________________________________________________________________________
 * |                                                                                                             |
 * |  ████████╗  ██████╗   ██████╗  ██╗      ███╗   ██╗ ███████╗ ███████╗ ████████╗        ███╗   ███╗ ██████╗   |
 * |  ╚══██╔══╝ ██╔═══██╗ ██╔═══██╗ ██║      ████╗  ██║ ██╔════╝ ██╔════╝ ╚══██╔══╝        ████╗ ████║ ██╔══██╗  |
 * |     ██║    ██║   ██║ ██║   ██║ ██║      ██╔██╗ ██║ █████╗   ███████╗    ██║    █████╗ ██╔████╔██║ ██████╔╝  |
 * |     ██║    ██║   ██║ ██║   ██║ ██║      ██║╚██╗██║ ██╔══╝   ╚════██║    ██║    ╚════╝ ██║╚██╔╝██║ ██╔═══╝   |
 * |     ██║    ╚██████╔╝ ╚██████╔╝ ███████╗ ██║ ╚████║ ███████╗ ███████║    ██║           ██║ ╚═╝ ██║ ██║       |
 * |     ╚═╝     ╚═════╝   ╚═════╝  ╚══════╝ ╚═╝  ╚═══╝ ╚══════╝ ╚══════╝    ╚═╝           ╚═╝     ╚═╝ ╚═╝       |
 * |                                                                                                             |
 * |    ███╗   ███╗  █████╗  ███╗   ███╗ ███████╗ ██████╗  ██╗ ███╗   ██╗      ██████╗  ██████╗  ███╗   ███╗     |
 * |    ████╗ ████║ ██╔══██╗ ████╗ ████║ ██╔════╝ ██╔══██╗ ██║ ████╗  ██║     ██╔════╝ ██╔═══██╗ ████╗ ████║     |
 * |    ██╔████╔██║ ███████║ ██╔████╔██║ █████╗   ██████╔╝ ██║ ██╔██╗ ██║     ██║      ██║   ██║ ██╔████╔██║     |
 * |    ██║╚██╔╝██║ ██╔══██║ ██║╚██╔╝██║ ██╔══╝   ██╔═══╝  ██║ ██║╚██╗██║     ██║      ██║   ██║ ██║╚██╔╝██║     |
 * |    ██║ ╚═╝ ██║ ██║  ██║ ██║ ╚═╝ ██║ ███████╗ ██║      ██║ ██║ ╚████║ ██╗ ╚██████╗ ╚██████╔╝ ██║ ╚═╝ ██║     |
 * |    ╚═╝     ╚═╝ ╚═╝  ╚═╝ ╚═╝     ╚═╝ ╚══════╝ ╚═╝      ╚═╝ ╚═╝  ╚═══╝ ╚═╝  ╚═════╝  ╚═════╝  ╚═╝     ╚═╝     |
 * |                                                                                                             |
 * |                                                                                                             |
 * |                                 (C) 2021- mamepin.com - ALL RIGHTS RESERVED                                 |
 * |                                         Unauthorized use prohibited                                         |
 * |_____________________________________________________________________________________________________________|
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

.tnm-days-diff {
	--tnm-text: #111827;
	--tnm-muted: #4b5563;
	--tnm-soft-muted: #9ca3af;
	--tnm-border: #e5e7eb;
	--tnm-surface: #ffffff;
	--tnm-page: #f9fafb;
	--tnm-primary: #2563eb;
	--tnm-primary-dark: #1d4ed8;
	--tnm-primary-soft: #eff6ff;
	--tnm-primary-contrast-soft: #dbeafe;
	--tnm-primary-border-soft: #bfdbfe;
	--tnm-focus: #3b82f6;
	--tnm-focus-shadow: rgba(59, 130, 246, 0.18);
	--tnm-primary-shadow: rgba(37, 99, 235, 0.3);
	--tnm-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
	--tnm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	position: relative;
	isolation: isolate;
	margin: 0 auto;
	padding: 40px 16px 80px;
	color: var(--tnm-text);
	font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.tnm-days-diff::before {
	content: '';
	position: absolute;
	top: 0;
	right: 50%;
	bottom: 0;
	left: 50%;
	z-index: -1;
	margin-right: -50vw;
	margin-left: -50vw;
	background: var(--tnm-page);
}

.tnm-days-diff *,
.tnm-days-diff *::before,
.tnm-days-diff *::after {
	box-sizing: border-box;
}

.tnm-days-diff__shell {
	max-width: 896px;
	margin: 0 auto;
	padding: 0;
}

.tnm-days-diff__calculator-wrap {
	max-width: 448px;
	margin: 0 auto;
}

.tnm-days-diff__card {
	overflow: hidden;
	border: 1px solid #f3f4f6;
	border-radius: 24px;
	background: var(--tnm-surface);
	box-shadow: var(--tnm-shadow-lg);
}

.tnm-days-diff__hero {
	padding: 24px;
	background: var(--tnm-primary);
	color: #ffffff;
	text-align: center;
}

.tnm-days-diff__hero-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.tnm-days-diff__badge {
	display: none;
}

.tnm-days-diff__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.35;
}

.tnm-days-diff__subtitle {
	margin: 4px 0 0;
	font-size: 0.75rem;
	color: var(--tnm-primary-contrast-soft);
}

.tnm-days-diff__body {
	padding: 24px;
	background: var(--tnm-surface);
}

.tnm-days-diff__fields {
	display: grid;
	gap: 14px;
}

.tnm-days-diff__label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #374151;
}

.tnm-days-diff__label-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
}

.tnm-days-diff__label-row .tnm-days-diff__label {
	margin-bottom: 0;
}

.tnm-days-diff__field-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--tnm-border);
	border-radius: 10px;
	background: #ffffff;
	color: var(--tnm-muted);
	box-shadow: var(--tnm-shadow-sm);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tnm-days-diff__field-reset:hover {
	border-color: var(--tnm-primary-border-soft);
	background: var(--tnm-primary-soft);
	color: var(--tnm-primary-dark);
}

.tnm-days-diff__field-reset:focus-visible {
	outline: none;
	border-color: var(--tnm-focus);
	box-shadow: 0 0 0 3px var(--tnm-focus-shadow);
}

.tnm-days-diff__field-reset-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.tnm-days-diff__input {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	background: #ffffff;
	color: var(--tnm-text);
	font-size: 16px;
	box-shadow: var(--tnm-shadow-sm);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tnm-days-diff__input:focus {
	outline: none;
	border-color: var(--tnm-focus);
	box-shadow: 0 0 0 3px var(--tnm-focus-shadow);
}

.tnm-days-diff__shift-inputs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
}

.tnm-days-diff__input--shift-number {
	min-width: 0;
}

.tnm-days-diff__input--shift-direction {
	min-width: 110px;
	width: auto;
}

.tnm-days-diff__hint {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--tnm-soft-muted);
}

.tnm-days-diff__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--tnm-muted);
	cursor: pointer;
}

.tnm-days-diff__field--weekday {
	display: grid;
	gap: 8px;
}

.tnm-days-diff__weekday-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.tnm-days-diff__toggle--holiday {
	flex: 0 0 100%;
}

.tnm-days-diff__checkbox {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--tnm-primary);
	flex: 0 0 auto;
}

.tnm-days-diff__button,
.tnm-days-diff__copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border-radius: 16px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tnm-days-diff__button {
	border: 0;
	color: #ffffff;
	background: var(--tnm-primary);
	box-shadow: 0 10px 20px var(--tnm-primary-shadow);
}

.tnm-days-diff__button:hover {
	background: var(--tnm-primary-dark);
}

.tnm-days-diff__admin-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	box-shadow: var(--tnm-shadow-sm);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	flex: 0 0 auto;
}

.tnm-days-diff__admin-reset:hover {
	border-color: rgba(255, 255, 255, 0.65);
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.tnm-days-diff__admin-reset:focus-visible {
	outline: none;
	border-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.tnm-days-diff__admin-reset-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.tnm-days-diff__button:active,
.tnm-days-diff__copy:active {
	transform: scale(0.98);
}


.tnm-days-diff__result {
	margin-top: 32px;
	animation: tnm-days-diff-fade-in 0.2s ease;
}

.tnm-days-diff__result-card {
	padding: 24px;
	border: 1px solid var(--tnm-primary-contrast-soft);
	border-radius: 24px;
	background: var(--tnm-primary-soft);
	text-align: center;
}

.tnm-days-diff__loading {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 156px;
	color: var(--tnm-primary-dark);
}

.tnm-days-diff__loading-spinner {
	position: relative;
	width: 54px;
	height: 54px;
	border: 4px solid rgba(255, 255, 255, 0.6);
	border-top-color: var(--tnm-primary);
	border-right-color: var(--tnm-primary-dark);
	border-radius: 50%;
	animation: tnm-days-diff-spin 0.72s linear infinite;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.tnm-days-diff__loading-spinner::after {
	content: '';
	position: absolute;
	top: 2px;
	right: 4px;
	width: 12px;
	height: 12px;
	border-top: 4px solid var(--tnm-primary-dark);
	border-right: 4px solid var(--tnm-primary-dark);
	border-radius: 2px;
	transform: rotate(15deg);
}

.tnm-days-diff__loading-text {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--tnm-primary-dark);
}

.tnm-days-diff__result--loading .tnm-days-diff__loading {
	display: flex;
}

.tnm-days-diff__result--loading .tnm-days-diff__result-heading,
.tnm-days-diff__result--loading .tnm-days-diff__result-row,
.tnm-days-diff__result--loading .tnm-days-diff__result-sub,
.tnm-days-diff__result--loading .tnm-days-diff__result-breakdown,
.tnm-days-diff__result--loading .tnm-days-diff__result-detail-button,
.tnm-days-diff__result--loading .tnm-days-diff__actions {
	display: none;
}

.tnm-days-diff__result-heading {
	margin: 0 0 8px;
	color: #1e40af;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tnm-days-diff__result-row {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
}

.tnm-days-diff__result-number {
	font-size: clamp(56px, 10vw, 72px);
	font-weight: 900;
	line-height: 1;
	color: var(--tnm-primary-dark);
}

.tnm-days-diff__result-unit {
	margin-bottom: 8px;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e40af;
}

.tnm-days-diff__result-sub {
	margin: 12px 0 0;
	color: var(--tnm-primary);
	font-size: 14px;
	font-weight: 500;
	opacity: 0.8;
}

.tnm-days-diff__result-breakdown {
	margin: 12px 0 0;
	color: var(--tnm-primary);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.7;
	opacity: 0.76;
}

.tnm-days-diff__result-detail-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-top: 12px;
	padding: 10px 16px;
	border: 1px solid var(--tnm-primary-border-soft);
	border-radius: 999px;
	background: #ffffff;
	color: var(--tnm-primary-dark);
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tnm-days-diff__result-detail-button:hover {
	border-color: #93c5fd;
	background: var(--tnm-primary-contrast-soft);
	color: #1e40af;
}

.tnm-days-diff__result-detail-button:focus-visible {
	outline: none;
	border-color: var(--tnm-focus);
	box-shadow: 0 0 0 3px var(--tnm-focus-shadow);
}

.tnm-days-diff__copy {
	gap: 8px;
	border: 1px solid var(--tnm-border);
	color: #374151;
	background: #ffffff;
	box-shadow: var(--tnm-shadow-sm);
}

.tnm-days-diff__copy:hover {
	background: #f9fafb;
}

.tnm-days-diff__copy-icon {
	font-size: 1rem;
}

.tnm-days-diff__actions {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.tnm-days-diff__content {
	max-width: 768px;
	margin: 64px auto 0;
	color: #374151;
	line-height: 1.75;
}

.tnm-days-diff__divider {
	margin: 0 0 48px;
	border: 0;
	border-top: 1px solid var(--tnm-border);
}

.tnm-days-diff__section-head h3,
.tnm-days-diff__faq h3,
.tnm-days-diff__info-card h4 {
	margin: 0;
}

.tnm-days-diff__section-head h3,
.tnm-days-diff__faq h3 {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	color: #1f2937;
}

.tnm-days-diff__section-head p {
	margin: 0;
	text-align: center;
	color: #4b5563;
}

.tnm-days-diff__section-head p + p {
	margin-top: 0;
}

.tnm-days-diff__section-head {
	display: grid;
	gap: 12px;
	margin-bottom: 40px;
}

.tnm-days-diff__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 40px;
}

.tnm-days-diff__info-card {
	padding: 20px;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: var(--tnm-shadow-sm);
}

.tnm-days-diff__info-card h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	font-weight: 700;
}

.tnm-days-diff__card-icon {
	font-size: 1rem;
}

.tnm-days-diff__info-card--blue h4 {
	color: #2563eb;
}

.tnm-days-diff__info-card--green h4 {
	color: #16a34a;
}

.tnm-days-diff__info-card--yellow h4 {
	color: #ca8a04;
}

.tnm-days-diff__info-card--purple h4 {
	color: #9333ea;
}


.tnm-days-diff__info-card--red h4 {
	color: #dc2626;
}

.tnm-days-diff__info-card--orange h4 {
	color: #ea580c;
}

.tnm-days-diff__info-card--teal h4 {
	color: #0d9488;
}

.tnm-days-diff__info-card--pink h4 {
	color: #db2777;
}


.tnm-days-diff__info-card p {
	margin: 10px 0 0;
	font-size: 0.875rem;
	color: #374151;
	line-height: 1.7;
}

.tnm-days-diff__cross-link {
	margin-top: -24px;
	margin-bottom: 24px;
	padding: 16px 20px;
	border: 1px solid #bfdbfe;
	border-radius: 18px;
	background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
	box-shadow: var(--tnm-shadow-sm);
}

.tnm-days-diff__cross-link p {
	margin: 0;
	font-size: 0.9375rem;
	color: #1e3a8a;
	line-height: 1.8;
}

.tnm-days-diff__cross-link a {
	font-weight: 700;
	color: #1d4ed8;
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.tnm-days-diff__cross-link a:hover,
.tnm-days-diff__cross-link a:focus-visible {
	color: #1e40af;
}

.tnm-days-diff__faq {
	padding: 24px;
	border-radius: 24px;
	background: #f3f4f6;
}

.tnm-days-diff__faq dl {
	margin: 16px 0 0;
}

.tnm-days-diff__faq-item + .tnm-days-diff__faq-item {
	margin-top: 16px;
}

.tnm-days-diff__faq dt {
	display: grid;
	grid-template-columns: 2em minmax(0, 1fr);
	column-gap: 0.2em;
	font-size: 0.875rem;
	font-weight: 700;
	color: #1f2937;
}

.tnm-days-diff__faq dd {
	margin: 8px 0 0;
	display: grid;
	grid-template-columns: 2em minmax(0, 1fr);
	column-gap: 0.2em;
	font-size: 0.875rem;
	color: #4b5563;
	line-height: 1.75;
}

.tnm-days-diff__faq-label {
	display: inline-block;
	font-weight: 700;
}

.tnm-days-diff__faq-text {
	min-width: 0;
}

.tnm-days-diff__holiday-note {
	margin-top: 24px;
	padding: 20px;
	border: 1px solid #d1d5db;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: var(--tnm-shadow-sm);
}

.tnm-days-diff__holiday-note h4 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #1f2937;
}

.tnm-days-diff__holiday-note p {
	margin: 12px 0 0;
	font-size: 0.875rem;
	color: #4b5563;
	line-height: 1.75;
}

.tnm-days-diff__holiday-note ul {
	margin: 12px 0 0;
	padding-left: 1.25rem;
	color: #374151;
}

.tnm-days-diff__holiday-note li + li {
	margin-top: 10px;
}

.tnm-days-diff__holiday-note li {
	font-size: 0.875rem;
	line-height: 1.75;
}

.tnm-days-diff__dialog {
	width: min(92vw, 420px);
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: transparent;
	box-shadow: var(--tnm-shadow-lg);
}

.tnm-days-diff__dialog::backdrop {
	background: rgba(17, 24, 39, 0.48);
}

.tnm-days-diff__dialog--details::backdrop {
	background: transparent;
}

.tnm-days-diff__dialog-panel {
	position: relative;
	padding: 24px;
	border-radius: 20px;
	background: #ffffff;
}

.tnm-days-diff__dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.tnm-days-diff__dialog--movable {
	position: fixed;
	inset: auto;
}

.tnm-days-diff__dialog--movable .tnm-days-diff__dialog-header {
	cursor: grab;
	user-select: none;
	touch-action: none;
}

.tnm-days-diff__dialog--movable .tnm-days-diff__dialog-header--dragging {
	cursor: grabbing;
}

.tnm-days-diff__dialog-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
}

.tnm-days-diff__dialog-close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #ffffff;
	color: #4b5563;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tnm-days-diff__dialog-close:hover {
	border-color: var(--tnm-primary-border-soft);
	background: var(--tnm-primary-soft);
	color: var(--tnm-primary-dark);
}

.tnm-days-diff__dialog-close:focus-visible {
	outline: none;
	border-color: var(--tnm-focus);
	box-shadow: 0 0 0 3px var(--tnm-focus-shadow);
}

.tnm-days-diff__dialog-message {
	margin: 8px 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #4b5563;
}

.tnm-days-diff__copy-options {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.tnm-days-diff__copy-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #f9fafb;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tnm-days-diff__copy-option:hover {
	border-color: var(--tnm-primary-border-soft);
	background: var(--tnm-primary-soft);
}

.tnm-days-diff__copy-option:has(input:focus-visible) {
	border-color: var(--tnm-focus);
	box-shadow: 0 0 0 3px var(--tnm-focus-shadow);
	background: var(--tnm-primary-soft);
}

.tnm-days-diff__copy-option-body {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.tnm-days-diff__copy-option-title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #111827;
}

.tnm-days-diff__copy-option-hint {
	font-size: 0.8125rem;
	line-height: 1.6;
	color: #6b7280;
}

.tnm-days-diff__copy-preview {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #eef2f7;
}

.tnm-days-diff__copy-preview-label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: #6b7280;
}

.tnm-days-diff__copy-preview-body {
	margin: 8px 0 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: #f3f4f6;
	color: #6b7280;
	font-family: 'Inter', 'Noto Sans JP', sans-serif;
	font-size: 0.75rem;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 16.8em;
	overflow-x: hidden;
	overflow-y: auto;
}

.tnm-days-diff__dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #eef2f7;
}

.tnm-days-diff__dialog-button {
	min-width: 112px;
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--tnm-primary);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
}

.tnm-days-diff__dialog-button:hover {
	background: var(--tnm-primary-dark);
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__dialog-panel {
	padding: 20px;
	border-radius: 18px;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__dialog-header {
	gap: 12px;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__dialog-title {
	font-size: 0.9375rem;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__dialog-close {
	width: 32px;
	height: 32px;
	font-size: 1.375rem;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__dialog-message {
	margin-top: 6px;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__copy-options {
	gap: 8px;
	margin-top: 12px;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__copy-option {
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__copy-option-body {
	gap: 2px;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__copy-option-title {
	font-size: 0.875rem;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__copy-option-hint {
	font-size: 0.75rem;
	line-height: 1.45;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__dialog-actions {
	margin-top: 12px;
	padding-top: 12px;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__dialog-button {
	min-height: 40px;
	padding: 9px 16px;
	font-size: 0.8125rem;
}

.tnm-days-diff__dialog[data-role="copy-options-dialog"] .tnm-days-diff__copy-preview {
	margin-top: 12px;
	padding-top: 12px;
}

.tnm-days-diff__dialog-button--secondary {
	background: #e5eefc;
	color: var(--tnm-primary-dark);
}

.tnm-days-diff__dialog-button--secondary:hover {
	background: var(--tnm-primary-contrast-soft);
}

.tnm-days-diff__dialog--details {
	width: fit-content;
	height: fit-content;
	max-width: 96vw;
	margin: 0;
	overflow: visible;
}

.tnm-days-diff__dialog--details .tnm-days-diff__dialog-panel {
	display: flex;
	flex-direction: column;
	width: min(92vw, 520px);
	min-width: 320px;
	max-width: 96vw;
	min-height: 320px;
	max-height: 88vh;
	resize: both;
	overflow: hidden;
}

.tnm-days-diff__dialog--details .tnm-days-diff__dialog-header,
.tnm-days-diff__dialog--details .tnm-days-diff__dialog-message,
.tnm-days-diff__dialog--details .tnm-days-diff__excluded-tabs,
.tnm-days-diff__dialog--details .tnm-days-diff__dialog-actions {
	flex-shrink: 0;
}

.tnm-days-diff__dialog-message--empty {
	margin-top: 10px;
	margin-bottom: 0;
}

.tnm-days-diff__excluded-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin: 10px 0 0;
	overflow-x: auto;
	overflow-y: hidden;
	border-bottom: 1px solid #cfd8e3;
	padding-right: 12px;
}

.tnm-days-diff__excluded-tab {
	position: relative;
	flex: 0 0 auto;
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid #cfd8e3;
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: #e9eff6;
	color: #475569;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	margin-right: -1px;
}

.tnm-days-diff__excluded-tab:hover {
	border-color: var(--tnm-primary-border-soft);
	background: var(--tnm-primary-soft);
	color: var(--tnm-primary-dark);
}

.tnm-days-diff__excluded-tab--active {
	border-color: var(--tnm-primary);
	background: #ffffff;
	color: var(--tnm-primary-dark);
	z-index: 1;
	box-shadow: 0 1px 0 #ffffff;
}

.tnm-days-diff__excluded-list {
	flex: 1 1 auto;
	margin: 10px 0 0;
	min-height: 0;
	padding: 0;
	list-style: none;
	max-height: none;
	overflow-y: auto;
	color: #374151;
	text-align: left;
}

.tnm-days-diff__excluded-list li + li {
	margin-top: 6px;
}

.tnm-days-diff__excluded-list li {
	font-size: 0.9rem;
	line-height: 1.55;
}

.tnm-days-diff__excluded-list-item {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.tnm-days-diff__excluded-list-item--included {
	border-color: #d1d5db;
	background: #ffffff;
	opacity: 0.72;
}

.tnm-days-diff__excluded-list-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 10px;
	cursor: pointer;
}

.tnm-days-diff__excluded-list-text {
	flex: 1 1 auto;
	word-break: break-word;
}

@media (max-width: 640px) {
	.tnm-days-diff__dialog--details .tnm-days-diff__dialog-panel {
		width: 92vw;
		min-width: 0;
		min-height: 0;
		resize: none;
	}

	.tnm-days-diff__dialog-actions {
		flex-wrap: wrap;
	}

	.tnm-days-diff__dialog-button {
		flex: 1 1 0;
	}

	.tnm-days-diff__excluded-tab {
		flex: 0 0 auto;
	}
}

.tnm-days-diff__content--test {
	margin-top: 0;
	max-width: 100%;
}

.tnm-days-diff__test-card {
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: var(--tnm-shadow-sm);
}

.tnm-days-diff__test-card h3,
.tnm-days-diff__test-case h4 {
	margin: 0;
	color: #111827;
}

.tnm-days-diff__test-card p,
.tnm-days-diff__test-meta {
	margin: 12px 0 0;
	font-size: 0.875rem;
	line-height: 1.75;
	color: #4b5563;
}

.tnm-days-diff__test-label {
	font-weight: 700;
	color: #1f2937;
}

.tnm-days-diff__test-example {
	overflow-x: auto;
	margin: 12px 0 0;
	padding: 16px;
	border-radius: 16px;
	background: #111827;
	color: #f9fafb;
	font-size: 0.8125rem;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
}

.tnm-days-diff__test-case {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.tnm-days-diff__test-table-wrap {
	overflow-x: auto;
	margin-top: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
}

.tnm-days-diff__test-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
}

.tnm-days-diff__test-table th,
.tnm-days-diff__test-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
	text-align: left;
	font-size: 0.875rem;
}

.tnm-days-diff__test-table th {
	background: #f9fafb;
	font-weight: 700;
	color: #1f2937;
	white-space: nowrap;
}

.tnm-days-diff__test-table tbody tr:last-child td {
	border-bottom: 0;
}

.tnm-days-diff__test-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
}

.tnm-days-diff__test-status--ok {
	background: #dcfce7;
	color: #166534;
}

.tnm-days-diff__test-status--unavailable {
	background: #fef3c7;
	color: #92400e;
}

.tnm-days-diff__test-status--error {
	background: #fee2e2;
	color: #b91c1c;
}

.tnm-days-diff__test-holidays {
	margin: 0;
	padding-left: 1.25rem;
	color: #374151;
}

.tnm-days-diff__test-holidays li + li {
	margin-top: 6px;
}

.tnm-days-diff__test-muted {
	color: #9ca3af;
}

.tnm-days-diff [hidden] {
	display: none !important;
}

@keyframes tnm-days-diff-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes tnm-days-diff-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	.tnm-days-diff {
		padding: 32px 4px 64px;
	}

	.tnm-days-diff__weekday-options {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px 10px;
	}

	.tnm-days-diff__toggle--holiday {
		flex-basis: auto;
	}

	.tnm-days-diff__hero-head {
		gap: 10px;
	}

	.tnm-days-diff__body,
	.tnm-days-diff__hero,
	.tnm-days-diff__faq {
		padding: 20px;
	}

	.tnm-days-diff__content {
		margin-top: 48px;
	}

	.tnm-days-diff__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.tnm-days-diff__divider {
		margin-bottom: 40px;
	}

	.tnm-days-diff__section-head h3,
	.tnm-days-diff__faq h3 {
		font-size: 1.375rem;
	}
}
