.phc {
	--phc-accent: #1d6f42;
	--phc-text: #1f2328;
	--phc-muted: #5b636d;
	--phc-line: #d9dee3;
	--phc-bg: #ffffff;
	--phc-soft: #f4f7f5;
	--phc-error: #b42318;
	--phc-warn-bg: #fff8e6;
	--phc-warn-line: #f1d48a;
	max-width: 760px;
	margin: 0 auto;
	color: var(--phc-text);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.phc *, .phc *::before, .phc *::after { box-sizing: inherit; }
.phc input, .phc select, .phc button { box-sizing: border-box; }

.phc-pass { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phc-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.phc-field input {
	width: 100%;
	padding: 11px 12px;
	border: 1.5px solid var(--phc-line);
	border-radius: 10px;
	font-size: 16px;
	background: var(--phc-bg);
	color: var(--phc-text);
}
.phc-field input:focus { outline: none; border-color: var(--phc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--phc-accent) 18%, transparent); }
.phc-input-wrap { position: relative; }
.phc-input-wrap input { padding-right: 86px; }
.phc-eye {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	background: none; border: 0; color: var(--phc-accent); font-weight: 600; font-size: 14px;
	padding: 6px 10px; cursor: pointer; border-radius: 6px;
}
.phc-eye:hover, .phc-eye:focus-visible { background: var(--phc-soft); outline: none; }
.phc-meter { height: 5px; border-radius: 99px; background: var(--phc-soft); overflow: hidden; margin-top: 8px; }
.phc-meter span { display: block; height: 100%; width: 0; background: var(--phc-error); transition: width .2s, background .2s; }
.phc-meter span[data-level="2"] { background: #d68a00; }
.phc-meter span[data-level="3"], .phc-meter span[data-level="4"] { background: var(--phc-accent); }
.phc-strength { margin: 4px 0 0; font-size: .82em; color: var(--phc-muted); min-height: 1.2em; }
.phc-pass-msg { margin: 6px 0 0; font-size: .85em; color: var(--phc-error); min-height: 1.2em; }

.phc-warn {
	margin: 12px 0 18px;
	padding: 10px 14px;
	background: var(--phc-warn-bg);
	border: 1px solid var(--phc-warn-line);
	border-radius: 10px;
	font-size: .88em;
}

.phc-drop {
	border: 2px dashed var(--phc-line);
	border-radius: 14px;
	background: var(--phc-soft);
	padding: 36px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.phc-drop:hover, .phc-drop:focus-visible, .phc-drop.is-over {
	border-color: var(--phc-accent);
	background: color-mix(in srgb, var(--phc-accent) 8%, var(--phc-bg));
	outline: none;
}
.phc-icon { width: 44px; height: 44px; color: var(--phc-accent); }
.phc-drop-title { margin: 8px 0 4px; font-size: 1.15em; font-weight: 600; }
.phc-drop-sub { margin: 0; color: var(--phc-muted); font-size: .88em; }

.phc-select { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: .9em; }
.phc-select select { max-width: 100%; padding: 4px 8px; }

.phc-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.phc-item { border: 1px solid var(--phc-line); border-radius: 10px; padding: 12px 14px; background: var(--phc-bg); margin: 0; }
.phc-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phc-name { font-weight: 600; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.phc-status { color: var(--phc-muted); font-size: .88em; }
.phc-item.is-done .phc-status { color: var(--phc-accent); font-weight: 600; }
.phc-download {
	background: var(--phc-accent);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 8px;
	padding: 6px 14px;
	font-size: .9em;
	font-weight: 600;
}
.phc-download:hover { filter: brightness(1.1); }
.phc-bar { height: 5px; border-radius: 99px; background: var(--phc-soft); overflow: hidden; margin: 8px 0 6px; }
.phc-bar span { display: block; height: 100%; width: 0; background: var(--phc-accent); transition: width .2s; }
.phc-item.is-working .phc-bar span { animation: phc-pulse 1.2s ease-in-out infinite; }
.phc-item.is-error .phc-bar { display: none; }
.phc-item.is-error .phc-info { color: var(--phc-error); }
.phc-info { font-size: .85em; color: var(--phc-muted); overflow-wrap: anywhere; }
.phc-note { margin: 6px 0 0; font-size: .82em; color: var(--phc-muted); }

.phc-privacy, .phc-counter { font-size: .8em; color: var(--phc-muted); text-align: center; margin: 16px 0 0; }
.phc-counter { font-weight: 600; }

@keyframes phc-pulse { 50% { opacity: .45; } }

@media (max-width: 600px) {
	.phc-pass { grid-template-columns: 1fr; }
	.phc-drop { padding: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.phc-item.is-working .phc-bar span, .phc-meter span { animation: none; transition: none; }
}
