/* /tool/password-generator — 정식 오픈 스타일(상단 네비/광고/라이선스 모달 포함). */

*{ box-sizing: border-box; }

body{
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
	background: #f5f6f8;
	color: #1f2937;
}

/* ── 상단 네비 (view/tool/_e/topnav.php 공통 partial, navPrefix='pg') ── */
.pg-topnav{
	display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
	max-width: 1100px; margin: 0 auto; padding: 14px 24px;
	border-bottom: 1px solid #e2e6ec; background: #fff;
}
.pg-topnav-left{ display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.pg-site-brand{ font-weight: 900; font-size: 16px; color: #2563eb; text-decoration: none; }
.pg-topnav a:not(.pg-site-brand){
	color: #556; text-decoration: none; font-size: 13px;
	display: inline-flex; align-items: center; gap: 4px;
}
.pg-topnav a:not(.pg-site-brand):hover{ color: #2563eb; }

.pwg-page{ max-width: 640px; margin: 0 auto; padding: 32px 16px 60px; }

.pwg-intro{ margin-bottom: 24px; }
.pwg-intro h1{ font-size: 22px; margin: 0 0 10px; }
.pwg-intro h1 i{ color: #2563eb; margin-right: 8px; }
.pwg-intro-lead{ font-size: 14px; color: #475569; margin: 0 0 12px; line-height: 1.6; }
.pwg-intro-body p{ font-size: 13px; color: #64748b; line-height: 1.7; margin: 0 0 8px; }
.pwg-intro-body code{
	background: #eef2f7; border-radius: 4px; padding: 1px 5px;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px;
}

.pwg-panel{
	background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px;
	padding: 20px;
}

.pwg-field-row{ display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pwg-field{ display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 120px; }
.pwg-field-label{ font-size: 12px; font-weight: 700; color: #334155; }
.pwg-field input[type="number"]{
	border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 9px 10px;
	font-size: 14px; color: #1f2937; background: #f8fafc; outline: none;
	transition: border-color .15s, background .15s;
}
.pwg-field input[type="number"]:focus{ border-color: #2563eb; background: #fff; }

.pwg-chip-row{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pwg-chip{
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border-radius: 20px;
	border: 1.5px solid #e2e8f0; background: #fff;
	font-size: 13px; font-weight: 600; color: #64748b;
	cursor: pointer; user-select: none; transition: all .15s;
}
.pwg-chip:hover{ border-color: #94a3b8; color: #334155; }
.pwg-chip:has(input:checked){ background: #0f2744; border-color: #0f2744; color: #fff; }
.pwg-chip input{ width: 14px; height: 14px; cursor: pointer; }

.pwg-error{
	background: #fdecea; border: 1px solid #f5c2c0; color: #9c2b26;
	border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px;
}

.pwg-actions{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pwg-btn{
	display: inline-flex; align-items: center; gap: 6px;
	border: 1.5px solid #e2e8f0; background: #fff; color: #334155;
	font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 8px;
	cursor: pointer; transition: all .15s;
}
.pwg-btn:hover{ background: #f0f3f7; border-color: #aab4c2; }
.pwg-btn-primary{
	background: linear-gradient(135deg, #0f2744, #1d4ed8); border-color: transparent; color: #fff;
}
.pwg-btn-primary:hover{ opacity: .9; background: linear-gradient(135deg, #0f2744, #1d4ed8); }

.pwg-copy-feedback{ font-size: 13px; font-weight: 700; color: #16a34a; }

.pwg-result{
	width: 100%; min-height: 220px; resize: vertical;
	border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 12px 14px;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 13px; line-height: 1.8; color: #1f2937; background: #f8fafc;
	outline: none;
}
.pwg-result:focus{ border-color: #2563eb; background: #fff; }

.pwg-footer{ text-align: center; padding: 20px; color: #94a3b8; font-size: 12px; }

.pwg-ad-slot{ text-align: center; padding: 10px 0; }

/* ── 광고제거 라이선스 배너 ── */
.pwg-license-bar{
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	gap: 10px; margin-bottom: 16px; padding: 10px 16px;
	background: linear-gradient(135deg, #eef5ff, #e0f0ff);
	border: 1.5px solid #bcd6f7; border-radius: 8px;
}
.pwg-license-bar.is-active{ background: #eafbf1; border-color: #b7e6c9; }
.pwg-license-bar-text{ font-size: 12px; color: #1f4fa3; }
.pwg-license-bar.is-active .pwg-license-bar-text{ color: #14804a; }
.pwg-license-bar-btn{
	background: #1d4ed8; color: #fff; border: none; border-radius: 8px;
	padding: 8px 12px; font-size: 12px; cursor: pointer; white-space: nowrap;
}

/* ── 광고제거 라이선스 모달 ── */
.pwg-modal{ position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 100; }
.pwg-modal.is-open{ display: flex; }
.pwg-modal-dim{ position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.pwg-modal-body{
	position: relative; width: 90%; max-width: 340px; background: #fff;
	border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 20px; text-align: center;
}
.pwg-modal-title{ font-weight: 700; margin-bottom: 6px; }
.pwg-modal-title i{ color: #1d4ed8; margin-right: 4px; }
.pwg-modal-sub{ color: #64748b; font-size: 12px; margin-bottom: 14px; }
.pwg-modal-input{
	width: 100%; padding: 10px 12px; border-radius: 8px; border: 1.5px solid #e2e8f0;
	background: #f8fafc; color: #1f2937; font-size: 14px; margin-bottom: 8px; outline: none;
}
.pwg-modal-input:focus{ border-color: #2563eb; background: #fff; }
.pwg-modal-msg{ min-height: 16px; font-size: 12px; margin-bottom: 10px; }
.pwg-modal-msg.is-ok{ color: #16a34a; }
.pwg-modal-msg.is-err{ color: #dc2626; }
.pwg-modal-btns{ display: flex; gap: 8px; justify-content: center; }

@media (max-width: 480px){
	.pwg-field-row{ flex-direction: column; gap: 10px; }
}
