:root {
	color-scheme: dark;
	--seat-bg: #090d16;
	--seat-panel: rgba(20, 28, 44, .94);
	--seat-panel-soft: rgba(255, 255, 255, .045);
	--seat-line: rgba(255, 255, 255, .1);
	--seat-text: #f7f9ff;
	--seat-muted: #9ca8bd;
	--seat-accent: #ffcc4d;
	--line: var(--seat-line);
	--muted: var(--seat-muted);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 20px;
}

body {
	margin: 0;
}

a {
	color: inherit;
}

button,
input,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

p {
	margin: 8px 0;
	line-height: 1.65;
}

h2 {
	margin: 0 0 12px;
	font-size: 23px;
	letter-spacing: -.03em;
}

h3 {
	margin: 0;
	font-size: 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--seat-accent);
	outline-offset: 4px;
}

/* Page layout */
.seat-page-body {
	min-height: 100vh;
	color: var(--seat-text);
	background: radial-gradient(circle at 10% 0%, rgba(255, 176, 66, .14), transparent 28rem), radial-gradient(circle at 90% 10%, rgba(72, 137, 255, .12), transparent 30rem), var(--seat-bg);
	font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
}

.seat-page {
	width: min(1180px, calc(100% - 28px));
	margin: 0 auto;
	padding: 34px 0 28px;
}

.skip {
	position: fixed;
	top: -80px;
	left: 15px;
	z-index: 10;
	padding: 12px;
	color: #181c16;
	background: var(--seat-accent);
}

.skip:focus {
	top: 10px;
}

.seat-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
	gap: 24px;
	margin-bottom: 20px;
	padding: 28px 30px;
	border: 1px solid var(--seat-line);
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(31, 40, 60, .96), rgba(15, 21, 34, .96));
	box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.seat-hero::after {
	position: absolute;
	right: -80px;
	bottom: -130px;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: rgba(255, 198, 71, .09);
	content: "";
	pointer-events: none;
}

.seat-hero-copy {
	position: relative;
	z-index: 1;
}

.seat-eyebrow {
	margin: 0 0 7px;
	color: var(--seat-accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .16em;
}

.seat-hero h1 {
	margin: 0;
	font-size: clamp(28px, 5vw, 46px);
	letter-spacing: -.04em;
}

.seat-hero-copy>p:last-child {
	margin: 10px 0 0;
	color: var(--seat-muted);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
}

.section-heading h2 {
	margin-bottom: 0;
}

.section-heading .seat-eyebrow {
	font-size: 11px;
}

.panel {
	min-width: 0;
	margin-bottom: 20px;
	padding: 24px;
	border: 1px solid var(--seat-line);
	border-radius: 20px;
	background: var(--seat-panel);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.value-footer {
	width: min(1180px, calc(100% - 28px));
	margin: auto;
	padding: 0 0 38px;
	color: var(--seat-muted);
	font-size: 12px;
	text-align: center;
}

.value-footer strong {
	color: var(--seat-text);
}

/* Navigation */
.seat-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 18px 0 12px;
}

.value-tabs {
	grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
	margin: 18px 0;
}

.seat-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 58px;
	padding: 10px 14px;
	border: 1px solid var(--seat-line);
	border-radius: 16px;
	color: var(--seat-muted);
	background: var(--seat-panel);
	font-weight: 750;
	text-decoration: none;
	transition: border-color .16s ease, color .16s ease, transform .16s ease, background .16s ease;
}

.seat-tab:hover {
	color: var(--seat-text);
	border-color: rgba(255, 204, 77, .36);
	transform: translateY(-1px);
}

.seat-tab.is-active {
	color: #2b2107;
	border-color: transparent;
	background: linear-gradient(135deg, var(--seat-accent), #ffae4a);
	box-shadow: 0 10px 28px rgba(255, 174, 74, .18);
}

/* Search and filters */
.toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
	padding: 12px;
	border: 1px solid var(--seat-line);
	border-radius: 18px;
	background: rgba(13, 18, 29, .88);
}

input,
select,
.reset {
	max-width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--seat-line);
	border-radius: 11px;
	color: var(--seat-text);
	background: var(--seat-panel-soft);
}

select option {
	background: #141c2c;
}

.toolbar input {
	flex: 1;
	min-width: 180px;
}

input::placeholder {
	color: var(--seat-muted);
}

.reset:hover {
	background: rgba(255, 255, 255, .09);
}

.shop-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.shop-buttons button,
.voyage-shop-buttons a {
	padding: 8px 14px;
	border: 1px solid var(--seat-line);
	border-radius: 999px;
	color: var(--seat-muted);
	background: var(--seat-panel);
	font-size: 13px;
}

.voyage-shop-buttons a {
	display: inline-flex;
	align-items: center;
	line-height: normal;
	text-decoration: none;
}

.shop-buttons button[aria-pressed="true"],
.voyage-shop-buttons a[aria-current="page"] {
	color: #2b2107;
	border-color: transparent;
	background: linear-gradient(135deg, var(--seat-accent), #ffae4a);
	font-weight: 800;
}

.voyage-shop-buttons a:hover {
	filter: brightness(1.08);
}

.count {
	margin: 0 0 10px;
	color: var(--seat-muted);
	font-size: 13px;
}

.table-hint {
	margin-bottom: 12px;
	font-size: 11px;
}

/* Tables */
.scroll,
.table-shell {
	overflow: auto;
	border: 1px solid var(--seat-line);
	border-radius: 20px;
	background: rgba(20, 28, 44, .92);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
	scrollbar-color: rgba(255, 204, 77, .45) transparent;
}

.scroll {
	margin-top: 20px;
}

.value-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.65;
}

.value-table th {
	padding: 14px 12px;
	color: var(--seat-muted);
	background: rgba(255, 255, 255, .045);
	font-size: 12px;
	font-weight: 750;
	text-align: left;
	letter-spacing: .03em;
	white-space: nowrap;
}

.value-table td {
	padding: 14px 12px;
	border-top: 1px solid rgba(255, 255, 255, .065);
	vertical-align: middle;
}

.value-table tbody tr {
	transition: background .16s ease;
}

.value-table tbody tr:hover {
	background: rgba(255, 255, 255, .045);
}

.value-table td:first-child {
	min-width: 170px;
}

.item-table {
	min-width: 1110px;
}

.item-table td:first-child {
	min-width: 225px;
}

.shop-table {
	min-width: 950px;
}

.box-table {
	min-width: 720px;
}

.reason-cell {
	width: 34%;
	min-width: 270px;
	color: #c5cfd4;
}

.number {
	font-variant-numeric: tabular-nums;
	font-weight: 750;
	white-space: nowrap;
}

.cell-sub {
	display: block;
	margin-top: 4px;
	color: var(--seat-muted);
	font-size: 11px;
	font-weight: 400;
	white-space: normal;
}

body[data-value-page="events"] .shop-table th:first-child,
body[data-value-page="events"] .shop-table td:first-child {
	width: 48px;
	min-width: 48px;
	padding-right: 8px;
	padding-left: 8px;
	text-align: center;
	white-space: nowrap;
}

body[data-value-page="events"] .event-item-label {
	display: flex;
	align-items: center;
	gap: 8px;
}

body[data-value-page="events"] .event-item-label .item-label {
	min-width: 0;
}

body[data-value-page="events"] .event-offer-tag {
	flex: 0 0 auto;
	min-height: 21px;
	padding: 2px 7px;
	font-size: 10px;
}

body[data-value-page="events"] .event-offer-hot {
	color: #8d2c1d;
	background: #f2d5c7;
	border: 1px solid #b76750;
	font-size: 12px;
}

body[data-value-page="events"] .event-offer-limited {
	color: #e1d2ff;
	background: rgba(120, 83, 191, .24);
}

/* Status and detail components */
.muted,
.note {
	color: var(--seat-muted);
}

.note {
	font-size: 13px;
}

.badge {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

.good {
	color: #8ce2b2;
	background: rgba(67, 137, 103, .19);
}

.bad {
	color: #ff9aad;
	background: rgba(173, 64, 84, .17);
}

.neutral {
	color: #d6dbea;
	background: rgba(255, 255, 255, .11);
}

.top-choice {
	background: rgba(91, 157, 117, .12);
}

.price {
	margin: 14px 0;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -.04em;
}

.price small {
	color: var(--seat-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
}

.card-head,
.row-top {
	display: flex;
	justify-content: space-between;
	gap: 14px;
}

.box .table-shell {
	margin-top: 20px;
}

.row {
	margin-top: 10px;
	padding: 12px 0;
	border-top: 1px solid var(--seat-line);
}

.row p {
	font-size: 12px;
}

.fixed {
	margin-top: 18px;
	padding: 12px 16px;
	border-left: 2px solid #abcba5;
	color: #c2d1bf;
	background: rgba(197, 215, 174, .06);
	font-size: 13px;
}

details {
	margin-top: 14px;
}

summary {
	color: #d3dcd5;
	font-size: 13px;
	font-weight: 650;
	cursor: pointer;
}

.guide {
	max-width: 960px;
	padding-top: 8px;
	color: var(--seat-muted);
	font-size: 13px;
}

.guide p {
	margin-top: 12px;
}

.guide-summary {
	font-size: 1.25rem;
	font-weight: 700;
	user-select: none;
}

.guide-summary:hover {
	opacity: .8;
}

.guide-content {
	margin-top: 16px;
}

.panel>.guide-details {
	margin-top: 0;
}

.guide-details>.guide-summary {
	margin: 0;
	line-height: 1.5;
}

.empty {
	padding: 50px 20px;
	border: 1px dashed var(--seat-line);
	border-radius: 16px;
	color: var(--seat-muted);
	text-align: center;
}

/* Item media */
.item-label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 180px;
}

.item-name {
	font-weight: 800;
	word-break: keep-all;
}

.item-thumb {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	overflow: hidden;
	width: 44px;
	height: 44px;
	border: 1px solid var(--seat-line);
	border-radius: 9px;
	background: var(--seat-panel-soft);
	text-decoration: none;
}

.item-thumb img {
	grid-area: 1 / 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.item-placeholder {
	grid-area: 1 / 1;
	color: var(--seat-muted);
	font-size: 23px;
	line-height: 1;
}

.item-thumb:has(img:not([hidden])) .item-placeholder {
	visibility: hidden;
}

.item-name a {
	border-bottom: 1px dotted #8da5c8;
	text-decoration: none;
}

.item-name a:hover {
	color: var(--seat-accent);
}

.box .item-label {
	min-width: 0;
}

.box .item-name {
	font-size: 20px;
}

.value-table .item-name {
	font-size: 13px;
}

/* Mixed packages */
body[data-value-page="packages"] .mix-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 16px;
}

body[data-value-page="packages"] .mix-controls select {
	flex: 1;
	min-width: 200px;
}

body[data-value-page="packages"] .mix-table {
	min-width: 1160px;
}

body[data-value-page="packages"] .mix-table td:first-child {
	width: 15%;
	min-width: 145px;
}

body[data-value-page="packages"] .mix-table .mix-components {
	width: 25%;
	min-width: 230px;
}

body[data-value-page="packages"] .mix-table .mix-reason {
	width: 27%;
	min-width: 260px;
}

body[data-value-page="packages"] .mix-component {
	margin: 8px 0;
}

body[data-value-page="packages"] .mix-component .item-label {
	min-width: 210px;
}

body[data-value-page="packages"] .mix-component .item-thumb {
	flex-basis: 32px;
	width: 32px;
	height: 32px;
}

body[data-value-page="packages"] .mix-quantity {
	color: var(--seat-accent);
	white-space: nowrap;
}

body[data-value-page="packages"] .mix-detail-list .row p {
	margin: 5px 0;
}

body[data-value-page="packages"] #mix-group-info:empty {
	display: none;
}

/* Voyage event */
body[data-event-mode="voyage"] .voyage-part {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 10px 0;
}

body[data-event-mode="voyage"] .voyage-part strong {
	color: var(--seat-accent);
	white-space: nowrap;
}

body[data-event-mode="voyage"] .voyage-metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 20px 0;
}

body[data-event-mode="voyage"] .voyage-metrics>div {
	padding: 18px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .04);
}

body[data-event-mode="voyage"] .voyage-metrics strong {
	display: block;
	margin: 8px 0;
	color: var(--readable-emphasis, #a9d5ff);
	font-size: 1.5rem;
}

body[data-event-mode="voyage"] #results>.panel {
	margin-top: 20px;
}

body[data-event-mode="voyage"] #results>.panel:first-child {
	margin-top: 0;
}

body[data-event-mode="voyage"] #results .value-table {
	min-width: 700px;
}

body[data-event-mode="voyage"] #results .value-table td {
	vertical-align: top;
}

body[data-event-mode="voyage"] #results h2 {
	font-size: 1.2rem;
}

body[data-event-mode="voyage"] #results details {
	margin-top: 0;
}

/* Responsive */
@media (max-width:820px) {
	.seat-page {
		width: min(100% - 18px, 1180px);
		padding-top: 12px;
	}

	.seat-hero {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
		padding: 22px 20px;
		border-radius: 19px;
	}

	.seat-tabs {
		grid-template-columns: repeat(2, 1fr);
	}

	.value-tabs {
		grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
		gap: 7px;
	}

	.panel {
		padding: 18px;
		border-radius: 19px;
	}

	.section-heading {
		align-items: start;
		flex-direction: column;
		gap: 0;
	}

	.toolbar input {
		flex-basis: 100%;
	}

	.table-shell,
	.scroll {
		border-radius: 16px;
	}

	.scroll .value-table {
		min-width: 650px;
	}

	.value-table td,
	.value-table th {
		padding: 12px 10px;
	}

	.card-head {
		flex-wrap: wrap;
	}

	.item-thumb {
		flex-basis: 38px;
		width: 38px;
		height: 38px;
	}

	.value-footer {
		width: calc(100% - 18px);
	}

	h2 {
		font-size: 21px;
	}

	h3 {
		font-size: 18px;
	}
}

@media (max-width:640px) {
	body[data-event-mode="voyage"] .voyage-metrics {
		grid-template-columns: 1fr;
	}

	body[data-event-mode="voyage"] .voyage-metrics strong {
		font-size: 1.3rem;
	}
}

@media (max-width:520px) {
	.seat-tab {
		gap: 6px;
		padding: 8px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion:reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
/* Paper theme: dark legacy table shells must not obscure ink-colored text. */
body[data-sera-theme="editorial"] :is(.scroll,.table-shell) {
    background: var(--paper-panel);
    color: var(--paper-ink);
    border-color: var(--line);
    border-radius: 4px;
    box-shadow: none;
    scrollbar-color: var(--line-strong) transparent;
}
body[data-sera-theme="editorial"] #anchors { padding: 10px 14px; }
body[data-sera-theme="editorial"] #anchors p { margin: 0; }
