/*
 * FOUNDATION STYLES — Base Layer
 * File: assets/css/base.css
 *
 * WHAT THIS FILE DOES:
 *   Sets the fundamental look of the entire app — the dark navy colour scheme, font sizes,
 *   spacing, and the layout grid that every other page is built on top of.
 *
 * USED BY:
 *   All pages (index.html, admin.html, loading.html, showcase.html) via assets/showcase.css
 *
 * SECTIONS INSIDE:
 *   - Global reset (removes browser default margins/padding)
 *   - Design tokens (colour palette, font sizes, spacing variables)
 *   - Typography (headings, body text, font loading)
 *   - Navigation bar
 *   - Hero section
 *   - Form controls (inputs, buttons)
 *   - Layout grid / shell
 *   - Reusable utility classes
 */

/* Base layer: fonts, tokens, reset, shell layout, upload workspace, and other global foundations shared by both showcase and admin. */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
}

/* ── Tailwind CSS custom properties ───────────────────────── */
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-scroll-snap-strictness: proximity;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / .5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
}

:root {
  /* ── AwareAI brand tokens — dark navy theme (matches aware-ai.io) ── */
  --deep-bg:       #020C1B;
  --background:    #020C1B;
  --foreground:    #EEF2FF;
  --card:          #0A1628;
  --card-foreground: #EEF2FF;
  --surface:       #0A1628;
  --border:        #162342;
  --border-navy:   #162342;
  --border-hover:  #243860;
  --input:         #162342;
  --ring:          #C4261F;

  --primary:       #C4261F;
  --primary-light: #E53535;
  --primary-dark:  #A01F19;
  --primary-foreground: #ffffff;
  --primary-glow:  rgba(196, 38, 31, 0.3);

  --secondary:     #0A1628;
  --secondary-foreground: #EEF2FF;
  --muted:         #0A1628;
  --muted-foreground: #94AABF;
  --accent:        #0A1628;
  --accent-foreground: #EEF2FF;
  --destructive:   #EF4444;
  --destructive-foreground: #EEF2FF;

  --radius:    0.5rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  --text-1:   #EEF2FF;
  --text-2:   #94AABF;
  --text-3:   #3D5070;

  /* ── Semantic aliases for admin layout ── */
  --gray-900:         #EEF2FF;
  --gray-50:          #0F1E35;
  --bg-primary:       var(--background);
  --bg-secondary:     var(--secondary);
  --bg-tertiary:      #0F1E35;
  --bg-info:          rgba(196, 38, 31, 0.08);
  --bg-success:       rgba(16, 185, 129, 0.1);
  --bg-warning:       rgba(245, 158, 11, 0.1);
  --bg-danger:        rgba(196, 38, 31, 0.08);
  --text-primary:     #EEF2FF;
  --text-secondary:   #94AABF;
  --text-tertiary:    #3D5070;
  --text-info:        var(--primary);
  --text-success:     #10B981;
  --text-warning:     #F59E0B;
  --text-danger:      var(--primary);
  --border-light:     #162342;
  --border-medium:    #243860;
  --border-info:      rgba(196, 38, 31, 0.3);
  --border-danger:    rgba(196, 38, 31, 0.3);
  --shadow-soft:  0 1px 2px 0 rgba(0,0,0,0.2);
  --shadow-md:    0 8px 24px -12px rgba(0,0,0,0.5);
  --shadow-lg:    0 20px 48px -24px rgba(0,0,0,0.6);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;

  /* ── Legacy aliases (admin compatibility) ── */
  --aware-red:       var(--primary);
  --aware-red-light: var(--primary-light);
  --aware-blue:      hsl(214, 84%, 56%);
  --brand-red:       var(--primary);
  --brand-red-dark:  var(--primary-dark);
  --brand-green:     #10B981;
}

html, body { min-height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: none; background: none; }
[hidden] { display: none !important; }

.brand-logo { height: 36px; width: auto; display: block; }

/* Full-width page header shown above the shell on the showcase page */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: var(--background);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header-left {
  display: flex;
  align-items: center;
}

.page-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-header-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.page-header-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.page-header-btn--icon {
  padding: 8px 10px;
}
.page-header-btn--icon svg {
  fill: currentColor;
}

.shell {
  display: flex;
  min-height: calc(100vh - 65px);
  background: var(--background);
}

/* When wizard is configured the sidebar is hidden and the main area fills full width */
.shell.sidebar-hidden {
  display: block;
}

.shell.sidebar-hidden .main {
  width: 100%;
}

.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--background);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--border-light);
}

.nav { padding: 16px 10px; flex: 1; }
.nav-label, .section-label, .config-intro-label, .config-label, .ai-insight-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.nav-item, .sidebar-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-item {
  margin-top: 4px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}
.nav-item:hover, .sidebar-action-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.nav-item.active {
  background: hsl(0, 86%, 97%);
  color: var(--aware-red);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border-info);
}

.nav-group {
  margin-top: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  overflow: hidden;
}

.nav-group-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-group-summary::-webkit-details-marker {
  display: none;
}

.nav-group-summary::after {
  content: "+";
  font-size: 15px;
  line-height: 1;
  color: var(--text-tertiary);
}

.nav-group[open] .nav-group-summary::after {
  content: "-";
}

.nav-group-items {
  padding: 0 8px 10px;
}

.nav-group .nav-item {
  margin-top: 6px;
  padding-left: 14px;
}

.nav-subgroup {
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.nav-subgroup:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.nav-subgroup-summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-subgroup-summary::-webkit-details-marker {
  display: none;
}

.nav-subgroup-summary::after {
  content: "+";
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1;
}

.nav-subgroup[open] .nav-subgroup-summary::after {
  content: "-";
}

.nav-subgroup-items {
  padding: 4px 0 0 8px;
}

.nav-subgroup .nav-item {
  padding-left: 12px;
}

.nav-icon, .sidebar-action-icon, .nav-icon-wrap, .mini-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg, .sidebar-action-icon svg, .mini-icon svg, .nav-icon-wrap svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.sidebar-actions {
  padding: 10px;
  border-top: 1px solid var(--border-light);
}

a.sidebar-action-btn {
  text-decoration: none;
}

.sidebar-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  padding: 22px 22px 18px;
  background: var(--background);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--gray-900);
}

.topbar-desc {
  margin-top: 10px;
  max-width: 860px;
  font-size: 1.25rem;
  line-height: 1.625;
  color: hsl(220, 9%, 46%);
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topbar-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  width: fit-content;
}

.topbar-back-btn:hover {
  text-decoration: underline;
}

.demo-data-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  padding: 7px 20px;
  text-align: center;
  letter-spacing: 0.01em;
  transition: background 0.3s;
}
.demo-data-status-bar.is-generating {
  background: hsl(220, 60%, 24%);
  color: #fff;
}
.demo-data-status-bar.is-ready {
  background: hsl(152, 55%, 22%);
  color: #fff;
}
.demo-data-status-bar.is-error {
  background: hsl(0, 60%, 30%);
  color: #fff;
}
.demo-data-status-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: statusSpinAnim 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes statusSpinAnim {
  to { transform: rotate(360deg); }
}

/* Loading placeholder shown inside data-driven demo panels while AI content is generating */
.demo-generating-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 64px 32px;
  text-align: center;
}
.demo-generating-icon {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-light, #e5e2de);
  border-top-color: var(--primary, hsl(0,69%,42%));
  border-radius: 50%;
  animation: statusSpinAnim 1s linear infinite;
}
.demo-generating-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin: 0;
}
.demo-generating-sub {
  font-size: 0.875rem;
  color: var(--text-muted, #6b6b6b);
  margin: 0;
  max-width: 340px;
  line-height: 1.5;
}
.demo-generating-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  text-align: left;
}
.demo-generating-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted, #6b6b6b);
}
.demo-generating-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-light, #d0ccc8);
  flex-shrink: 0;
}
.demo-generating-step.is-active .demo-generating-step-dot {
  background: var(--primary, hsl(0,69%,42%));
  animation: dotPulse 1.2s ease-in-out infinite;
}
.demo-generating-step.is-done .demo-generating-step-dot {
  background: hsl(152, 55%, 32%);
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.topbar-company-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: right center;
  flex-shrink: 0;
  opacity: 1;
}

.badge-success, .badge-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-success {
  background: var(--bg-success);
  color: var(--text-success);
}

.badge-danger {
  background: var(--bg-danger);
  color: var(--text-danger);
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge-critical {
  background: #7B0000;
  color: #fff;
  animation: pulse-critical 1s ease-in-out infinite;
}

@keyframes pulse-critical {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.btn-warning {
  background: #D97706;
  color: #fff;
  border-color: #D97706;
}

.btn-danger {
  background: #A63A3A;
  color: #fff;
  border-color: #A63A3A;
}

.demo-area, .admin-main {
  flex: 1;
  padding: 28px 22px 22px;
  overflow-y: auto;
}

.preset-bar {
  margin-bottom: 20px;
  padding: 22px;
  background: linear-gradient(135deg, hsl(0 0% 100%), hsl(210 20% 98%));
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.preset-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-card,
.mock-upload-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.story-card {
  padding: 20px;
}

.story-card p,
.preset-copy span,
.mock-upload-text {
  color: hsl(220, 9%, 46%);
  line-height: 1.625;
}

.story-step-title {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-primary);
}

.story-label,
.mock-upload-title {
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aware-red);
}

.demo-context-note {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fa 100%);
  color: var(--text-secondary);
  line-height: 1.6;
}

.demo-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 16px;
}

.demo-accordion {
  margin-top: 20px;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.demo-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-accordion-summary::-webkit-details-marker {
  display: none;
}

.demo-accordion-summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--aware-red);
}

.demo-accordion[open] .demo-accordion-summary::after {
  content: "\2212";
}

.demo-accordion .demo-story {
  margin: 0;
  padding: 0 20px 20px;
}

.route-ops-grid {
  margin-top: 16px;
}

.mock-upload-card,
.preset-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.mock-upload-card {
  padding: 18px 20px;
  margin-bottom: 18px;
}

.upload-workspace {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
  min-width: 0;
  position: relative;
}

.upload-workspace,
.upload-sidebar,
.upload-chooser,
.upload-preview-shell {
  min-width: 0;
}

.upload-loaded-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.upload-loaded-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fa 100%);
  box-shadow: var(--shadow-soft);
}

.upload-loaded-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.upload-loaded-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--background);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.upload-loaded-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--aware-red);
  flex-shrink: 0;
}

.upload-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  flex-shrink: 0;
}

.upload-primary-btn {
  align-self: flex-start;
}

.upload-chooser {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  width: 340px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-md);
}

.upload-chooser-head,
.upload-current-card {
  display: grid;
  gap: 4px;
}

.upload-chooser-title,
.upload-current-name {
  font-weight: 700;
  color: var(--text-primary);
}

.upload-chooser-copy,
.upload-current-label,
.upload-current-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.upload-current-card {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.upload-file-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.upload-chooser-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-file-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--card);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.upload-file-item:hover,
.upload-file-item.is-preview {
  background: var(--bg-secondary);
  border-color: var(--border-info);
  transform: translateY(-1px);
}

.upload-file-item.is-loaded {
  background: hsl(138 76% 97%);
  border-color: rgba(46, 125, 106, 0.2);
}

.upload-file-item.is-staged:not(.is-loaded) {
  background: hsl(0 86% 97%);
  border-color: var(--border-info);
}

.upload-file-item-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.upload-file-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.upload-file-item-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-item-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-item-status {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-success);
  color: var(--text-success);
  font-size: 11px;
  font-weight: 700;
}

.upload-preview-shell {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fa 100%);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.upload-preview-shell.is-empty {
  background: var(--card);
}

.upload-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
}

.upload-preview-selected {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 0;
}

.upload-preview-title-wrap {
  min-width: 0;
  flex: 1 1 0;
}

.upload-file-marker {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--aware-red);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.upload-preview-name {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-preview-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.upload-preview-status {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-success);
  color: var(--text-success);
  font-size: 11px;
  font-weight: 700;
}

.upload-preview-status.is-preview {
  background: hsl(0, 86%, 97%);
  color: var(--aware-red);
}

.upload-preview-body {
  padding: 16px 18px;
  max-height: 340px;
  overflow-y: auto;
}

.upload-preview-empty {
  color: var(--text-tertiary);
  line-height: 1.7;
}

.upload-preview-doc {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px -20px rgb(15 23 42 / 0.4);
  min-height: 240px;
}

.upload-preview-line {
  color: var(--text-secondary);
  line-height: 1.75;
}

.upload-preview-line:first-child {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.upload-preview-line strong {
  color: var(--text-primary);
}

.upload-preview-code {
  padding: 14px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.upload-preview-mini {
  max-height: 240px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
}

