/* mission-files — generated by scripts/tools-v2/build-tool-css.js from
   views/v1-backup/tools-mission-files.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-primary-soft);
  border: 1px solid color-mix(in srgb, var(--sk-primary) 30%, transparent);
  border-radius: 9999px;
  color: var(--sk-primary-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 .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--sk-primary) 40%, transparent);
}

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

.tpv2-body .btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--sk-success) 0%, var(--sk-success) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.tpv2-body .btn-success:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tpv2-body .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

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

.tpv2-body .map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.tpv2-body .map-card {
  background: var(--sk-surface);
  border: 2px solid var(--sk-border-2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tpv2-body .map-card:hover {
  border-color: color-mix(in srgb, var(--sk-primary) 40%, transparent);
  background: var(--sk-primary-soft);
}

.tpv2-body .map-card.selected {
  border-color: color-mix(in srgb, var(--sk-primary) 80%, transparent);
  background: var(--sk-primary-soft);
}

.tpv2-body .map-card .map-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--sk-primary-text);
}

.tpv2-body .map-card .map-name {
  font-weight: 600;
  color: var(--sk-text);
  margin-bottom: 0.25rem;
}

.tpv2-body .map-card .map-desc {
  font-size: 0.75rem;
  color: var(--sk-muted);
}

.tpv2-body .variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tpv2-body .variant-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  background: var(--sk-border);
  border: 1px solid var(--sk-border-2);
  color: var(--sk-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tpv2-body .variant-pill:hover {
  background: var(--sk-border);
}

.tpv2-body .variant-pill.selected {
  background: var(--sk-primary-soft);
  border-color: color-mix(in srgb, var(--sk-primary) 50%, transparent);
  color: var(--sk-primary-text);
}

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

.tpv2-body .file-browser-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 .breadcrumb {
  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 .file-list {
  max-height: 400px;
  overflow-y: auto;
}

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

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

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

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

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

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

.tpv2-body .file-item .filename {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sk-text);
}

.tpv2-body .file-item .file-size {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--sk-muted);
}

.tpv2-body .file-item .file-actions {
  display: flex;
  gap: 0.5rem;
}

.tpv2-body .file-item .file-actions button {
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 0.375rem;
  background: var(--sk-border);
  border: 1px solid var(--sk-border-2);
  color: var(--sk-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tpv2-body .file-item .file-actions button:hover {
  background: var(--sk-primary-soft);
  border-color: color-mix(in srgb, var(--sk-primary) 40%, transparent);
  color: var(--sk-primary-text);
}

.tpv2-body .pc-only-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.4rem;
  background: var(--sk-info-soft);
  border: 1px solid color-mix(in srgb, var(--sk-info) 30%, transparent);
  border-radius: 0.25rem;
  color: var(--sk-info-text);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.tpv2-body .file-item.pc-only {
  border-left: 2px solid color-mix(in srgb, var(--sk-info) 50%, transparent);
}

.tpv2-body .selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--sk-primary-soft);
  border-top: 1px solid color-mix(in srgb, var(--sk-primary) 20%, transparent);
}

.tpv2-body .selection-count {
  font-size: 0.875rem;
  color: var(--sk-primary-text);
}

.tpv2-body .selection-actions {
  display: flex;
  gap: 0.5rem;
}

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

.tpv2-body .upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tpv2-body .upload-title {
  font-weight: 600;
  color: var(--sk-text);
  font-size: 1.1rem;
}

.tpv2-body .upload-progress {
  margin-top: 1rem;
}

.tpv2-body .progress-bar {
  height: 8px;
  background: var(--sk-border);
  border-radius: 4px;
  overflow: hidden;
}

.tpv2-body .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sk-primary), var(--sk-primary));
  transition: width 0.3s ease;
}

.tpv2-body .progress-text {
  font-size: 0.75rem;
  color: var(--sk-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.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-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 .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-primary);
  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-primary);
  color: white;
}

.tpv2-body .steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tpv2-body .step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: var(--sk-border);
  color: var(--sk-muted);
}

.tpv2-body .step.active {
  background: var(--sk-primary-soft);
  color: var(--sk-primary-text);
}

.tpv2-body .step.completed {
  background: var(--sk-success-soft);
  color: var(--sk-success-text);
}

.tpv2-body .step-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--sk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.tpv2-body .step.active .step-num {
  background: var(--sk-primary-soft);
}

.tpv2-body .step.completed .step-num {
  background: var(--sk-success-soft);
}

.tpv2-body .github-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--sk-surface);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--sk-muted);
}

.tpv2-body .github-info i {
  color: var(--sk-text);
}

.tpv2-body .github-info a {
  color: var(--sk-primary-text);
  text-decoration: none;
}

.tpv2-body .github-info a:hover {
  text-decoration: underline;
}

@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;
}

.tpv2-body .map-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !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 .floating-badge,
.tpv2-body .status-badge,
.tpv2-body .steps,
.tpv2-body .step,
.tpv2-body .github-info,
.tpv2-body .file-browser-header,
.tpv2-body .file-item,
.tpv2-body .selection-bar,
.tpv2-body .variant-pills {
  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;
}

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

.tpv2-body .github-info {
  padding: 0.65rem 0.75rem !important;
  font-size: 0.75rem !important;
  gap: 0.35rem !important;
  text-align: center !important;
  justify-content: center !important;
}

.tpv2-body .steps {
  display: flex !important;
  gap: 0.35rem !important;
  margin-bottom: 1rem !important;
}

.tpv2-body .step {
  flex: 1 !important;
  padding: 0.5rem 0.35rem !important;
  font-size: 0.7rem !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.tpv2-body .step-num {
  width: 1.25rem !important;
  height: 1.25rem !important;
  font-size: 0.65rem !important;
  margin-right: 0.25rem !important;
}

.tpv2-body .step span:last-child {
  display: none !important;
}

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

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

.tpv2-body .map-card {
  padding: 0.875rem !important;
  min-height: 80px !important;
}

.tpv2-body .map-card .map-icon {
  font-size: 1.25rem !important;
  margin-bottom: 0.35rem !important;
}

.tpv2-body .map-card .map-name {
  font-size: 0.85rem !important;
}

.tpv2-body .map-card .map-desc {
  font-size: 0.65rem !important;
  display: none !important;
}

.tpv2-body .variant-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
}

.tpv2-body .variant-pill {
  padding: 0.4rem 0.6rem !important;
  font-size: 0.7rem !important;
  min-height: 36px !important;
}

.tpv2-body .btn-primary,
.tpv2-body .btn-secondary,
.tpv2-body .btn-success {
  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-6 > .flex,
.tpv2-body .flex.gap-2,
.tpv2-body .flex.justify-between,
.tpv2-body .flex.justify-end {
  flex-direction: column !important;
  gap: 0.5rem !important;
}

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

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

.tpv2-body .file-browser-header .btn-secondary {
  flex: 1 !important;
  min-height: 40px !important;
}

.tpv2-body .breadcrumb {
  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;
}

.tpv2-body .file-list {
  max-height: 280px !important;
  overflow-y: auto !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 .filename {
  flex: 1 !important;
  font-size: 0.85rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

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

.tpv2-body .file-item .file-actions {
  display: flex !important;
  gap: 0.35rem !important;
}

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

.tpv2-body .selection-count {
  flex: 1 1 100% !important;
  font-size: 0.8rem !important;
  margin-bottom: 0.35rem !important;
}

.tpv2-body .selection-actions {
  display: flex !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

.tpv2-body .selection-actions button {
  flex: 1 !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;
}

.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 .upload-panel {
  padding: 1rem !important;
}

.tpv2-body .progress-bar {
  height: 8px !important;
  border-radius: 4px !important;
}
}

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

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

.tpv2-body .step {
  flex-direction: column !important;
  padding: 0.5rem 0.25rem !important;
}

.tpv2-body .step-num {
  margin-right: 0 !important;
  margin-bottom: 0.15rem !important;
}

.tpv2-body .step span:last-child {
  display: block !important;
  font-size: 0.55rem !important;
}

.tpv2-body .map-grid {
  grid-template-columns: 1fr !important;
}

.tpv2-body .map-card .map-desc {
  display: block !important;
}

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

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

@media (hover: none) and (pointer: coarse) {
.tpv2-body .map-card,
.tpv2-body .variant-pill,
.tpv2-body .file-item,
.tpv2-body .btn-primary,
.tpv2-body .btn-secondary,
.tpv2-body .btn-success,
.tpv2-body .step {
  min-height: 44px !important;
}

.tpv2-body .map-card:active,
.tpv2-body .btn-primary:active,
.tpv2-body .btn-secondary:active,
.tpv2-body .btn-success:active {
  transform: scale(0.97) !important;
  opacity: 0.85 !important;
}

.tpv2-body .variant-pill:active {
  background: var(--sk-primary-soft) !important;
}

.tpv2-body .file-item:active {
  background: var(--sk-primary-soft) !important;
}

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

@media screen and (max-height: 500px) and (orientation: landscape) {
.tpv2-body .steps {
  margin-bottom: 0.5rem !important;
}

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

.tpv2-body .map-grid {
  grid-template-columns: repeat(3, 1fr) !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;
}
}
}
