/* ========================================
   Kyatto Asset Manager — Cremish Minimal
   ======================================== */

/* ——— CSS Variables ——— */
:root {
	--bg-base: #fdfbf6;
	--bg-panel: rgba(255, 255, 255, 0.65);
	--bg-panel-solid: #f7f5f0;
	--bg-dark: #1a1a1a;
	--text-primary: #1a1a1a;
	--text-secondary: #6b6b6b;
	--text-muted: #9e9e9e;
	--accent: #1a1a1a;
	--accent-hover: #333333;
	--accent-knob: #ffffff;
	--border: rgba(0, 0, 0, 0.08);
	--border-hover: rgba(0, 0, 0, 0.15);
	--success: #22c55e;
	--success-bg: rgba(34, 197, 94, 0.08);
	--error: #ef4444;
	--error-bg: rgba(239, 68, 68, 0.08);
	--link-blue: #2563eb;
	--link-blue-hover: #1d4ed8;
	--code-bg: #1a1a1a;
	--code-text: #22c55e;
	--radius-lg: 16px;
	--radius-md: 12px;
	--radius-sm: 8px;
	--shadow-panel: 0px 8px 32px rgba(0, 0, 0, 0.04);
	--shadow-hover: 0px 12px 40px rgba(0, 0, 0, 0.08);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--font-display: "Mochiy Pop P One", cursive;
	--font-body: "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;
}

/* ——— Reset & Base ——— */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--text-primary);
	background: var(--bg-base);
	min-height: 100vh;
	padding: 40px 20px;
}

/* ——— Layout ——— */
.container {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ——— Header ——— */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 8px;
	margin-bottom: 8px;
}

.header-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.header-brand {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.logo {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 400;
	color: var(--text-primary);
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.subtitle {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
}

/* Status Indicator */
.status-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: var(--bg-panel-solid);
	border-radius: 100px;
	border: 1px solid var(--border);
}

.status-dot {
	width: 8px;
	height: 8px;
	background: var(--success);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.15);
	}
}

.status-text {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ——— Panel Base ——— */
.panel {
	background: var(--bg-panel);
	backdrop-filter: blur(24px) saturate(1.2);
	-webkit-backdrop-filter: blur(24px) saturate(1.2);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: var(--shadow-panel);
	border-radius: var(--radius-lg);
	padding: 24px;
	transition: box-shadow 0.3s var(--transition-smooth);
}

.panel:hover {
	box-shadow: var(--shadow-hover);
}

/* ——— Config Panel ——— */
.config-panel {
	padding: 16px 24px;
}

.config-grid {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 32px;
}

.config-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.config-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--text-secondary);
}

/* Mode Toggle (label + toggle + label) */
.mode-toggle-item {
	gap: 14px;
}

.toggle-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.toggle-text {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	transition: color 0.3s var(--transition-smooth);
	user-select: none;
}

.toggle-text.active {
	color: var(--accent);
}

/* ——— Toggle Switch ——— */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	cursor: pointer;
	flex-shrink: 0;
}

.toggle-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-track {
	position: absolute;
	inset: 0;
	background: #e5e5e5;
	border-radius: 100px;
	transition: background 0.3s var(--transition-smooth);
}

.toggle-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: var(--accent-knob);
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s var(--transition-smooth);
}

.toggle-switch input:checked + .toggle-track {
	background: var(--accent);
}

.toggle-switch input:checked + .toggle-track .toggle-knob {
	transform: translateX(22px);
}

.toggle-switch input:focus + .toggle-track {
	box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.12);
}

/* Bucket Display */
.bucket-display {
	margin-left: auto;
	gap: 8px;
	padding: 6px 14px;
	background: var(--bg-panel-solid);
	border-radius: 100px;
	border: 1px solid var(--border);
}

.bucket-name {
	font-family: "SF Mono", "Consolas", monospace;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	letter-spacing: 0.3px;
}

/* ——— Upload Panel ——— */
.upload-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ——— Dropzone ——— */
.dropzone {
	position: relative;
	border: 2px dashed rgba(0, 0, 0, 0.12);
	border-radius: var(--radius-md);
	background: var(--bg-base);
	transition: all 0.3s var(--transition-smooth);
	cursor: pointer;
	overflow: hidden;
}

.dropzone::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	opacity: 0;
	transition: opacity 0.3s var(--transition-smooth);
}

.dropzone:hover {
	border-color: var(--border-hover);
	background: #faf8f3;
}

.dropzone.dragover {
	border-color: var(--accent);
	border-style: solid;
	background: rgba(26, 26, 26, 0.02);
	transform: scale(1.005);
}

.dropzone.has-files {
	border-style: solid;
	border-color: var(--border);
	background: var(--bg-panel-solid);
}

.dropzone input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.dropzone-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
	gap: 8px;
	pointer-events: none;
	transition:
		opacity 0.3s var(--transition-smooth),
		transform 0.3s var(--transition-smooth);
}

.dropzone.has-files .dropzone-content {
	opacity: 0;
	transform: scale(0.95);
	position: absolute;
	pointer-events: none;
}

.dropzone-icon {
	color: var(--text-muted);
	margin-bottom: 4px;
}

.dropzone-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
}

.dropzone-hint {
	font-size: 13px;
	color: var(--text-muted);
}

.dropzone-mode-hint {
	font-size: 11px;
	font-weight: 500;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 4px;
	padding: 4px 10px;
	background: var(--bg-panel-solid);
	border-radius: 100px;
	border: 1px solid var(--border);
}

/* ——— Selected Files ——— */
.selected-files {
	animation: slideUp 0.3s var(--transition-smooth);
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.files-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding: 0 4px;
}

.files-count {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.files-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 320px;
	overflow-y: auto;
	padding-right: 4px;
}

.files-list::-webkit-scrollbar {
	width: 4px;
}

.files-list::-webkit-scrollbar-track {
	background: transparent;
}

.files-list::-webkit-scrollbar-thumb {
	background: var(--border-hover);
	border-radius: 100px;
}

/* ——— File Pill ——— */
.file-pill {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: var(--bg-panel-solid);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: all 0.2s var(--transition-smooth);
	animation: pillEnter 0.25s var(--transition-smooth) backwards;
}

@keyframes pillEnter {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.file-pill:hover {
	border-color: var(--border-hover);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.file-pill-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	flex-shrink: 0;
	color: var(--text-secondary);
	font-size: 18px;
}

.file-pill-icon i {
	font-size: 18px;
}

.file-pill-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.file-pill-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.file-pill-meta {
	font-size: 11px;
	color: var(--text-muted);
	font-weight: 500;
}

.file-pill-remove {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: var(--text-muted);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.2s var(--transition-smooth);
	flex-shrink: 0;
}

.file-pill-remove:hover {
	background: var(--error-bg);
	color: var(--error);
}

/* ——— Buttons ——— */
.btn-upload {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	padding: 0 24px;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	cursor: pointer;
	transition: all 0.25s var(--transition-smooth);
	position: relative;
	overflow: hidden;
}

.btn-upload::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
	transform: translateX(-100%);
	transition: transform 0.6s var(--transition-smooth);
}

.btn-upload:hover:not(:disabled) {
	background: var(--accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-upload:hover:not(:disabled)::after {
	transform: translateX(100%);
}

.btn-upload:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-upload:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.btn-upload.uploading {
	background: var(--text-muted);
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.2s var(--transition-smooth);
}

.btn-primary:hover {
	background: var(--accent-hover);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--bg-panel-solid);
	color: var(--text-primary);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s var(--transition-smooth);
}

.btn-secondary:hover {
	background: white;
	border-color: var(--border-hover);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	color: var(--text-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.2s var(--transition-smooth);
}

.btn-icon:hover {
	background: var(--bg-panel-solid);
	color: var(--text-primary);
	border-color: var(--border-hover);
}

.btn-text {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: transparent;
	color: var(--text-muted);
	border: none;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s var(--transition-smooth);
}

.btn-text:hover {
	color: var(--error);
	background: var(--error-bg);
}

/* ——— Progress Bar ——— */
.progress-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
	animation: slideUp 0.3s var(--transition-smooth);
}

.progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 4px;
}

.progress-status {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
}

.progress-percent {
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.progress-track {
	width: 100%;
	height: 6px;
	background: #e5e5e5;
	border-radius: 100px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	width: 0%;
	background: var(--accent);
	border-radius: 100px;
	transition: width 0.4s var(--transition-smooth);
}

/* ——— Results Panel ——— */
.results-panel {
	animation: slideUp 0.4s var(--transition-smooth);
}

.results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.results-title-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.panel-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-primary);
}

.results-badge {
	font-size: 11px;
	font-weight: 600;
	color: var(--text-muted);
	padding: 4px 10px;
	background: var(--bg-panel-solid);
	border-radius: 100px;
	border: 1px solid var(--border);
}

.results-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ——— Result Item ——— */
.result-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
	animation: resultEnter 0.3s var(--transition-smooth) backwards;
}

@keyframes resultEnter {
	from {
		opacity: 0;
		transform: translateX(-8px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.result-item:last-child {
	border-bottom: none;
}

.result-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-panel-solid);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	flex-shrink: 0;
	font-size: 20px;
	color: var(--text-secondary);
}

.result-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.result-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.result-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.result-size {
	font-size: 11px;
	color: var(--text-muted);
	font-weight: 500;
}

.result-status {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 100px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.result-status.success {
	background: var(--success-bg);
	color: var(--success);
}

.result-status.error {
	background: var(--error-bg);
	color: var(--error);
}

.result-url {
	font-size: 12px;
	color: var(--link-blue);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 280px;
	transition: color 0.2s var(--transition-smooth);
	font-family: "SF Mono", "Consolas", monospace;
}

.result-url:hover {
	color: var(--link-blue-hover);
	text-decoration: underline;
}

.result-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.btn-copy {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	background: var(--bg-panel-solid);
	color: var(--text-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s var(--transition-smooth);
}

.btn-copy:hover {
	background: white;
	color: var(--text-primary);
	border-color: var(--border-hover);
}

.btn-copy.copied {
	background: var(--success-bg);
	color: var(--success);
	border-color: var(--success);
}

.btn-direct {
	font-size: 11px;
	font-weight: 600;
	color: var(--link-blue);
	background: transparent;
	border: none;
	cursor: pointer;
	transition: color 0.2s var(--transition-smooth);
	padding: 6px 8px;
	white-space: nowrap;
}

.btn-direct:hover {
	color: var(--link-blue-hover);
	text-decoration: underline;
}

/* ——— Toast Notifications ——— */
.toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	transform: translateX(120%);
	transition: transform 0.4s var(--transition-smooth);
	pointer-events: all;
	max-width: 360px;
}

.toast.show {
	transform: translateX(0);
}

.toast-success {
	background: white;
	color: var(--success);
	border: 1px solid var(--success);
}

.toast-error {
	background: white;
	color: var(--error);
	border: 1px solid var(--error);
}

.toast-icon {
	flex-shrink: 0;
}

/* ——— JSON Modal ——— */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(253, 251, 246, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: modalFadeIn 0.3s var(--transition-smooth);
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.modal-content {
	background: white;
	border-radius: var(--radius-lg);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
	width: 100%;
	max-width: 640px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: modalSlideIn 0.35s var(--transition-smooth);
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--border);
}

.modal-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
}

.code-block-wrapper {
	position: relative;
	flex: 1;
	overflow: hidden;
	margin: 20px 24px;
	border-radius: var(--radius-sm);
}

.code-block {
	background: var(--code-bg);
	color: var(--code-text);
	padding: 20px;
	border-radius: var(--radius-sm);
	font-family: "SF Mono", "Consolas", "Monaco", monospace;
	font-size: 12px;
	line-height: 1.8;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
	max-height: 50vh;
	overflow-y: auto;
}

.code-block::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.code-block::-webkit-scrollbar-track {
	background: transparent;
}

.code-block::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 100px;
}

.code-block::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.25);
}

.btn-copy-code {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.2s var(--transition-smooth);
}

.btn-copy-code:hover {
	background: rgba(255, 255, 255, 0.2);
	color: white;
}

.btn-copy-code.copied {
	background: var(--success);
	color: white;
	border-color: var(--success);
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 24px 20px;
	border-top: 1px solid var(--border);
}

/* ——— Icons ——— */
.icon-xl {
	width: 48px;
	height: 48px;
	stroke-width: 1.2;
}

.icon-sm {
	width: 16px;
	height: 16px;
	stroke-width: 2;
}

.icon-xs {
	width: 14px;
	height: 14px;
	stroke-width: 2;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
	body {
		padding: 20px 16px;
	}

	.header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.config-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.bucket-display {
		grid-column: span 2;
		margin-left: 0;
		justify-content: center;
	}

	.result-item {
		flex-wrap: wrap;
		gap: 10px;
	}

	.result-url {
		max-width: 200px;
	}

	.dropzone-content {
		padding: 36px 20px;
	}

	.modal-content {
		max-height: 90vh;
	}
}

@media (max-width: 480px) {
	.config-grid {
		grid-template-columns: 1fr;
	}

	.bucket-display {
		grid-column: span 1;
	}

	.results-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.results-actions {
		width: 100%;
		justify-content: flex-end;
	}

	.result-actions {
		width: 100%;
		justify-content: flex-end;
	}
}

/* ——— Utility ——— */
.hidden {
	display: none !important;
}

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