/*
 * Ultimate ZIP File Analyzer — frontend styles.
 * Namespaced under .uza- to avoid clashing with themes.
 */

.uza-wrapper {
	--uza-bg: #ffffff;
	--uza-surface: #f8f9fb;
	--uza-border: #e4e7ec;
	--uza-text: #1a1d23;
	--uza-text-muted: #667085;
	--uza-primary: #3b5bfd;
	--uza-primary-dark: #2a44d6;
	--uza-primary-light: #eef1ff;
	--uza-secondary: #7c3aed;
	--uza-secondary-dark: #6425d0;
	--uza-teal: #0e9384;
	--uza-success: #12b76a;
	--uza-warning: #b54708;
	--uza-warning-bg: #fffaeb;
	--uza-warning-border: #fedf89;
	--uza-error: #b42318;
	--uza-error-bg: #fef3f2;
	--uza-error-border: #fda29b;
	--uza-radius: 12px;
	--uza-radius-sm: 8px;
	--uza-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
	--uza-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--uza-text);
	max-width: 1320px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Give the tool's file explorer visibly more room on laptop/desktop
   sized viewports so it never feels cramped next to the rest of the
   page — mobile/tablet keep the tighter, touch-first sizing defined
   throughout this file. Text sizing itself uses clamp() below so it
   scales continuously with the viewport instead of jumping here. */
@media (min-width: 1024px) {
	.uza-explorer__tree,
	.uza-explorer__viewer {
		max-height: 680px;
	}

	.uza-explorer { min-height: 480px; }
}

.uza-wrapper *,
.uza-wrapper *::before,
.uza-wrapper *::after {
	box-sizing: border-box;
}

.uza-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Intro / SEO block ---------- */

.uza-intro {
	text-align: center;
	padding: 8px 16px 28px;
}

.uza-intro__title {
	font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
	font-weight: 700;
	margin: 0 0 14px;
	letter-spacing: -0.02em;
}

.uza-intro__lead {
	color: var(--uza-text-muted);
	font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
	line-height: 1.6;
	max-width: 780px;
	margin: 0 auto;
}

/* ---------- Ad slots ---------- */

.uza-ad-slot {
	width: 100%;
	margin: 20px 0;
}

.uza-ad-slot:empty {
	display: none;
}

.uza-ad-slot--top,
.uza-ad-slot--middle,
.uza-ad-slot--bottom {
	min-height: 0;
}

/* ---------- Uploader ---------- */

.uza-uploader {
	padding: 0 16px;
}

.uza-dropzone {
	position: relative;
	border: 2px dashed var(--uza-border);
	border-radius: var(--uza-radius);
	background: var(--uza-surface);
	padding: 48px 24px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.uza-dropzone:hover,
.uza-dropzone:focus-visible {
	border-color: var(--uza-primary);
	background: #f5f7ff;
}

.uza-dropzone:focus-visible {
	outline: 2px solid var(--uza-primary);
	outline-offset: 3px;
}

.uza-dropzone.is-dragover {
	border-color: var(--uza-primary);
	background: #eef1ff;
}

.uza-dropzone__icon {
	width: 56px;
	height: 56px;
	padding: 12px;
	box-sizing: border-box;
	color: #fff;
	margin-bottom: 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--uza-primary), var(--uza-secondary));
	box-shadow: 0 4px 14px rgba(59, 91, 253, 0.3);
}

.uza-dropzone__title {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 4px;
}

.uza-dropzone__subtitle {
	color: var(--uza-text-muted);
	font-size: .9rem;
	margin: 0;
}

.uza-dropzone__progress {
	max-width: 420px;
	margin: 0 auto;
}

.uza-progress-bar {
	height: 8px;
	border-radius: 999px;
	background: var(--uza-border);
	overflow: hidden;
	margin-bottom: 10px;
}

.uza-progress-bar__fill {
	height: 100%;
	width: 0%;
	background: var(--uza-primary);
	transition: width .15s ease;
}

.uza-dropzone__status {
	color: var(--uza-text-muted);
	font-size: .9rem;
	margin: 0;
}

.uza-alert {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: var(--uza-radius-sm);
	font-size: .92rem;
	line-height: 1.5;
}

.uza-alert--error {
	background: var(--uza-error-bg);
	border: 1px solid var(--uza-error-border);
	color: var(--uza-error);
}

.uza-alert--warning {
	background: var(--uza-warning-bg);
	border: 1px solid var(--uza-warning-border);
	color: var(--uza-warning);
}

.uza-alert ul {
	margin: 6px 0 0;
	padding-left: 20px;
}

/* ---------- Results ---------- */

.uza-results {
	padding: 32px 16px 8px;
}

.uza-results__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.uza-results__filename {
	font-size: 1.15rem;
	font-weight: 700;
	word-break: break-all;
	margin: 0;
}

.uza-results__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.uza-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: clamp(.88rem, .82rem + .2vw, .96rem);
	font-weight: 700;
	padding: clamp(10px, 1vw, 13px) clamp(16px, 1.6vw, 22px);
	min-height: 44px;
	border-radius: 10px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
	background: none;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.uza-btn svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.uza-btn__label {
	display: inline-block;
}

.uza-btn:active {
	transform: translateY(1px) scale(.98);
}

.uza-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}

.uza-btn--primary {
	background: linear-gradient(135deg, var(--uza-primary), var(--uza-primary-dark));
	color: #fff;
	box-shadow: 0 2px 8px rgba(59, 91, 253, 0.28);
}
.uza-btn--primary:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--uza-primary-dark), #22349e);
	box-shadow: 0 4px 14px rgba(59, 91, 253, 0.36);
	transform: translateY(-1px);
}

.uza-btn--secondary {
	background: linear-gradient(135deg, var(--uza-secondary), var(--uza-secondary-dark));
	color: #fff;
	box-shadow: 0 2px 8px rgba(124, 58, 237, 0.28);
}
.uza-btn--secondary:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--uza-secondary-dark), #4c1d95);
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.36);
	transform: translateY(-1px);
}

.uza-btn--ghost {
	background: #fff;
	border-color: var(--uza-border);
	color: var(--uza-text);
}
.uza-btn--ghost:hover:not(:disabled) {
	border-color: var(--uza-primary);
	color: var(--uza-primary-dark);
	background: var(--uza-primary-light);
}

.uza-btn--danger {
	background: #fff;
	border-color: var(--uza-error-border);
	color: var(--uza-error);
}
.uza-btn--danger:hover:not(:disabled) {
	background: var(--uza-error-bg);
	border-color: var(--uza-error);
}

.uza-btn--sm {
	min-height: 32px;
	padding: 6px 10px;
	font-size: .78rem;
	border-radius: 8px;
}

.uza-btn.is-success {
	background: linear-gradient(135deg, var(--uza-success), #0a8c56) !important;
	box-shadow: 0 2px 8px rgba(18, 183, 106, 0.3);
}

.uza-btn:focus-visible {
	outline: 2px solid var(--uza-primary);
	outline-offset: 2px;
}

/* ---------- Stats dashboard ---------- */

.uza-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin-bottom: 8px;
}

.uza-stat-card {
	background: linear-gradient(160deg, #ffffff, var(--uza-surface));
	border: 1px solid var(--uza-border);
	border-radius: var(--uza-radius-sm);
	padding: clamp(14px, 1.5vw, 20px) clamp(16px, 1.8vw, 22px);
	border-left: 3px solid var(--uza-primary);
	transition: transform .15s ease, box-shadow .15s ease;
}

.uza-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--uza-shadow);
}

.uza-stat-card__value {
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--uza-primary-dark);
}

.uza-stat-card__label {
	font-size: clamp(.78rem, .7rem + .2vw, .86rem);
	color: var(--uza-text-muted);
	text-transform: uppercase;
	letter-spacing: .03em;
	margin-top: 3px;
}

/* ---------- Toolbar (search + filters) ---------- */

.uza-toolbar {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	margin: 24px 0 16px;
}

.uza-search {
	position: relative;
	flex: 1 1 260px;
	min-width: 200px;
}

.uza-wrapper .uza-search__icon {
	position: absolute !important;
	left: 16px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 18px !important;
	height: 18px !important;
	color: var(--uza-primary);
	pointer-events: none;
	z-index: 1;
}

/*
 * Hardened the same way as .uza-text-input below: WordPress themes
 * frequently ship higher-specificity or later-loaded `input` rules
 * (e.g. `.entry-content input[type="text"]`) that were silently
 * overriding padding-left here, pushing the typed/placeholder text
 * back under our absolutely-positioned icon. !important on the exact
 * box-model properties themes tend to touch fixes this for good,
 * regardless of theme load order or specificity.
 */
.uza-wrapper .uza-search__input {
	display: block;
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box !important;
	height: clamp(44px, 4vw, 50px) !important;
	min-height: 0 !important;
	padding: 0 16px 0 46px !important;
	margin: 0 !important;
	border: 1.5px solid var(--uza-border);
	border-radius: 999px;
	font-size: clamp(.9rem, .8rem + .3vw, 1rem) !important;
	font-family: inherit;
	line-height: normal !important;
	background: #fff;
	color: var(--uza-text);
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none !important;
	appearance: none !important;
}

/* Defensive: in case a browser or theme still applies search-field
   chrome to a stray input, strip its native decorations so our own
   icon/padding are always what's rendered. */
.uza-search__input::-webkit-search-decoration,
.uza-search__input::-webkit-search-cancel-button,
.uza-search__input::-webkit-search-results-button,
.uza-search__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
}

.uza-search__input:focus-visible,
.uza-search__input:focus {
	outline: none;
	border-color: var(--uza-primary);
	box-shadow: 0 0 0 4px var(--uza-primary-light);
}

.uza-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.uza-filter-btn {
	font-size: clamp(.82rem, .78rem + .15vw, .9rem);
	font-weight: 700;
	padding: clamp(8px, .8vw, 10px) clamp(14px, 1.4vw, 18px);
	min-height: 40px;
	border-radius: 999px;
	border: 1.5px solid var(--uza-border);
	background: #fff;
	color: var(--uza-text-muted);
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.uza-filter-btn:hover {
	border-color: var(--uza-primary);
	color: var(--uza-primary-dark);
	background: var(--uza-primary-light);
}

.uza-filter-btn:active {
	transform: scale(.96);
}

.uza-filter-btn.is-active {
	background: linear-gradient(135deg, var(--uza-primary), var(--uza-primary-dark));
	border-color: var(--uza-primary);
	color: #fff;
	box-shadow: 0 2px 6px rgba(59, 91, 253, 0.3);
}

/* ---------- Explorer (tree + viewer) ---------- */

.uza-explorer {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
	gap: 16px;
	border: 1px solid var(--uza-border);
	border-radius: var(--uza-radius);
	overflow: hidden;
	background: #fff;
	min-height: 360px;
}

@media (max-width: 760px) {
	.uza-explorer {
		grid-template-columns: 1fr;
	}
}

.uza-explorer__tree {
	border-right: 1px solid var(--uza-border);
	max-height: 560px;
	overflow: auto;
	padding: 10px 6px;
}

@media (max-width: 760px) {
	.uza-explorer__tree {
		border-right: none;
		border-bottom: 1px solid var(--uza-border);
		max-height: 280px;
	}
}

.uza-tree-node { font-size: clamp(.88rem, .84rem + .12vw, .95rem); }

.uza-tree-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 10px;
	min-height: 38px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uza-tree-row:hover {
	background: var(--uza-surface);
}

.uza-tree-row.is-selected {
	background: #eef1ff;
	color: var(--uza-primary-dark);
	font-weight: 600;
}

.uza-tree-row:focus-visible {
	outline: 2px solid var(--uza-primary);
	outline-offset: -2px;
}

.uza-tree-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.uza-tree-toggle {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	color: var(--uza-text-muted);
	transition: transform .1s ease;
}

.uza-tree-toggle.is-open { transform: rotate(90deg); }

.uza-tree-name {
	overflow: hidden;
	text-overflow: ellipsis;
}

.uza-tree-children {
	margin-left: 19px;
	border-left: 1px dashed var(--uza-border);
	padding-left: 5px;
}

.uza-tree-children[hidden] { display: none; }

.uza-tree-count {
	margin-left: auto;
	font-size: .78rem;
	color: var(--uza-text-muted);
	flex: 0 0 auto;
}

/* ---------- Viewer panel ---------- */

.uza-explorer__viewer {
	padding: clamp(18px, 2vw, 26px);
	overflow: auto;
	max-height: 560px;
}

.uza-viewer__empty {
	color: var(--uza-text-muted);
	font-size: .96rem;
	margin-top: 40px;
	text-align: center;
}

.uza-viewer__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.uza-viewer__name {
	font-weight: 700;
	font-size: clamp(1rem, .94rem + .25vw, 1.15rem);
	word-break: break-all;
	margin: 0 0 4px;
}

.uza-viewer__path {
	font-family: var(--uza-mono);
	font-size: .82rem;
	color: var(--uza-text-muted);
	word-break: break-all;
}

.uza-viewer__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 16px;
}

.uza-badge {
	font-size: .78rem;
	font-weight: 600;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--uza-surface);
	border: 1px solid var(--uza-border);
	color: var(--uza-text-muted);
}

.uza-viewer__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.uza-code-block {
	position: relative;
	margin-top: 4px;
}

.uza-code-block pre {
	background: #0d1117;
	color: #e6edf3;
	border-radius: var(--uza-radius-sm);
	padding: 18px;
	overflow: auto;
	max-height: 420px;
	font-family: var(--uza-mono);
	font-size: clamp(.84rem, .8rem + .15vw, .92rem);
	line-height: 1.6;
	margin: 0;
}

.uza-code-block code {
	white-space: pre;
}

.uza-image-preview {
	max-width: 100%;
	border-radius: var(--uza-radius-sm);
	border: 1px solid var(--uza-border);
	margin-top: 8px;
}

.uza-viewer__note {
	background: var(--uza-surface);
	border: 1px solid var(--uza-border);
	border-radius: var(--uza-radius-sm);
	padding: 12px 14px;
	font-size: .88rem;
	color: var(--uza-text-muted);
	margin-top: 10px;
}

/* ---------- Info grid (SEO content) ---------- */

.uza-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	padding: 32px 16px 40px;
}

.uza-info-card {
	background: var(--uza-surface);
	border: 1px solid var(--uza-border);
	border-radius: var(--uza-radius);
	padding: 20px;
}

.uza-info-card h2 {
	font-size: 1rem;
	margin: 0 0 10px;
}

.uza-info-card p,
.uza-info-card ol {
	font-size: .88rem;
	color: var(--uza-text-muted);
	line-height: 1.6;
	margin: 0;
	padding-left: 18px;
}

.uza-info-card p { padding-left: 0; }

/* ---------- Utility ---------- */

[hidden] { display: none !important; }

/* ==========================================================
 * Phase 2 additions: tabs, password block, Create ZIP UI,
 * WordPress info card, static indicators card, content search.
 * ========================================================== */

/* ---------- Tabs ---------- */

.uza-tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	margin: 0 16px 22px;
	background: var(--uza-surface);
	border: 1px solid var(--uza-border);
	border-radius: 12px;
}

.uza-tab {
	flex: 1 1 0;
	font-size: clamp(.92rem, .86rem + .25vw, 1.02rem);
	font-weight: 700;
	padding: clamp(11px, 1.1vw, 14px) 16px;
	min-height: 46px;
	border: none;
	border-radius: 9px;
	background: none;
	color: var(--uza-text-muted);
	cursor: pointer;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.uza-tab svg { width: 16px; height: 16px; }

.uza-tab:hover { color: var(--uza-text); }

.uza-tab.is-active {
	color: #fff;
	background: linear-gradient(135deg, var(--uza-primary), var(--uza-secondary));
	box-shadow: 0 2px 10px rgba(59, 91, 253, 0.35);
}

.uza-tab:focus-visible {
	outline: 2px solid var(--uza-primary);
	outline-offset: 2px;
}

.uza-panel[hidden] { display: none; }

/* ---------- Password block (Analyze mode) ---------- */

.uza-password-block {
	margin-top: 16px;
	padding: 16px;
	border-radius: var(--uza-radius);
	border: 1px solid var(--uza-warning-border);
	background: var(--uza-warning-bg);
}

.uza-password-block__title {
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--uza-warning);
}

.uza-password-block__hint {
	font-size: .85rem;
	color: var(--uza-text-muted);
	margin: 0 0 12px;
}

.uza-password-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.uza-password-row .uza-text-input { flex: 1 1 220px; }
.uza-password-row .uza-btn { flex: 0 0 auto; }

/*
 * Hardened input reset: many WordPress themes apply large global
 * padding/height/font-size to `input`, which otherwise makes these
 * fields look oversized inside the tool. Scoped to .uza-wrapper and
 * marked !important only on the specific properties themes most
 * commonly override, so the tool renders consistently regardless of
 * the active theme.
 */
.uza-wrapper .uza-text-input {
	box-sizing: border-box !important;
	display: block;
	width: 100%;
	max-width: 100%;
	height: 44px !important;
	min-height: 0 !important;
	padding: 0 14px !important;
	margin: 0;
	border: 1.5px solid var(--uza-border);
	border-radius: var(--uza-radius-sm);
	font-size: .9rem !important;
	line-height: 44px !important;
	font-family: inherit;
	background: #fff;
	color: var(--uza-text);
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.uza-wrapper .uza-text-input:focus-visible,
.uza-wrapper .uza-text-input:focus {
	outline: none;
	border-color: var(--uza-primary);
	box-shadow: 0 0 0 4px var(--uza-primary-light);
}

/* ---------- WordPress / security cards ---------- */

.uza-wp-card,
.uza-security-card {
	border: 1px solid var(--uza-border);
	border-radius: var(--uza-radius);
	background: var(--uza-surface);
	padding: 16px 18px;
	margin: 16px 0;
}

.uza-wp-card h3,
.uza-security-card h3 {
	margin: 0 0 10px;
	font-size: .95rem;
}

.uza-wp-card__row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 4px 10px;
	font-size: .86rem;
	padding: 3px 0;
}

.uza-wp-card__row dt { color: var(--uza-text-muted); font-weight: 600; }
.uza-wp-card__row dd { margin: 0; word-break: break-word; }

.uza-indicator-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px;
}

.uza-indicator-item {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: .84rem;
	padding: 8px 10px;
	border-radius: var(--uza-radius-sm);
	background: #fff;
	border: 1px solid var(--uza-border);
}

.uza-indicator-item.has-flags {
	border-color: var(--uza-warning-border);
	background: var(--uza-warning-bg);
	color: var(--uza-warning);
}

.uza-security-card__disclaimer {
	font-size: .78rem;
	color: var(--uza-text-muted);
	margin-top: 10px;
}

/* ---------- Content ("search inside files") search ---------- */

.uza-content-search {
	margin: 18px 0;
}

.uza-content-search__results {
	margin-top: 10px;
	border: 1px solid var(--uza-border);
	border-radius: var(--uza-radius-sm);
	max-height: 220px;
	overflow: auto;
}

.uza-content-search__item {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
	padding: 10px 14px;
	min-height: 44px;
	border: none;
	border-bottom: 1px solid var(--uza-border);
	background: #fff;
	cursor: pointer;
	font-size: .82rem;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.uza-content-search__item:last-child { border-bottom: none; }
.uza-content-search__item:hover { background: var(--uza-primary-light); }

.uza-content-search__item .uza-path {
	font-family: var(--uza-mono);
	font-weight: 700;
	color: var(--uza-primary-dark);
}

.uza-content-search__item .uza-snippet {
	display: block;
	color: var(--uza-text-muted);
	font-family: var(--uza-mono);
	margin-top: 2px;
	white-space: pre;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Create ZIP mode ---------- */

.uza-creator {
	padding: 0 16px;
}

.uza-creator__add-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.uza-creator__dropzone {
	border: 2px dashed var(--uza-border);
	border-radius: var(--uza-radius);
	background: var(--uza-surface);
	padding: 20px;
	text-align: center;
	color: var(--uza-text-muted);
	font-size: .9rem;
	margin-bottom: 16px;
}

.uza-creator__dropzone.is-dragover {
	border-color: var(--uza-primary);
	background: #eef1ff;
}

.uza-creator__list {
	border: 1px solid var(--uza-border);
	border-radius: var(--uza-radius-sm);
	max-height: 320px;
	overflow: auto;
	margin-bottom: 20px;
}

.uza-creator__list:empty { display: none; }

.uza-creator-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--uza-border);
	font-size: .85rem;
}

.uza-creator-row:last-child { border-bottom: none; }

.uza-creator-row__path {
	flex: 1;
	font-family: var(--uza-mono);
	font-size: .8rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.uza-creator-row__size {
	flex: 0 0 auto;
	color: var(--uza-text-muted);
	font-size: .78rem;
}

.uza-creator-row__remove {
	flex: 0 0 auto;
	background: none;
	border: none;
	color: var(--uza-error);
	cursor: pointer;
	font-size: .78rem;
	font-weight: 700;
	padding: 4px 6px;
}

.uza-creator__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 460px;
	margin-bottom: 16px;
}

.uza-field-label {
	font-size: .82rem;
	font-weight: 600;
	color: var(--uza-text-muted);
	margin-bottom: 4px;
	display: block;
}

.uza-checkbox-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 40px;
	padding: 6px 4px;
}

.uza-checkbox-row input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin: 0 !important;
	accent-color: var(--uza-primary);
	cursor: pointer;
	flex: 0 0 auto;
}

.uza-creator__password-fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border-radius: var(--uza-radius-sm);
	background: var(--uza-surface);
	border: 1px solid var(--uza-border);
}

.uza-creator__actions {
	margin-bottom: 20px;
}

.uza-creator__success {
	border: 1px solid var(--uza-border);
	border-radius: var(--uza-radius);
	background: var(--uza-surface);
	padding: 20px;
}

.uza-creator__success-title {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--uza-success);
	margin: 0 0 14px;
}

.uza-creator__success-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
}

@media (max-width: 600px) {
	.uza-creator__add-row .uza-btn,
	.uza-results__actions .uza-btn,
	.uza-creator__success-actions .uza-btn,
	.uza-password-row .uza-btn,
	.uza-viewer__actions .uza-btn {
		flex: 1 1 auto;
	}

	.uza-results__toolbar,
	.uza-creator__add-row,
	.uza-password-row,
	.uza-creator__success-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.uza-results__actions {
		width: 100%;
		flex-direction: column;
	}

	.uza-tabs {
		margin-left: 8px;
		margin-right: 8px;
	}

	.uza-tab {
		font-size: .84rem;
		padding: 10px 8px;
	}

	.uza-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.uza-viewer__header {
		flex-direction: column;
	}

	.uza-viewer__actions {
		width: 100%;
	}

	.uza-explorer__tree,
	.uza-explorer__viewer {
		max-height: 320px;
	}
}

/* Ensure every interactive control keeps a comfortable touch target
   on touch devices, regardless of pointer precision. */
@media (pointer: coarse) {
	.uza-btn,
	.uza-tab,
	.uza-filter-btn,
	.uza-tree-row,
	.uza-content-search__item {
		min-height: 44px;
	}

	.uza-wrapper .uza-search__input,
	.uza-wrapper .uza-text-input {
		height: 46px !important;
		line-height: 46px !important;
	}
}
