.desk-api {
	background: #fff;
	color: #333;
	font-family: "Pretendard", "NanumGothic", sans-serif;
	font-size: 14px;
	line-height: 1.65;
	margin: -1px 0 0;
	padding: 0 0 80px;
}

/* ===== Hero ===== */
.desk-api-hero {
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	padding: 30px 0 22px;
	text-align: center;
}

.desk-api-hero-inner {
	box-sizing: border-box;
	margin: 0 auto;
	width: 900px;
}

.desk-api-hero p {
	color: #999;
	font-size: 13px;
	font-weight: normal;
	margin: 0 0 6px;
}

.desk-api-hero h1 {
	color: #222;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.5px;
	line-height: 1.3;
	margin: 0 0 16px;
}

.desk-api-image,
.desk-api-image-hero,
.desk-api-image-hero img,
.desk-api-image-process,
.desk-api-image-process img,
.desk-api-image-use,
.desk-api-image-use img,
.desk-api-image-small {
	display: none;
}

.desk-api-hero-link,
.desk-api-bottom-link a {
	background: #f44c44;
	border-radius: 3px;
	color: #fff;
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	padding: 11px 32px;
	text-decoration: none;
}

.desk-api-hero-link:hover,
.desk-api-bottom-link a:hover {
	background: #d93c35;
}

.desk-api-hero-link span,
.desk-api-bottom-link span {
	font-size: 15px;
	font-weight: 400;
	margin-left: 4px;
	vertical-align: 0;
}

/* ===== Body ===== */
.desk-api-body {
	margin: 0 auto;
	width: 1200px;
}

/* ===== 탭 네비게이션 ===== */
.desk-api-tabs {
	background: none;
	border-bottom: 1px solid #ddd;
	border-radius: 0;
	box-shadow: none;
	display: flex;
	margin: 26px 0 22px;
	padding: 0;
	width: auto;
}

.desk-api-tabs a {
	border-bottom: 2px solid transparent;
	border-radius: 0;
	color: #666;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: -1px;
	min-width: auto;
	padding: 10px 18px;
	text-align: center;
	text-decoration: none;
}

.desk-api-tabs a.on {
	background: none;
	border-bottom-color: #f44c44;
	color: #f44c44;
	font-weight: 700;
}

.desk-api-tabs a:hover {
	color: #f44c44;
}

/* ===== 카드 섹션 ===== */
.desk-api-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	box-sizing: border-box;
	margin-bottom: 14px;
	padding: 22px 26px;
}

.desk-api-card h2 {
	border-bottom: 1px solid #f0f0f0;
	color: #222;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 16px;
	padding-bottom: 12px;
}

.desk-api-card h2:before {
	color: #f44c44;
	content: "•";
	font-size: 18px;
	margin-right: 6px;
}

.desk-api-card p {
	color: #555;
	font-size: 13px;
	margin: 0;
}

/* ===== 이용안내 리스트 ===== */
.desk-api-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.desk-api-list li {
	color: #555;
	font-size: 13px;
	margin: 4px 0;
	padding-left: 12px;
	position: relative;
}

.desk-api-list li:before {
	color: #bbb;
	content: "·";
	left: 0;
	position: absolute;
}

/* ===== 활용방법 탭 ===== */
.desk-api-use {
	padding-bottom: 0;
}

.desk-api-use-tabs {
	display: flex;
	gap: 6px;
	justify-content: flex-start;
	margin: 0 0 10px;
}

.desk-api-use-tabs span {
	border: 1px solid #ddd;
	border-radius: 20px;
	color: #666;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	padding: 5px 15px;
}

.desk-api-use-tabs span.on,
.desk-api-use-tabs span:hover {
	background: #f44c44;
	border-color: #f44c44;
	color: #fff;
}

/* ===== CTA 하단 ===== */
.desk-api-bottom-link {
	color: #f44c44;
	margin: 24px 0 0;
	text-align: center;
}

/* ===== 연동 관리 ===== */
.desk-api-manage {
	min-height: 800px;
	padding-top: 1px;
}

.desk-api-manage .desk-api-tabs {
	margin-top: 26px;
}

/* ===== 약관 카드 / 신청 카드 ===== */
.desk-api-terms-card {
	margin-left: auto;
	margin-right: auto;
	padding: 22px 26px 26px;
	width: auto;
}

.desk-api-terms {
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	font-size: 12px;
	line-height: 1.8;
	margin-bottom: 14px;
	padding: 14px 16px;
}

.desk-api-terms h3 {
	font-size: 13px;
	margin: 14px 0 2px;
}

.desk-api-terms p {
	margin: 0;
}

.desk-api-terms ul {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.desk-api-terms ul:first-child {
	margin-top: 0;
}

.desk-api-agree {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin: 16px 0 0;
	text-align: center;
}

/* 체크박스 커스텀 */
.check-select-box input[type="checkbox"] {
	display: none;
}

.check-select-box input[type="checkbox"] + label {
	cursor: pointer;
}

.check-select-box input[type="checkbox"] + label > b {
	background: #f44c44;
	border-radius: 50%;
	box-sizing: border-box;
	color: #fff;
	display: inline-block;
	height: 22px;
	line-height: 22px;
	margin-right: 5px;
	position: relative;
	text-align: center;
	text-indent: 0;
	vertical-align: middle;
	width: 22px;
}

.check-select-box input[type="checkbox"] + label > b:before {
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	display: block;
	height: 8px;
	left: 8px;
	position: absolute;
	top: 5px;
	transform: rotate(45deg);
	width: 4px;
}

.check-select-box input[type="checkbox"]:not(:checked) + label > b {
	background: #ccc;
}

/* ===== 테이블 공통 ===== */
.desk-api-form-table,
.desk-api-list-table,
.desk-api-detail-table {
	border-collapse: collapse;
	width: 100%;
}

.desk-api-form-table th,
.desk-api-form-table td,
.desk-api-list-table th,
.desk-api-list-table td,
.desk-api-detail-table th,
.desk-api-detail-table td {
	border-bottom: 1px solid #e8e8e8;
	padding: 10px 13px;
}

.desk-api-form-table th,
.desk-api-form-table td {
	border: 1px solid #e8e8e8;
}

.desk-api-form-table th {
	background: #f6f6f6;
	color: #555;
	font-weight: 500;
	text-align: center;
	width: 150px;
}

/* ===== 입력 요소 공통 ===== */
.desk-api input,
.desk-api select,
.desk-api button {
	border: 1px solid #d0d0d0;
	border-radius: 3px;
	box-sizing: border-box;
	height: 34px;
	padding: 0 10px;
}

.desk-api input:focus,
.desk-api select:focus {
	border-color: #f44c44;
	outline: none;
}

.desk-api button {
	background: #fff;
	color: #555;
	cursor: pointer;
	font-size: 12px;
}

.desk-api button:hover {
	background: #f5f5f5;
}

.desk-api button.primary {
	background: #f44c44;
	border-color: #f44c44;
	color: #fff;
	font-weight: 700;
}

.desk-api button.primary:hover {
	background: #d93c35;
	border-color: #d93c35;
}

.desk-api button.danger {
	background: #555;
	border-color: #555;
	color: #fff;
}

.desk-api button.danger:hover {
	background: #333;
	border-color: #333;
}

/* ===== 폼 테이블 입력 크기 ===== */
.desk-api-form-table input {
	width: 240px;
}

.desk-api-form-table input.short {
	width: 120px;
}

.desk-api-form-table select {
	margin-left: 6px;
	width: 150px;
}

/* ===== 신청 카드 ===== */
.desk-api-request-card {
	margin-left: auto;
	margin-right: auto;
	padding: 22px 26px 28px;
	width: auto;
}

.desk-api-request-card .desk-api-form-table {
	margin: 20px 0 0;
	width: 100%;
}

.desk-api-request-card .desk-api-form-table th,
.desk-api-request-card .desk-api-form-table td {
	padding: 8px 13px;
}

.desk-api-request-card .desk-api-form-table th {
	width: 150px;
}

.desk-api-request-card .desk-api-form-table input {
	width: 180px;
}

.desk-api-request-card .desk-api-form-table input.short {
	width: 110px;
}

.desk-api-request-card .desk-api-form-table select {
	width: 135px;
}

/* ===== 안내 dot 리스트 ===== */
.desk-api-dot-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.desk-api-dot-list li {
	color: #555;
	font-size: 15px;
	margin: 4px 0;
	padding-left: 14px;
	position: relative;
}

.desk-api-dot-list li:before {
	color: #f44c44;
	content: "•";
	left: 0;
	margin-right: 0;
	position: absolute;
}

/* ===== 코드 탭 (api_help) ===== */
.desk-api-code-tabs {
	display: flex;
	gap: 6px;
	margin: 0 0 14px;
}

.desk-api-code-tabs span,
.desk-api-code-tabs a {
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	color: #555;
	font-size: 13px;
	min-width: 48px;
	padding: 6px 16px;
	text-align: center;
	text-decoration: none;
}

.desk-api-code-tabs span.on {
	background: #f44c44;
	border-color: #f44c44;
	color: #fff;
}

.desk-api-code-tabs a {
	color: #f44c44;
	margin-left: auto;
}

.desk-api-code-sub-tabs {
	margin-bottom: 16px;
}

.desk-api pre {
	background: #2b3542;
	border-radius: 4px;
	color: #e8eaf0;
	font-size: 12px;
	line-height: 1.6;
	margin: 12px 0 0;
	overflow: auto;
	padding: 18px 20px;
}

/* ===== 안내 박스 ===== */
.desk-api-note {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 3px;
	margin-bottom: 16px;
	padding: 12px 16px;
}

/* ===== 검색 행 ===== */
.desk-api-search-row {
	align-items: center;
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
}

.desk-api-search-row select {
	width: 120px;
}

.desk-api-search-row input {
	width: 118px;
}

.desk-api-search-row button {
	padding: 0 10px;
	width: auto;
}

.desk-api-search-row button.primary {
	width: 80px;
}

.desk-api-search-row .desk-api-search-btn {
	background: #555;
	border-color: #555;
	color: #fff;
	width: 50px;
}

.desk-api-search-row .desk-api-search-btn:hover {
	background: #333;
}

.desk-api-search-row em {
	color: #aaa;
	font-style: normal;
	line-height: 34px;
}

.desk-api-search-row .page-size {
	margin-left: auto;
	width: 100px;
}

/* ===== 목록 테이블 ===== */
.desk-api-list-table th {
	background: #f4f4f4;
}

.desk-api-list-table th,
.desk-api-list-table td {
	border: 1px solid #e5e5e5;
	padding: 10px;
	text-align: center;
}

.desk-api-list-table tbody tr {
	cursor: pointer;
}

.desk-api-list-table tbody tr:hover {
	background: #fff8f8;
}

/* ===== 상태 표시 ===== */
.desk-api-success {
	color: #1a7fd4;
}

.desk-api-fail {
	color: #f44c44;
}

/* ===== 페이지네이션 ===== */
.desk-api-paging {
	align-items: center;
	display: flex;
	gap: 4px;
	justify-content: center;
	margin-top: 20px;
}

.desk-api-paging span,
.desk-api-paging strong {
	align-items: center;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	box-sizing: border-box;
	display: inline-flex;
	height: 30px;
	justify-content: center;
	line-height: 1;
	min-width: 30px;
}

.desk-api-paging span {
	color: #666;
	cursor: pointer;
}

.desk-api-paging span:hover {
	border-color: #f44c44;
	color: #f44c44;
}

.desk-api-paging strong {
	background: #f44c44;
	border-color: #f44c44;
	color: #fff;
	font-weight: 700;
}

/* ===== 모달 ===== */
.desk-api-modal {
	align-items: center;
	background: rgba(0, 0, 0, .45);
	display: none;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 9999;
}

.desk-api-modal.open {
	display: flex;
}

.desk-api-modal-box {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
	box-sizing: border-box;
	max-height: 80vh;
	overflow-y: auto;
	padding: 26px 30px 30px;
	position: relative;
	width: 600px;
}

.desk-api-modal-box h2 {
	border-bottom: 1px solid #eee;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 12px;
}

.desk-api-modal-close {
	background: none;
	border: 0;
	color: #aaa;
	cursor: pointer;
	font-size: 24px;
	height: auto;
	line-height: 1;
	padding: 4px 8px;
	position: absolute;
	right: 14px;
	top: 12px;
}

.desk-api-modal-close:hover {
	background: none;
	color: #333;
}

/* ===== 상세 테이블 ===== */
.desk-api-detail-table th,
.desk-api-detail-table td {
	border: 1px solid #e8e8e8;
	padding: 9px 14px;
}

.desk-api-detail-table th {
	background: #f6f6f6;
	color: #555;
	font-weight: 500;
	text-align: left;
	width: 120px;
}

/* ===== 상태 카드 토글 ===== */
.desk-api-status-card {
	padding-bottom: 22px;
}

.desk-api-switch {
	background: #ccc;
	border-radius: 14px;
	cursor: pointer;
	display: inline-block;
	height: 22px;
	margin-right: 8px;
	vertical-align: middle;
	width: 40px;
}

.desk-api-switch:before {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	content: "";
	display: block;
	height: 16px;
	margin: 3px;
	transition: margin-left .15s;
	width: 16px;
}

.desk-api-switch.on {
	background: #f44c44;
}

.desk-api-switch.on:before {
	margin-left: 21px;
}

/* ===== 잔여건수 알림 토글 fade ===== */
.desk-api-card .desk-api-note,
.desk-api-card .desk-api-inline-row {
	max-height: 140px;
	opacity: 1;
	overflow: hidden;
	transition: max-height .25s ease, opacity .2s ease, margin .25s ease, padding .25s ease;
}

.desk-api-switch-off .desk-api-note,
.desk-api-switch-off .desk-api-inline-row {
	margin-bottom: 0 !important;
	margin-top: 0 !important;
	max-height: 0;
	opacity: 0;
	padding-bottom: 0;
	padding-top: 0;
}

/* ===== 기타 유틸 ===== */
.desk-api-center {
	margin-top: 16px;
	text-align: center;
}

.desk-api-key-text {
	color: #1a7fd4;
	font-weight: 700;
	margin: 20px 0 !important;
}

.desk-api-inline-row {
	align-items: center;
	display: flex;
	font-size: 13px;
	gap: 6px;
	margin: 8px 0 !important;
}

.desk-api-inline-row input {
	height: 30px;
	margin-left: 6px;
	width: 150px;
}

.desk-api-inline-row button {
	height: 30px;
	margin-left: 4px;
	padding: 0 10px;
}
