/* file-validator — generated by scripts/tools-v2/build-tool-css.js from
   views/v1-backup/tools-file-validator.ejs. DO NOT EDIT BY HAND: npm run test:tools-page-v2
   regenerates it and fails if this file has drifted.

   The shared vocabulary (.btn-primary, .form-input, .tool-card, .badge-*,
   .toast-*, #map, headings) is NOT here — public/css/tools-page-v2.css
   declares it once for every tool page. What is left is this tool's own,
   with its colour literals resolved to theme tokens and every selector
   scoped to the tool body so nothing reaches the shared header. */

.tpv2-body .floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: var(--sk-success-soft);
  border: 1px solid color-mix(in srgb, var(--sk-success) 30%, transparent);
  border-radius: 9999px;
  color: var(--sk-success-text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tpv2-body .form-input:disabled,
.tpv2-body .form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tpv2-body .section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--sk-success-soft), transparent);
  margin: 1.5rem 0;
}

.tpv2-body .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--sk-success) 40%, transparent);
}

.tpv2-body .btn-secondary:hover:not(:disabled) {
  background: var(--sk-border);
  border-color: var(--sk-border-2);
}

.tpv2-body .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sk-danger-soft);
  border: 1px solid color-mix(in srgb, var(--sk-danger) 30%, transparent);
  color: var(--sk-danger-text);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tpv2-body .btn-danger:hover:not(:disabled) {
  background: var(--sk-danger-soft);
  border-color: color-mix(in srgb, var(--sk-danger) 50%, transparent);
}

.tpv2-body .card {
  background: var(--sk-bg);
  border: 1px solid var(--sk-border-2);
  border-radius: 0.9rem;
  padding: 1.5rem;
}

.tpv2-body .mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tpv2-body .mode-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--sk-border);
  border: 1px solid var(--sk-border-2);
  color: var(--sk-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tpv2-body .mode-tab:hover {
  background: var(--sk-border);
}

.tpv2-body .mode-tab.active {
  background: var(--sk-success-soft);
  border-color: color-mix(in srgb, var(--sk-success) 40%, transparent);
  color: var(--sk-success-text);
}

.tpv2-body .drop-zone {
  border: 2px dashed var(--sk-border-2);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tpv2-body .drop-zone:hover,
.tpv2-body .drop-zone.dragover {
  border-color: color-mix(in srgb, var(--sk-success) 60%, transparent);
  background: var(--sk-success-soft);
}

.tpv2-body .drop-zone.dragover {
  transform: scale(1.02);
}

.tpv2-body .file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tpv2-body .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--sk-surface);
  border-radius: 0.5rem;
  border: 1px solid var(--sk-border-2);
}

.tpv2-body .file-item .file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tpv2-body .file-item .file-type {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--sk-success-soft);
  color: var(--sk-success-text);
}

.tpv2-body .file-item .remove-file {
  color: var(--sk-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.tpv2-body .file-item .remove-file:hover {
  color: var(--sk-danger-text);
}

.tpv2-body .ftp-browser {
  border: 1px solid var(--sk-border-2);
  border-radius: 0.75rem;
  overflow: hidden;
}

.tpv2-body .ftp-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--sk-surface);
  border-bottom: 1px solid var(--sk-border-2);
}

.tpv2-body .ftp-path {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  color: var(--sk-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpv2-body .ftp-list {
  max-height: 400px;
  overflow-y: auto;
}

.tpv2-body .ftp-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--sk-border-2);
  cursor: pointer;
  transition: background 0.2s;
}

.tpv2-body .ftp-item:hover {
  background: var(--sk-border);
}

.tpv2-body .ftp-item.selected {
  background: var(--sk-success-soft);
}

.tpv2-body .ftp-item i {
  flex-shrink: 0;
  width: 1.25rem;
  color: var(--sk-muted);
}

.tpv2-body .ftp-item.folder i {
  color: var(--sk-warning-text);
}

.tpv2-body .ftp-item .checkbox {
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.tpv2-body .ftp-item .filename {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpv2-body .ftp-item .file-type {
  flex-shrink: 0;
}

.tpv2-body .ftp-item .file-size {
  flex-shrink: 0;
  margin-left: auto;
}

.tpv2-body .results-panel {
  background: var(--sk-bg);
  border: 1px solid var(--sk-border-2);
  border-radius: 0.9rem;
  overflow: hidden;
}

.tpv2-body .results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--sk-surface);
  border-bottom: 1px solid var(--sk-border-2);
}

.tpv2-body .results-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  max-height: 300px;
  padding: 0.75rem 1rem;
  background: var(--sk-surface);
  border-bottom: 1px solid var(--sk-border-2);
}

.tpv2-body .result-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--sk-border);
  border: 1px solid transparent;
  color: var(--sk-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.tpv2-body .result-tab:hover {
  background: var(--sk-border);
}

.tpv2-body .result-tab.active {
  background: var(--sk-success-soft);
  border-color: color-mix(in srgb, var(--sk-success) 30%, transparent);
  color: var(--sk-text);
}

.tpv2-body .result-tab.valid {
  border-left: 3px solid var(--sk-success);
}

.tpv2-body .result-tab.invalid {
  border-left: 3px solid var(--sk-danger);
}

.tpv2-body .result-tab.warnings {
  border-left: 3px solid var(--sk-warning);
}

.tpv2-body .result-tab-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.tpv2-body .result-filename {
  font-weight: 500;
  color: var(--sk-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tpv2-body .result-path {
  font-size: 0.7rem;
  color: var(--sk-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 0.15rem;
}

.tpv2-body .status-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.tpv2-body .status-badge.valid {
  background: var(--sk-success-soft);
  color: var(--sk-success-text);
}

.tpv2-body .status-badge.invalid {
  background: var(--sk-danger-soft);
  color: var(--sk-danger-text);
}

.tpv2-body .status-badge.warnings {
  background: var(--sk-warning-soft);
  color: var(--sk-warning-text);
}

.tpv2-body .issues-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
}

.tpv2-body .issue-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.tpv2-body .issue-item:hover {
  background: var(--sk-border);
}

.tpv2-body .issue-item.error {
  border-left: 3px solid var(--sk-danger);
  background: var(--sk-danger-soft);
}

.tpv2-body .issue-item.warning {
  border-left: 3px solid var(--sk-warning);
  background: var(--sk-warning-soft);
}

.tpv2-body .issue-item.info {
  border-left: 3px solid var(--sk-info);
  background: var(--sk-info-soft);
}

.tpv2-body .issue-icon {
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.tpv2-body .issue-item.error .issue-icon {
  color: var(--sk-danger-text);
}

.tpv2-body .issue-item.warning .issue-icon {
  color: var(--sk-warning-text);
}

.tpv2-body .issue-item.info .issue-icon {
  color: var(--sk-info-text);
}

.tpv2-body .issue-line {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: var(--sk-muted);
  background: var(--sk-border);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
}

.tpv2-body .issue-message {
  color: var(--sk-text);
  font-size: 0.875rem;
}

.tpv2-body .issue-suggestion {
  font-size: 0.8rem;
  color: var(--sk-muted);
  margin-top: 0.25rem;
}

.tpv2-body .editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.tpv2-body .editor-modal.active {
  display: flex;
}

.tpv2-body .editor-container {
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  background: var(--sk-bg);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tpv2-body .editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--sk-surface);
  border-bottom: 1px solid var(--sk-border-2);
}

.tpv2-body .editor-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.tpv2-body .editor-content {
  flex: 1;
  min-width: 0;
}

.tpv2-body .editor-sidebar {
  width: 320px;
  border-left: 1px solid var(--sk-border-2);
  display: flex;
  flex-direction: column;
  background: var(--sk-bg);
}

.tpv2-body .editor-sidebar-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sk-border-2);
  font-weight: 500;
  color: var(--sk-text);
}

.tpv2-body .editor-issues {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.tpv2-body .editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--sk-surface);
  border-top: 1px solid var(--sk-border-2);
}

.tpv2-body .CodeMirror {
  height: 100%;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
}

.tpv2-body .cm-error-line {
  background: var(--sk-danger-soft) !important;
}

.tpv2-body .cm-warning-line {
  background: var(--sk-warning-soft) !important;
}

.tpv2-body .cm-error-gutter {
  color: var(--sk-danger-text);
}

.tpv2-body .cm-warning-gutter {
  color: var(--sk-warning-text);
}

.tpv2-body .summary-card {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  background: var(--sk-surface);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.tpv2-body .summary-item {
  text-align: center;
}

.tpv2-body .summary-value {
  font-size: 1.5rem;
  font-weight: 600;
}

.tpv2-body .summary-label {
  font-size: 0.75rem;
  color: var(--sk-muted);
  text-transform: uppercase;
}

.tpv2-body .summary-item.errors .summary-value {
  color: var(--sk-danger-text);
}

.tpv2-body .summary-item.warnings .summary-value {
  color: var(--sk-warning-text);
}

.tpv2-body .summary-item.valid .summary-value {
  color: var(--sk-success-text);
}

.tpv2-body .loading-overlay {
  position: absolute;
  inset: 0;
  background: var(--sk-bg);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.tpv2-body .loading-overlay.active {
  display: flex;
}

.tpv2-body .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--sk-border-2);
  border-top-color: var(--sk-success);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tpv2-body .empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--sk-muted);
}

.tpv2-body .empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.tpv2-body .notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
  transform: translateX(150%);
  transition: transform 0.3s ease;
}

.tpv2-body .notification.show {
  transform: translateX(0);
}

.tpv2-body .notification.success {
  background: var(--sk-success);
  color: white;
}

.tpv2-body .notification.error {
  background: var(--sk-danger);
  color: white;
}

.tpv2-body .notification.info {
  background: var(--sk-info);
  color: white;
}

@media screen and (max-width: 1024px) {
.tpv2-body main .grid {
  display: block !important;
}

.tpv2-body main .grid > * {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 1rem !important;
}

.tpv2-body main .grid > *:last-child {
  margin-bottom: 0 !important;
}
}

@media screen and (max-width: 768px) {
.tpv2-body main {
  padding: 0.75rem !important;
  max-width: 100% !important;
}

.tpv2-body main .grid {
  display: block !important;
}

.tpv2-body main .grid > * {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

.tpv2-body main .flex {
  flex-direction: column !important;
  align-items: stretch !important;
}

.tpv2-body .mode-tabs,
.tpv2-body .floating-badge,
.tpv2-body .status-badge,
.tpv2-body .ftp-header,
.tpv2-body .results-header,
.tpv2-body .file-item,
.tpv2-body .ftp-item {
  flex-direction: row !important;
  flex-wrap: wrap !important;
}

.tpv2-body .mb-8 {
  margin-bottom: 1rem !important;
}

.tpv2-body main > div:first-child p {
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
}

.tpv2-body .floating-badge {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.65rem !important;
  display: inline-flex !important;
  flex-direction: row !important;
}

.tpv2-body .card {
  padding: 0.875rem !important;
  border-radius: 0.75rem !important;
  margin-bottom: 1rem !important;
}

.tpv2-body .mode-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-bottom: 1rem !important;
}

.tpv2-body .mode-tab {
  flex: 1 1 calc(50% - 0.25rem) !important;
  min-width: 0 !important;
  padding: 0.75rem 0.5rem !important;
  font-size: 0.8rem !important;
  text-align: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
}

.tpv2-body .mode-tab i {
  margin-right: 0.35rem !important;
}

.tpv2-body .drop-zone {
  padding: 2rem 1rem !important;
  min-height: 150px !important;
}

.tpv2-body .drop-zone i {
  font-size: 2.5rem !important;
  margin-bottom: 0.75rem !important;
}

.tpv2-body .drop-zone p {
  font-size: 0.85rem !important;
  margin-bottom: 0.5rem !important;
}

.tpv2-body .btn-primary,
.tpv2-body .btn-secondary,
.tpv2-body .btn-danger {
  width: 100% !important;
  min-height: 48px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.9rem !important;
  justify-content: center !important;
  margin-bottom: 0.5rem !important;
}

.tpv2-body .btn-sm {
  min-height: 44px !important;
  padding: 0.6rem 0.75rem !important;
}

.tpv2-body .mt-4 > .flex,
.tpv2-body .flex.gap-2 {
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.tpv2-body .file-list {
  max-height: none !important;
  overflow: visible !important;
}

.tpv2-body .file-item {
  padding: 0.75rem !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.tpv2-body .file-item .file-info {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.tpv2-body .file-item .file-info span {
  font-size: 0.85rem !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.tpv2-body .ftp-browser {
  border-radius: 0.5rem !important;
}

.tpv2-body .ftp-header {
  padding: 0.75rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.tpv2-body .ftp-path {
  flex: 1 1 100% !important;
  order: 10 !important;
  font-size: 0.75rem !important;
  margin-top: 0.5rem !important;
  padding: 0.5rem !important;
  background: rgba(0,0,0,0.2) !important;
  border-radius: 0.25rem !important;
  word-break: break-all !important;
}

.tpv2-body .ftp-list {
  max-height: none !important;
  overflow: visible !important;
}

.tpv2-body .ftp-item {
  padding: 0.75rem !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.tpv2-body .ftp-item .filename {
  flex: 1 !important;
  font-size: 0.85rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.tpv2-body .ftp-item .file-size {
  font-size: 0.7rem !important;
}

.tpv2-body .results-panel {
  border-radius: 0.75rem !important;
  margin-top: 0 !important;
  overflow-x: hidden !important;
}

.tpv2-body .results-header {
  padding: 0.75rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.tpv2-body .results-header h3 {
  font-size: 1rem !important;
}

.tpv2-body .results-tabs {
  padding: 0.5rem !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.tpv2-body .result-tab {
  padding: 0.6rem 0.75rem !important;
  min-height: 50px !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.tpv2-body .result-tab-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.tpv2-body .result-filename {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--sk-text) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

.tpv2-body .result-path {
  font-size: 0.65rem !important;
  color: var(--sk-muted) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  margin-top: 0.1rem !important;
}

.tpv2-body .result-tab .status-badge {
  flex-shrink: 0 !important;
  font-size: 0.55rem !important;
  padding: 0.15rem 0.35rem !important;
  margin-left: 0.5rem !important;
}

.tpv2-body .summary-card {
  padding: 0.75rem !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.5rem !important;
}

.tpv2-body .summary-item {
  text-align: center !important;
  padding: 0.5rem !important;
  background: var(--sk-surface) !important;
  border-radius: 0.5rem !important;
}

.tpv2-body .summary-item .summary-value {
  font-size: 1.25rem !important;
}

.tpv2-body .summary-item .summary-label {
  font-size: 0.6rem !important;
}

.tpv2-body .issues-list {
  max-height: none !important;
  overflow: visible !important;
  padding: 0.5rem !important;
}

.tpv2-body .issue-item {
  padding: 0.75rem !important;
  margin-bottom: 0.5rem !important;
}

.tpv2-body .issue-line {
  font-size: 0.65rem !important;
}

.tpv2-body .issue-message {
  font-size: 0.8rem !important;
}

.tpv2-body .issue-suggestion {
  font-size: 0.7rem !important;
}

.tpv2-body #file-types-grid {
  display: block !important;
}

.tpv2-body #file-types-grid > * {
  margin-bottom: 0.75rem !important;
}

.tpv2-body .empty-state {
  padding: 2rem 1rem !important;
  text-align: center !important;
}

.tpv2-body .empty-state i {
  font-size: 2rem !important;
  margin-bottom: 0.75rem !important;
}

.tpv2-body .empty-state h3 {
  font-size: 1rem !important;
  margin-bottom: 0.5rem !important;
}

.tpv2-body .empty-state p {
  font-size: 0.85rem !important;
}

.tpv2-body .notification {
  position: fixed !important;
  bottom: 1rem !important;
  left: 1rem !important;
  right: 1rem !important;
  padding: 0.875rem 1rem !important;
  font-size: 0.85rem !important;
  border-radius: 0.5rem !important;
  z-index: 9999 !important;
}

.tpv2-body .editor-modal {
  padding: 0.5rem !important;
}

.tpv2-body .editor-container {
  max-height: 95vh !important;
  border-radius: 0.75rem !important;
}

.tpv2-body .editor-header {
  padding: 0.75rem !important;
  display: block !important;
}

.tpv2-body .editor-header > div:first-child {
  margin-bottom: 0.75rem !important;
}

.tpv2-body .editor-header > div:last-child {
  display: flex !important;
  gap: 0.5rem !important;
}

.tpv2-body #editor-filename {
  font-size: 0.85rem !important;
  word-break: break-all !important;
}

.tpv2-body .editor-body {
  flex-direction: column !important;
}

.tpv2-body .editor-sidebar {
  width: 100% !important;
  max-height: 150px !important;
  border-left: none !important;
  border-top: 1px solid var(--sk-border-2) !important;
}

.tpv2-body .editor-footer {
  padding: 0.75rem !important;
  display: block !important;
}

.tpv2-body .editor-footer > div {
  display: flex !important;
  gap: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.tpv2-body .editor-footer button {
  flex: 1 !important;
}

.tpv2-body .CodeMirror {
  font-size: 12px !important;
}
}

@media screen and (max-width: 480px) {
.tpv2-body main {
  padding: 0.5rem !important;
}

.tpv2-body .card {
  padding: 0.65rem !important;
}

.tpv2-body .mode-tab {
  flex: 1 1 100% !important;
  padding: 0.65rem !important;
}

.tpv2-body .drop-zone {
  padding: 1.5rem 0.75rem !important;
  min-height: 120px !important;
}

.tpv2-body .drop-zone i {
  font-size: 2rem !important;
}

.tpv2-body .ftp-item,
.tpv2-body .file-item {
  flex-wrap: wrap !important;
}

.tpv2-body .ftp-item .filename,
.tpv2-body .file-item .file-info span {
  flex: 1 1 calc(100% - 50px) !important;
}

.tpv2-body .summary-item {
  min-width: 50px !important;
}

.tpv2-body .summary-item .summary-value {
  font-size: 1.1rem !important;
}
}

@media (hover: none) and (pointer: coarse) {
.tpv2-body .mode-tab,
.tpv2-body .btn-primary,
.tpv2-body .btn-secondary,
.tpv2-body .btn-danger,
.tpv2-body .ftp-item,
.tpv2-body .file-item,
.tpv2-body .result-tab,
.tpv2-body .issue-item {
  min-height: 44px !important;
}

.tpv2-body .mode-tab:active,
.tpv2-body .btn-primary:active,
.tpv2-body .btn-secondary:active,
.tpv2-body .btn-danger:active {
  transform: scale(0.97) !important;
  opacity: 0.85 !important;
}

.tpv2-body .ftp-item:active,
.tpv2-body .file-item:active,
.tpv2-body .result-tab:active {
  background: var(--sk-success-soft) !important;
}

.tpv2-body .btn-primary:hover,
.tpv2-body .btn-secondary:hover,
.tpv2-body .mode-tab:hover {
  transform: none !important;
}
}

@media screen and (max-height: 500px) and (orientation: landscape) {
.tpv2-body .drop-zone {
  padding: 1rem !important;
  min-height: 100px !important;
}

.tpv2-body .ftp-list,
.tpv2-body .file-list {
  max-height: 150px !important;
}

.tpv2-body .editor-sidebar {
  max-height: 80px !important;
}
}

@media (prefers-reduced-motion: reduce) {
.tpv2-body * {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
}

@supports (padding: max(0px)) {
@media screen and (max-width: 768px) {
.tpv2-body main {
  padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
  padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
}

.tpv2-body .notification {
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  left: max(1rem, env(safe-area-inset-left)) !important;
  right: max(1rem, env(safe-area-inset-right)) !important;
}
}
}
