/* Timeline Board — spreadsheet / board style (refined neutral + accent) */
.tb-wrap {
	--tb-text: #1a1d21;
	--tb-text-muted: #5c6370;
	--tb-border: #dfe3e8;
	--tb-border-cell: #d1d5db;
	--tb-surface: #ffffff;
	--tb-surface-muted: #f7f8f9;
	--tb-input-bg: #fdfdfd;
	--tb-accent: #2563eb;
	--tb-accent-hover: #1d4ed8;
	--tb-accent-soft: rgba(37, 99, 235, 0.12);
	--tb-header-from: #343e4a;
	--tb-header-to: #252d36;
	--tb-radius: 4px;
	--tb-shadow: 0 1px 3px rgba(15, 23, 42, 0.07);
	--tb-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);

	font-size: 12px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--tb-text);
	line-height: 1.45;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
}
/* 메인 홈 미리보기: 정렬/필터 열 없음 */
.tb-wrap--home-preview {
	margin: 0;
}
.tb-list-head-row--static th {
	white-space: nowrap;
}
.tb-home-preview-more {
	margin-top: 10px;
	margin-bottom: 0;
}

/*
 * 메인 홈 [timeline_board_home] 미리보기만: 모바일에서는 닉네임·카테고리·PD·485승인·PD-485(일)만 표시.
 * 데스크톱(782px~)은 전체 열 유지.
 */
@media (max-width: 781px) {
	.tb-wrap--home-preview .tb-table-scroll {
		overflow-x: visible;
	}
	.tb-wrap--home-preview .tb-list-table--preview {
		min-width: 0 !important;
		width: 100%;
		table-layout: fixed;
	}
	/* 빈 상태 행(단일 colspan 셀)은 숨김 규칙에서 제외 */
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(1),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(4),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(5),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(6),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(8),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(9),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(10),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(11),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(12),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(13),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(14),
	.tb-wrap--home-preview .tb-list-table--preview tbody tr:not(.tb-preview-empty-row) > :nth-child(15),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(1),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(4),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(5),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(6),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(8),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(9),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(10),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(11),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(12),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(13),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(14),
	.tb-wrap--home-preview .tb-list-table--preview thead tr > :nth-child(15) {
		display: none !important;
	}
}
/* 데스크톱: 공유+리스트 래퍼는 레이아웃에 끼지 않음(각자 가로 스크롤) */
@media (min-width: 782px) {
	.tb-m-hsync {
		display: contents;
	}
}

/* 모바일: 내 타임라인 공유 폼 = 4열 그리드(가로 스크롤 없음). 리스트만 넓은 표 + 가로 스크롤 */
@media (max-width: 781px) {
	.tb-wrap {
		overflow-x: hidden;
		max-width: 100%;
		-webkit-text-size-adjust: 100%;
	}
	.tb-m-hsync {
		width: 100%;
		max-width: 100%;
		display: block;
		box-sizing: border-box;
		overflow-x: hidden;
		overflow-y: visible;
		overscroll-behavior-x: auto;
	}
	/* 공유하기 툴바: 뷰포트 너비에 맞춤 */
	.tb-m-hsync .tb-form-toolbar {
		min-width: 0;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		margin-bottom: 8px;
	}
	/* 데스크톱용 우측 추가하기 — 모바일에서는 그리드 마지막 칸(tb-mobile-add-row)만 사용 */
	.tb-m-hsync .tb-form-toolbar .tb-form-addbar {
		display: none;
	}
	/* 공유 입력 표만: 스크롤 없이 4×4 그리드(15필드 + 추가하기, PD-485·입력 열 숨김) */
	.tb-m-hsync .tb-table-scroll:not(.tb-list-outer) {
		display: block;
		min-width: 0;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow-x: visible;
		overflow-y: visible;
	}
	.tb-m-hsync .tb-msg {
		min-width: 0;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	.tb-m-hsync > .tb-heading {
		min-width: 0;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}
	/* 리스트: 한 컨테이너(.tb-list-vscroll)에서 가로+세로 스크롤 — 표는 고정 최소폭(100% 루프로 깨지지 않게 width:auto) */
	.tb-m-hsync .tb-list-outer {
		display: block;
		min-width: 0;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow: visible;
		touch-action: pan-x pan-y;
	}
	.tb-m-hsync .tb-list-outer .tb-list-vscroll {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		touch-action: pan-x pan-y;
	}
	.tb-m-hsync .tb-list-outer .tb-list-table {
		min-width: 1520px;
		width: auto;
		max-width: none;
	}

	/* 폼 그리드: 데스크톱용 열 고정폭(.tb-c-d 등) 해제 → 칸마다 1fr에 맞게 가로 꽉 참 */
	.tb-m-hsync .tb-form-table tbody .tb-c-nick,
	.tb-m-hsync .tb-form-table tbody .tb-c-cat,
	.tb-m-hsync .tb-form-table tbody .tb-c-fo,
	.tb-m-hsync .tb-form-table tbody .tb-c-d {
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
	}
	.tb-form-table {
		min-width: 0 !important;
		width: 100%;
		border-collapse: separate;
		border-spacing: 0;
	}
	.tb-form-table thead {
		display: none;
	}
	.tb-form-table tbody {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
		width: 100%;
		box-sizing: border-box;
	}
	.tb-form-table tbody tr.tb-input-row,
	.tb-form-table tbody tr.tb-mobile-add-row {
		display: contents;
	}
	.tb-form-table tbody td {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		min-width: 0;
		margin: 0;
		padding: 5px 5px;
		border: 1px solid var(--tb-border-cell);
		background: var(--tb-surface-muted);
		box-sizing: border-box;
		vertical-align: top;
	}
	.tb-form-table tbody td::before {
		content: attr(data-label);
		display: block;
		font-size: 10px;
		font-weight: 600;
		letter-spacing: 0.02em;
		color: var(--tb-text-muted);
		line-height: 1.2;
		margin-bottom: 3px;
		word-break: keep-all;
	}
	.tb-form-table tbody td:not([data-label])::before {
		display: none;
	}
	.tb-form-table .tb-c-mark,
	.tb-form-table .tb-c-pd485-placeholder {
		display: none !important;
	}
	.tb-form-table .tb-c-mobile-add::before {
		display: none !important;
	}
	.tb-form-table .tb-c-mobile-add {
		justify-content: stretch;
		padding: 2px;
	}
	.tb-form-table .tb-btn-add--in-grid {
		flex: 1 1 auto;
		width: 100%;
		min-height: 2.75rem;
		padding: 6px 8px;
		font-size: 13px;
		border-radius: 0;
		white-space: normal;
		text-align: center;
		line-height: 1.2;
	}
	.tb-form-table .tb-inp,
	.tb-form-table .tb-sel {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		font-size: 13px;
		border-radius: 0;
	}
}

.tb-heading {
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--tb-text);
	margin: 0 0 0.5rem;
}

/* 제목(좌) + 추가하기(우) 한 줄 */
.tb-form-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 6px;
	width: 100%;
	box-sizing: border-box;
}
.tb-form-toolbar .tb-heading {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.tb-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* 추가하기 버튼 (우측) */
.tb-form-addbar {
	width: auto;
	margin-bottom: 0;
	flex: 0 0 auto;
}
.tb-form-addbar-track {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-width: 0;
	box-sizing: border-box;
	padding: 0 0 2px;
}
.tb-btn-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 9px 20px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: #fff;
	background: linear-gradient(180deg, #3d7aed 0%, var(--tb-accent) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--tb-radius);
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
	box-shadow: var(--tb-shadow), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.tb-btn-add:hover {
	background: linear-gradient(180deg, #2f6fdf 0%, var(--tb-accent-hover) 100%);
	color: #fff;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.tb-btn-add:focus {
	outline: 2px solid var(--tb-accent-soft);
	outline-offset: 2px;
}
.tb-btn-add:active {
	transform: translateY(1px);
}
.tb-btn-add:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.tb-btn-add__icon {
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1;
}
.tb-btn-add__text {
	font-weight: 600;
}

/* 데스크톱: 모바일 전용「추가하기」행 숨김(한 줄 입력만 표시) */
.tb-form-table tr.tb-mobile-add-row {
	display: none;
}

/* 공유하기 / 리스트 / 관리자 공개 목록: 같은 class = 같은 셀·가로 최소(모바일 스크롤 시 너비 맞춤) */
.tb-form-table,
.tb-list-table,
.tb-admin-timeline-table {
	table-layout: fixed;
	width: 100%;
	min-width: 1520px;
}

/* 리스트: 가로(바깥) + 세로(안쪽) — 약 30행 보이고 나머지 스크롤 */
.tb-list-outer {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.tb-list-vscroll {
	max-height: min(78vh, calc(1.1rem * 30 + 4.2rem));
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	position: relative;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
	box-shadow: var(--tb-shadow);
}
.tb-list-more {
	display: flex;
	justify-content: flex-end;
	margin: 6px 0 10px;
	padding: 0 2px;
}
.tb-list-more-btn {
	display: inline-block;
	padding: 7px 16px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--tb-accent);
	background: var(--tb-surface);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	text-decoration: none;
	line-height: 1.2;
	box-shadow: var(--tb-shadow);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tb-list-more-btn:hover,
.tb-list-more-btn:focus {
	background: var(--tb-surface-muted);
	border-color: var(--tb-accent);
	color: var(--tb-accent-hover);
}
.tb-list-vscroll .tb-list-head-row--combined th {
	position: sticky;
	top: 0;
	z-index: 4;
	background: linear-gradient(180deg, var(--tb-header-from) 0%, var(--tb-header-to) 100%);
	vertical-align: top;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.tb-th-stack {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: stretch;
	min-width: 0;
}
.tb-th-inner {
	display: block;
	white-space: normal;
	line-height: 1.1;
}
.tb-th-txt {
	display: block;
	width: 100%;
	margin: 0;
	padding: 2px 1px;
	font: inherit;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	text-align: center;
	line-height: 1.15;
	white-space: normal;
}
.tb-th-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 2px 1px;
	font: inherit;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: center;
	line-height: 1.15;
}
.tb-th-btn:hover,
.tb-th-btn:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}
.tb-th-stack .tb-col-filter,
.tb-th-stack .tb-col-sortdir {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 2px 3px;
	font-size: 9px;
	line-height: 1.1;
	border: 1px solid var(--tb-border);
	border-radius: 2px;
	box-sizing: border-box;
	color: var(--tb-text);
	background: var(--tb-surface);
	min-height: 1.15rem;
	text-align: center;
	text-align-last: center;
}
.tb-th-filter-na {
	display: block;
	min-height: 1.1rem;
}
/* Match WP core .screen-reader-text when the theme does not provide it. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.tb-table {
	border-collapse: collapse;
	background: var(--tb-surface);
}

.tb-table th,
.tb-table td {
	border: 1px solid var(--tb-border-cell);
	padding: 3px 3px;
	vertical-align: middle;
	white-space: nowrap;
	text-align: center;
	font-size: 11px;
	line-height: 1.25;
}

.tb-table thead th {
	background: linear-gradient(180deg, var(--tb-header-from) 0%, var(--tb-header-to) 100%);
	color: #f8fafc;
	font-weight: 700;
	border-color: rgba(0, 0, 0, 0.2);
}

.tb-list-row:hover,
.tb-admin-timeline-table tbody tr:hover {
	background: rgba(37, 99, 235, 0.06);
}

/* WP Admin — 영주권승인 타임라인(공개 목록): 프론트와 동일 토큰·표·스크롤 박스 */
.wrap .tb-wrap--admin-public {
	margin-top: 6px;
	max-width: 100%;
	box-sizing: border-box;
}
.wrap .tb-wrap--admin-public .tb-heading {
	margin: 0 0 14px;
	font-size: 1.25rem;
}
.wrap .tb-wrap--admin-public .tb-admin-tools {
	margin: 0 0 16px;
	padding: 14px 16px;
	background: var(--tb-surface-muted);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow);
	box-sizing: border-box;
}
.wrap .tb-wrap--admin-public .tb-admin-tools__actions {
	margin: 0 0 10px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.wrap .tb-wrap--admin-public .tb-admin-tools__import {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}
.wrap .tb-wrap--admin-public .tb-admin-tools__hint {
	margin: 0 0 12px;
	max-width: 60rem;
	color: var(--tb-text-muted);
	font-size: 12px;
}
.wrap .tb-wrap--admin-public .tb-admin-search__row {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.wrap .tb-wrap--admin-public .tb-admin-tablenav {
	margin: 14px 0 0;
}
.wrap .tb-wrap--admin-pending {
	margin-top: 6px;
	max-width: 100%;
	box-sizing: border-box;
}
.wrap .tb-wrap--admin-pending .tb-admin-tablenav {
	margin: 14px 0 0;
}
/* WP 관리자 표: 변수 미적용·테마 간섭 시 헤더가 밝게 보이는 경우 대비 — 검은색 계열 고정 */
.wrap .tb-wrap--admin-pending .tb-admin-timeline-table thead th,
.wrap .tb-wrap--admin-public .tb-admin-timeline-table thead th {
	background: #111827 !important;
	background-image: none !important;
	color: #f3f4f6 !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
}
.tb-list-vscroll--admin thead th {
	position: sticky;
	top: 0;
	z-index: 4;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.wrap .tb-wrap--admin-public .tb-col-action,
.wrap .tb-wrap--admin-pending .tb-col-action {
	white-space: normal;
	vertical-align: middle;
}

.tb-input-row td {
	background: var(--tb-surface-muted);
}

/* 열 너비: .tb-wrap 안 입력표·리스트표 동일 클래스 동일 px */
.tb-wrap .tb-c-mark { width: 2.5rem; min-width: 2.5rem; max-width: 2.5rem; }
.tb-wrap .tb-c-num { width: 2.5rem; min-width: 2.5rem; max-width: 2.5rem; }
.tb-wrap .tb-c-nick { width: 5.5rem; min-width: 5.5rem; max-width: 5.5rem; }
.tb-wrap .tb-c-cat { width: 4.5rem; min-width: 4.5rem; max-width: 4.5rem; }
.tb-wrap .tb-c-fo { width: 5.25rem; min-width: 5.25rem; max-width: 5.25rem; }
/* 날짜 — 표시는 d/m/y라 열 폭 축소 (type=date 입력은 그대로) */
.tb-wrap .tb-c-d { width: 5.5rem; min-width: 5.5rem; max-width: 5.5rem; }
.tb-wrap .tb-c-pd485-h,
.tb-wrap .tb-c-pd485days { width: 3.25rem; min-width: 3.25rem; max-width: 3.25rem; }
.tb-wrap .tb-c-admin-created {
	width: 8.75rem;
	min-width: 8.75rem;
	max-width: 11rem;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.tb-wrap .tb-c-pd485-placeholder {
	color: #666;
}

.tb-col-small { width: 2.2rem; }
.tb-col-action { min-width: 4.75rem; }
.tb-num { text-align: center; }
.tb-empty, .tb-hint { color: #555; }

.tb-inp,
.tb-sel {
	font-size: 12px;
	padding: 4px 6px;
	border: 1px solid var(--tb-border);
	background: var(--tb-input-bg);
	min-width: 0;
	width: 100%;
	max-width: 10rem;
	box-sizing: border-box;
	text-align: center;
	color: var(--tb-text);
	border-radius: 2px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tb-wrap .tb-inp:focus,
.tb-wrap .tb-sel:focus {
	outline: none;
	border-color: var(--tb-accent);
	box-shadow: 0 0 0 3px var(--tb-accent-soft);
}

.tb-sel {
	max-width: 7rem;
	/* 선택된 옵션 텍스트 가운데 (select는 text-align만으로는 부족한 브라우저 대응) */
	text-align-last: center;
}

/* 공유 폼 카테고리: OS 기본 둥근 select 제거 → 입력칸과 같은 직각 네모 */
.tb-form-table .tb-sel {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: 0;
	background-color: var(--tb-input-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23444' d='M1 1.5L6 6l5-4.5' stroke='%23444' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 6px center;
	padding-right: 1.35rem;
}

/* 날짜 텍스트 yy/mm/dd (26/02/01) — 값·placeholder 가운데 정렬 */
.tb-wrap .tb-inp.tb-dmy,
.tb-wrap input.tb-dmy,
.tb-edit-form input.tb-dmy {
	max-width: 100%;
	width: 100%;
	min-height: 1.55rem;
	font-variant-numeric: tabular-nums;
}
.tb-wrap .tb-c-d .tb-dmy,
.tb-wrap .tb-c-d input.tb-dmy {
	text-align: center;
}
.tb-wrap input.tb-dmy::placeholder {
	text-align: center;
	color: var(--tb-text-muted);
	opacity: 0.85;
}
.tb-wrap input.tb-dmy::-webkit-input-placeholder {
	text-align: center;
}
.tb-wrap input.tb-dmy::-moz-placeholder {
	text-align: center;
}
.tb-edit-form input.tb-dmy {
	text-align: center;
}
.tb-edit-form input.tb-dmy::placeholder {
	text-align: center;
}

.tb-btn {
	font-size: 13px;
	padding: 5px 12px;
	background: #0073aa;
	color: #fff;
	border: 1px solid #006298;
	border-radius: 2px;
	cursor: pointer;
	font-weight: 500;
	white-space: nowrap;
}
.tb-btn:hover { background: #006291; }
.tb-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.tb-msg {
	margin: 0.5rem 0 0.75rem;
	padding: 10px 12px;
	background: linear-gradient(180deg, #f4f7fc 0%, #eef3f9 100%);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow);
	font-size: 12px;
	color: var(--tb-text);
}
.tb-msg-err {
	background: linear-gradient(180deg, #fdf5f5 0%, #faeeee 100%);
	border-color: #e5bcbc;
	color: #5c2a2a;
}

/* 영주권 평균 소요일 — PC 전체 가로, 2행×(라벨+셀렉트) 그리드 정렬 */
.tb-avg-panel-wrap {
	width: 100%;
	max-width: 100%;
	margin: 0.75rem 0 1.25rem;
	padding: 0;
	box-sizing: border-box;
}
.tb-avg-panel {
	margin-top: 0;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	padding: 14px 16px;
	background: var(--tb-surface-muted);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow);
	text-align: center;
}
.tb-avg-panel__title {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--tb-text);
}
.tb-avg-panel__hint {
	margin: 0 auto 14px;
	max-width: 100%;
	font-size: 0.8rem;
	color: var(--tb-text-muted);
	line-height: 1.45;
}
.tb-avg-panel__grid {
	display: grid;
	grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr) minmax(4.5rem, auto) minmax(0, 1fr);
	gap: 10px 16px;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	text-align: start;
}
.tb-avg-label {
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--tb-text);
	justify-self: end;
	padding-right: 2px;
}
.tb-avg-sel {
	font-size: 0.8rem;
	min-width: 0;
	width: 100%;
	max-width: none;
	padding: 6px 8px;
	border: 1px solid var(--tb-border);
	border-radius: 2px;
	background: var(--tb-input-bg);
	color: var(--tb-text);
	box-sizing: border-box;
	justify-self: stretch;
	text-align: center;
	text-align-last: center;
}
.tb-avg-panel__result {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--tb-border);
	text-align: center;
}
.tb-avg-out {
	font-size: 1.15rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--tb-accent);
	letter-spacing: 0.02em;
	min-height: 1.4em;
	display: inline-block;
}
@media (max-width: 640px) {
	.tb-avg-panel__grid {
		grid-template-columns: minmax(0, auto) 1fr;
		gap: 8px 10px;
	}
	.tb-avg-label {
		justify-self: start;
		padding-right: 0;
	}
}

/* 평균 소요일 바로 아래 — 제보·참고용 안내([timeline_board] / [timeline_board_mobile] 끝) */
.tb-data-disclaimer {
	margin: 0.75rem 0 0;
	padding: 0;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #6c6c6c;
	max-width: 60rem;
}

/* 관리자 수정 폼 날짜 너비 */
.tb-edit-form .tb-inp.tb-dmy {
	max-width: 9rem;
	width: 9rem;
}

/* 관리자 수정: 엑셀 느낌 가운데 정렬 */
.tb-edit-form .form-table th,
.tb-edit-form .form-table td {
	text-align: center;
	vertical-align: middle;
}
.tb-edit-form .regular-text,
.tb-edit-form select {
	text-align: center;
}

@media (max-width: 600px) {
	.tb-table { font-size: 12px; }
	.tb-inp, .tb-sel { max-width: none; }
	.tb-wrap .tb-c-d { min-width: 7.5rem; max-width: none; }
}
