.pdfhc {
	--pdfhc-accent: #1d6f42;
	--pdfhc-accent-2: #155a35;
	--pdfhc-pdf: #c62828;
	--pdfhc-border: #d5dbe1;
	--pdfhc-muted: #5f6b76;
	--pdfhc-bg: #fff;
	--pdfhc-soft: #f4f7f5;
	--pdfhc-error: #b3261e;
	max-width: 860px;
	margin: 1.5em auto;
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.pdfhc *, .pdfhc *::before, .pdfhc *::after { box-sizing: border-box; }
.pdfhc [hidden] { display: none !important; }
.pdfhc-title { margin: 0 0 .6em; }

.pdfhc-drop {
	border: 2px dashed var(--pdfhc-border); border-radius: 14px; background: var(--pdfhc-soft);
	padding: 2.4em 1em; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.pdfhc-drop:hover, .pdfhc-drop:focus-visible, .pdfhc-drop.is-over { border-color: var(--pdfhc-accent); background: #e9f3ed; outline: none; }
.pdfhc-drop-icon { width: 44px; height: 44px; color: var(--pdfhc-accent); }
.pdfhc-drop-main { margin: .4em 0 .1em; font-weight: 600; font-size: 1.1em; }
.pdfhc-drop-sub { margin: 0; color: var(--pdfhc-muted); font-size: .9em; }
.pdfhc-cloud { display: flex; gap: .5em; justify-content: center; flex-wrap: wrap; margin-top: .8em; }

.pdfhc-file { display: flex; align-items: center; gap: .8em; padding: .7em .9em; border: 1px solid var(--pdfhc-border); border-radius: 12px; background: var(--pdfhc-bg); }
.pdfhc-ext { font-size: .72em; font-weight: 700; letter-spacing: .04em; background: var(--pdfhc-pdf); color: #fff; border-radius: 5px; padding: .3em .5em; min-width: 3.4em; text-align: center; }
.pdfhc-file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pdfhc-file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfhc-file-meta { font-size: .82em; color: var(--pdfhc-muted); }

.pdfhc-pwbox { display: flex; gap: .6em; align-items: flex-end; flex-wrap: wrap; margin-top: 1em; }
.pdfhc-pwbox label { display: flex; flex-direction: column; gap: .25em; font-size: .9em; font-weight: 600; flex: 1; min-width: 200px; }

.pdfhc-options { margin: 1em 0 0; padding: 1em 1.1em; border: 1px solid var(--pdfhc-border); border-radius: 12px; min-width: 0; }
.pdfhc-options legend { font-weight: 700; padding: 0 .3em; }
.pdfhc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.pdfhc-grid > label { display: flex; flex-direction: column; gap: .25em; font-size: .88em; font-weight: 600; }
.pdfhc select, .pdfhc input[type=text], .pdfhc input[type=password] {
	width: 100%; padding: .42em .5em; border: 1px solid var(--pdfhc-border); border-radius: 8px;
	background: var(--pdfhc-bg); color: inherit; font: inherit; font-weight: 400;
}
.pdfhc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .35em 1em; margin-top: 1em; font-size: .92em; }
.pdfhc-checks label { cursor: pointer; }

.pdfhc-btn {
	appearance: none; display: inline-block; border: 1px solid var(--pdfhc-accent); background: var(--pdfhc-accent); color: #fff;
	padding: .65em 1.4em; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.3; white-space: nowrap;
}
.pdfhc-btn:hover:not(:disabled) { background: var(--pdfhc-accent-2); border-color: var(--pdfhc-accent-2); }
.pdfhc-btn:disabled { opacity: .45; cursor: not-allowed; }
.pdfhc-btn-ghost { background: transparent; color: var(--pdfhc-accent); padding: .45em 1em; }
.pdfhc-btn-ghost:hover:not(:disabled) { background: var(--pdfhc-soft); color: var(--pdfhc-accent-2); }

.pdfhc-progress { margin-top: 1em; }
.pdfhc-bar { height: 8px; border-radius: 99px; background: #e3e8e5; overflow: hidden; }
.pdfhc-bar span { display: block; height: 100%; width: 0; background: var(--pdfhc-accent); transition: width .25s; }
.pdfhc-status { margin: .4em 0 0; font-size: .92em; }
.pdfhc-msg { margin-top: 1em; padding: .7em .9em; border-radius: 8px; background: var(--pdfhc-soft); font-size: .92em; }
.pdfhc-msg.is-error { background: #fdecea; color: var(--pdfhc-error); }
.pdfhc-msg.is-warn { background: #fff4de; color: #7a4a00; }

.pdfhc-result { margin-top: 1.3em; padding-top: 1.1em; border-top: 1px solid var(--pdfhc-border); }
.pdfhc-summary { margin: 0 0 .6em; font-weight: 600; }
.pdfhc-sheet-tabs { display: flex; gap: .3em; flex-wrap: wrap; margin-bottom: .5em; }
.pdfhc-tab { border: 1px solid var(--pdfhc-border); background: var(--pdfhc-bg); border-radius: 8px; padding: .25em .7em; font: inherit; font-size: .85em; cursor: pointer; color: inherit; }
.pdfhc-tab.is-active { border-color: var(--pdfhc-accent); background: var(--pdfhc-soft); color: var(--pdfhc-accent-2); font-weight: 600; }
.pdfhc-preview { overflow: auto; max-height: 420px; border: 1px solid var(--pdfhc-border); border-radius: 10px; }
.pdfhc-table { border-collapse: collapse; font-size: .85em; margin: 0; width: max-content; min-width: 100%; }
.pdfhc-table th, .pdfhc-table td { border: 1px solid #e3e6ea; padding: .3em .55em; text-align: left; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.pdfhc-table th { position: sticky; top: 0; background: #eef1f3; font-weight: 600; color: var(--pdfhc-muted); text-align: center; z-index: 1; }
.pdfhc-table td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.pdfhc-table .pdfhc-rn { background: #f6f7f8; color: var(--pdfhc-muted); text-align: right; font-size: .9em; position: sticky; left: 0; }
.pdfhc-table th.pdfhc-rn { z-index: 2; }
.pdfhc-more { font-size: .82em; color: var(--pdfhc-muted); margin: .4em 0 0; }
.pdfhc-actions { display: flex; gap: .6em; flex-wrap: wrap; align-items: center; margin-top: 1em; }
.pdfhc-actions select { width: auto; min-width: 190px; }
.pdfhc-note { font-size: .85em; color: #7a4a00; margin: .5em 0 0; }
.pdfhc-done { font-size: .92em; margin: .5em 0 0; }

.pdfhc-privacy, .pdfhc-credit { margin: 1.2em 0 0; font-size: .82em; color: var(--pdfhc-muted); text-align: center; }
.pdfhc-credit { margin-top: .2em; }

@media (max-width: 640px) {
	.pdfhc-grid { grid-template-columns: 1fr 1fr; }
	.pdfhc-checks { grid-template-columns: 1fr; }
	.pdfhc-file { flex-wrap: wrap; }
}
@media (max-width: 420px) { .pdfhc-grid { grid-template-columns: 1fr; } }
