:root {
	--ag-v3-brand: #b4000b;
	--ag-v3-brand-dark: #8f0008;
	--ag-v3-text: #171717;
	--ag-v3-muted: #6b7280;
	--ag-v3-line: #e5e7eb;
	--ag-v3-surface: #ffffff;
	--ag-v3-soft: #f6f7f8;
}

.ag-v3-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ag-v3-header,
.ag-v3-header * {
	box-sizing: border-box;
}

.ag-v3-header {
	position: relative;
	z-index: 1000;
	width: 100%;
	background: #fff;
	color: var(--ag-v3-text);
	font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

#header .ag-v3-actions .ag-v3-fixed-search-button {
	display: none;
}

body.ag-v3-fixed-header-page.ag-v3-header-fixed .ag-v3-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 7000;
	border-bottom: 1px solid var(--ag-v3-line);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
	will-change: transform, opacity;
	animation: ag-v3-fixed-header-in .26s cubic-bezier(.22, .61, .36, 1) both;
}

body.ag-v3-fixed-header-page.ag-v3-header-fixed .ag-v3-search-area {
	display: none;
}

body.ag-v3-fixed-header-page.ag-v3-header-fixed #header .ag-v3-actions .ag-v3-fixed-search-button {
	display: flex;
}

@keyframes ag-v3-fixed-header-in {
	from {
		opacity: 0;
		transform: translateY(-64px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ag-v3-brand-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	padding: 0 20px;
}

.ag-v3-header.is-minimal .ag-v3-brand-row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	height: 56px;
	padding: 0 8px;
	border-bottom: 1px solid var(--ag-v3-line);
}

.ag-v3-page-title {
	overflow: hidden;
	padding: 0 8px;
	color: var(--ag-v3-text);
	font-size: 19px;
	font-weight: 800;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ag-v3-minimal-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #222;
}

.ag-v3-minimal-button:active {
	background: #f3f4f6;
}

.ag-v3-minimal-button svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#header .ag-v3-logo {
	display: flex;
	align-items: center;
	height: 44px;
	text-decoration: none;
}

.ag-v3-logo img {
	display: block;
	width: clamp(145px, 46vw, 185px);
	height: auto;
	max-height: 35px;
	object-fit: contain;
}

.ag-v3-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

#header .ag-v3-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 2px 4px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #222;
	font: inherit;
	font-size: 12px;
	line-height: 1.25;
	text-decoration: none;
}

.ag-v3-action:active {
	background: #f3f4f6;
}

.ag-v3-action svg {
	width: 23px;
	height: 23px;
	margin-bottom: 2px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ag-v3-search-area {
	padding: 30px 20px 32px;
	background: linear-gradient(180deg, #fff 0%, #f7f7f8 100%);
}

.ag-v3-search-area.is-collapsible {
	padding-top: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ag-v3-line);
}

.ag-v3-search-area.is-collapsible[hidden] {
	display: none;
}

.ag-v3-search {
	position: relative;
	display: flex;
	align-items: center;
	height: 56px;
	margin: 0;
	padding-left: 6px;
	border: 2px solid #222;
	border-radius: 100px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .1);
}

.ag-v3-search input,
.ag-v3-search button {
	height: 52px;
	border: 0;
	background: transparent;
	font-family: inherit;
}

.ag-v3-search input {
	min-width: 0;
	flex: 1;
	padding: 0 12px 0 17px;
	color: var(--ag-v3-text);
	font-size: 18px;
	font-weight: 500;
	outline: none;
}

.ag-v3-search input::placeholder {
	color: #777;
	opacity: 1;
}

.ag-v3-search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.ag-v3-search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	width: 52px;
	color: #222;
}

.ag-v3-search-submit svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.ag-v3-search .ag-v3-search-clear {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	width: 38px;
	height: 44px;
	color: #999;
}

.ag-v3-search .ag-v3-search-clear[hidden] {
	display: none;
}

.ag-v3-search-clear svg {
	width: 20px;
	height: 20px;
	fill: #e5e7eb;
	stroke: #777;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.ag-v3-suggestions {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 50;
	overflow-y: auto;
	max-height: 350px;
	padding: 7px;
	border: 1px solid #dadde1;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.ag-v3-suggestions[hidden] {
	display: none;
}

.ag-v3-suggestion {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding: 9px 12px;
	border-radius: 9px;
	color: #222;
	cursor: pointer;
}

.ag-v3-suggestion.is-active,
.ag-v3-suggestion:active {
	background: #f3f4f6;
}

.ag-v3-suggestion strong {
	font-size: 16px;
	font-weight: 500;
}

.ag-v3-suggestion strong mark {
	background: transparent;
	color: var(--ag-v3-brand);
	font-weight: 800;
}

.ag-v3-suggestion small {
	margin-left: 12px;
	color: #999;
	font-size: 12px;
}

.ag-v3-suggestion-empty {
	padding: 13px 12px;
	color: #777;
	font-size: 14px;
	text-align: center;
}

.ag-v3-search-scopes {
	display: flex;
	overflow-x: auto;
	gap: 8px;
	margin-top: 15px;
	padding: 1px 0 3px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ag-v3-search-scopes::-webkit-scrollbar,
.ag-v3-info-links::-webkit-scrollbar {
	display: none;
}

.ag-v3-search-scopes button {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 7px 13px;
	border: 1px solid #dedede;
	border-radius: 100px;
	background: #fff;
	color: #555;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.ag-v3-search-scopes button.is-active {
	border-color: #222;
	background: #222;
	color: #fff;
}

.ag-v3-standard-links {
	display: flex;
	align-items: stretch;
	overflow-x: auto;
	gap: 18px;
	margin-top: 14px;
	padding: 0 2px 2px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ag-v3-standard-links::-webkit-scrollbar {
	display: none;
}

#header .ag-v3-standard-links a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 39px;
	padding: 0 2px;
	color: #555;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

#header .ag-v3-standard-links a.is-active {
	color: var(--ag-v3-brand);
}

.ag-v3-standard-links a.is-active::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	border-radius: 3px;
	background: var(--ag-v3-brand);
	content: "";
}

#header .ag-v3-standard-links .ag-v3-standard-listen {
	width: 42px;
	padding: 0;
}

.ag-v3-standard-listen svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ag-v3-standard-listen span {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ag-v3-search-result {
	margin-top: 12px;
	padding: 13px 15px;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	background: #fff;
	color: #333;
	font-size: 16px;
	line-height: 1.5;
}

.ag-v3-launchpad,
.ag-v3-launchpad * {
	box-sizing: border-box;
}

.ag-v3-launchpad {
	padding: 24px 20px 22px;
	border-bottom: 8px solid #f4f5f6;
	background: #fff;
	font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

.ag-v3-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

#header .ag-v3-section-head h2 {
	display: flex;
	align-items: center;
	margin: 0;
	color: var(--ag-v3-text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.ag-v3-section-mark {
	display: block;
	width: 43px;
	height: auto;
	margin-right: 8px;
}

.ag-v3-section-head span {
	color: #888;
	font-size: 12px;
	white-space: nowrap;
}

.ag-v3-quick-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

#header .ag-v3-quick-grid > a {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 82px;
	padding: 11px;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	background: #fff;
	color: var(--ag-v3-text);
	text-decoration: none;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .045);
}

.ag-v3-quick-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin-right: 9px;
	border-radius: 12px;
	background: #fff0f1;
	color: var(--ag-v3-brand);
}

.ag-v3-quick-icon.is-sell,
.ag-v3-quick-icon.is-part-sell {
	background: #f1f3f5;
	color: #333;
}

.ag-v3-quick-icon.is-part {
	background: #fff6e8;
	color: #9a5b00;
}

.ag-v3-quick-icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ag-v3-quick-grid strong,
.ag-v3-quick-grid small {
	display: block;
}

.ag-v3-quick-grid strong {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
}

.ag-v3-quick-grid small {
	margin-top: 4px;
	color: #888;
	font-size: 12px;
	line-height: 1.3;
}

.ag-v3-info-links {
	display: flex;
	overflow-x: auto;
	gap: 7px;
	margin: 15px -20px -4px;
	padding: 0 20px 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

#header .ag-v3-info-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 38px;
	padding: 8px 13px;
	border-radius: 9px;
	background: #f4f5f6;
	color: #444;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

#header .ag-v3-info-links a[aria-current="page"] {
	background: #fff0f1;
	color: var(--ag-v3-brand);
}

.ag-v3-drawer-layer,
.ag-v3-drawer-layer * {
	box-sizing: border-box;
}

.ag-v3-drawer-layer {
	position: fixed;
	inset: 0;
	z-index: 12000;
	visibility: hidden;
	pointer-events: none;
	font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

.ag-v3-drawer-layer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.ag-v3-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity .2s ease;
}

.ag-v3-drawer-layer.is-open .ag-v3-backdrop {
	opacity: 1;
}

.ag-v3-drawer {
	position: absolute;
	top: 0;
	right: 0;
	width: min(88vw, 390px);
	height: 100%;
	overflow-y: auto;
	padding-bottom: max(24px, env(safe-area-inset-bottom));
	background: var(--ag-v3-surface);
	color: var(--ag-v3-text);
	transform: translateX(100%);
	transition: transform .24s ease;
	box-shadow: -10px 0 30px rgba(0, 0, 0, .18);
}

.ag-v3-drawer-layer.is-open .ag-v3-drawer {
	transform: translateX(0);
}

.ag-v3-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	padding: 15px 14px 14px 18px;
	background: var(--ag-v3-brand);
	color: #fff;
}

.ag-v3-drawer-head strong,
.ag-v3-drawer-head span {
	display: block;
}

.ag-v3-drawer-head strong {
	font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.ag-v3-drawer-head span {
	margin-top: 4px;
	font-size: 13px;
	opacity: .82;
}

.ag-v3-drawer-head button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

.ag-v3-drawer-head svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.ag-v3-account {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 7px;
	padding: 14px 14px 4px;
}

.ag-v3-account a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 6px;
	border: 1px solid var(--ag-v3-line);
	border-radius: 9px;
	color: #333;
	font-size: 14px;
	font-weight: 700;
	line-height: 42px;
	text-align: center;
	text-decoration: none;
}

.ag-v3-account a.is-primary {
	border-color: var(--ag-v3-brand);
	background: var(--ag-v3-brand);
	color: #fff;
}

.ag-v3-menu-groups {
	padding: 0 14px;
}

.ag-v3-menu-groups section {
	padding: 18px 0;
	border-bottom: 1px solid var(--ag-v3-line);
}

.ag-v3-menu-groups section:last-child {
	border-bottom: 0;
}

.ag-v3-menu-groups h2 {
	margin: 0 0 10px;
	color: var(--ag-v3-text);
	font-size: 18px;
	font-weight: 800;
}

.ag-v3-menu-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ag-v3-menu-grid a {
	display: flex;
	align-items: center;
	min-height: 50px;
	padding: 10px 12px;
	border-radius: 9px;
	background: var(--ag-v3-soft);
	color: #303030;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

body.ag-v3-menu-open {
	overflow: hidden;
}

body.ag-v3-page {
	font-size: 16px;
}

body.ag-v3-page #container,
body.ag-v3-page #container input,
body.ag-v3-page #container select,
body.ag-v3-page #container button {
	font-size: 16px;
}

body.ag-v3-page .tab li b {
	font-size: 17px;
}

body.ag-v3-page div.freead h3 {
	font-size: 19px;
}

body.ag-v3-page div.freead th,
body.ag-v3-page div.freead td {
	font-size: 18px;
}

body.ag-v3-page #G_cal_td,
body.ag-v3-page td.calendar {
	font-size: 17px !important;
}

@media (max-width: 359px) {
	.ag-v3-brand-row {
		padding-right: 14px;
		padding-left: 14px;
	}

	.ag-v3-search-area {
		padding-right: 14px;
		padding-left: 14px;
	}

	.ag-v3-search input {
		padding-left: 13px;
		font-size: 16px;
	}

	.ag-v3-launchpad {
		padding-right: 14px;
		padding-left: 14px;
	}

	.ag-v3-section-head span,
	.ag-v3-quick-grid small {
		display: none;
	}

	#header .ag-v3-quick-grid > a {
		min-height: 66px;
		padding: 9px;
	}

	.ag-v3-quick-icon {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
		margin-right: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ag-v3-backdrop,
	.ag-v3-drawer {
		transition: none;
	}
}
