/* ==========================================================================
   TxDOT Sign Finder — Modern Executive Dashboard Design System
   Inspired by standard Template: Soft Rounded Widgets, Gradients & Pill Controls
   ========================================================================== */

:root {
  /* --- LIGHT THEME (CUSTOM: #522D60 & #FFD38B) --- */
  --bg-page: #faf6f0;
  --bg-surface: #ffffff;
  --bg-subtle: #fbf5ea;
  --bg-viewport: #f6efe3;
  --bg-pill: #faecd5;
  --bg-pill-hover: #f5debc;

  --border-card: #ecdcc3;
  --border-subtle: #f3e7d5;
  --border-focus: #522D60;

  --text-main: #231029;
  --text-secondary: #522D60;
  --text-muted: #75537f;
  --text-dim: #9b81a4;

  --primary: #522D60;
  --primary-hover: #3e1f4b;
  --primary-subtle: rgba(82, 45, 96, 0.08);
  --primary-gradient: linear-gradient(135deg, #522D60 0%, #723785 100%);
  --primary-text: #FFD38B;

  --gold-accent: #FFD38B;
  --gold-accent-hover: #f7c675;
  --gold-subtle: rgba(255, 211, 139, 0.22);

  --cyan-accent: #522D60;
  --emerald-accent: #522D60;
  --amber-accent: #d97706;
  --rose-accent: #e11d48;

  --progress-gradient: linear-gradient(90deg, #522D60 0%, #8a439f 65%, #FFD38B 100%);
  --score-pill-bg: #522D60;
  --score-pill-text: #FFD38B;
  --score-pill-border: 1.5px solid #FFD38B;
  --pulse-dot-bg: #522D60;
  --pulse-dot-shadow: rgba(82, 45, 96, 0.2);

  --radius-hero: 24px;
  --radius-card: 20px;
  --radius-sub: 14px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 20px -2px rgba(82, 45, 96, 0.07), 0 2px 6px -1px rgba(82, 45, 96, 0.04);
  --shadow-hover: 0 12px 30px -4px rgba(82, 45, 96, 0.16);
  --shadow-pill: 0 2px 6px rgba(82, 45, 96, 0.05);
  --shadow-glow: 0 4px 16px rgba(82, 45, 96, 0.35);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- DARK THEME OVERRIDES (#000000 & #FF0000) --- */
[data-theme="dark"] {
  --bg-page: #000000;
  --bg-surface: #0a0a0a;
  --bg-subtle: #121212;
  --bg-viewport: #000000;
  --bg-pill: #161616;
  --bg-pill-hover: #262626;

  --border-card: #262626;
  --border-subtle: #191919;
  --border-focus: #FF0000;

  --text-main: #ffffff;
  --text-secondary: #e5e5e5;
  --text-muted: #999999;
  --text-dim: #666666;

  --primary: #FF0000;
  --primary-hover: #e60000;
  --primary-subtle: rgba(255, 0, 0, 0.14);
  --primary-gradient: linear-gradient(135deg, #FF0000 0%, #b80000 100%);
  --primary-text: #ffffff;

  --gold-accent: #FF0000;
  --gold-accent-hover: #ff3333;
  --gold-subtle: rgba(255, 0, 0, 0.2);

  --cyan-accent: #ff2e2e;
  --emerald-accent: #FF0000;
  --amber-accent: #ff5500;
  --rose-accent: #FF0000;

  --progress-gradient: linear-gradient(90deg, #660000 0%, #FF0000 100%);
  --score-pill-bg: #FF0000;
  --score-pill-text: #ffffff;
  --score-pill-border: 1px solid #FF0000;
  --pulse-dot-bg: #FF0000;
  --pulse-dot-shadow: rgba(255, 0, 0, 0.4);

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.95), 0 0 1px rgba(255, 0, 0, 0.3);
  --shadow-hover: 0 14px 40px rgba(255, 0, 0, 0.25);
  --shadow-pill: 0 2px 6px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 4px 18px rgba(255, 0, 0, 0.5);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Top Header Navigation
   ========================================================================== */
.app-header {
  background: var(--bg-surface);
  border-bottom: 1.5px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--primary-gradient);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.brand-headings {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pill Search Bar (From standard) */
.top-search-pill {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-pill);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 4px 8px 4px 18px;
  max-width: 440px;
  width: 100%;
  transition: all 0.2s ease;
}

.top-search-pill:focus-within {
  border-color: var(--border-focus);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.top-search-pill input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-main);
  outline: none;
}

.top-search-pill input::placeholder {
  color: var(--text-dim);
}

.top-search-btn {
  background: var(--primary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.top-search-btn:hover {
  transform: scale(1.05);
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.view-pill-group {
  display: flex;
  background: var(--bg-pill);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-card);
}

.view-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-pill:hover {
  color: var(--text-main);
}

.view-pill.active {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-pill);
}

.header-badges-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-bubble {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-bubble:hover {
  background: var(--bg-pill-hover);
  color: var(--text-main);
}

.bubble-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-surface);
}

.avatar-bubble {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.theme-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-pill);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.theme-toggle-pill:hover {
  background: var(--bg-pill-hover);
  color: var(--text-main);
}

.theme-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ==========================================================================
   Main Layout & Dashboard Grid
   ========================================================================== */
.app-main {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
}

.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-row {
  display: grid;
  gap: 24px;
}

.top-row {
  grid-template-columns: 1fr 1.35fr;
}

.main-row {
  grid-template-columns: 1fr 1.35fr;
}

@media (max-width: 1024px) {
  .top-row, .main-row {
    grid-template-columns: 1fr;
  }
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  .header-left, .header-right {
    justify-content: space-between;
  }
  .top-search-pill {
    max-width: none;
  }
}

/* Base Card Styling */
.dash-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.card-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan-accent);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.card-section-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-pill);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Hero Welcome Banner Card (Cyan to Purple Gradient from standard)
   ========================================================================== */
.hero-gradient-card {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  border-radius: var(--radius-hero);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -4px rgba(79, 70, 229, 0.35);
}

.hero-gradient-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 440px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-stats-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.hero-stat-lbl {
  font-size: 10px;
  opacity: 0.8;
  text-transform: uppercase;
}

.hero-stat-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-illustration {
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Parameters Hub Grid ("My Devices" in standard)
   ========================================================================== */
.parameters-hub-card {
  display: flex;
  flex-direction: column;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  flex: 1;
}

.device-pill-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sub);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.device-pill-card:hover {
  background: var(--bg-surface);
  border-color: var(--cyan-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.device-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.device-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.device-status-pill.on {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
}

.device-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.device-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Quick Add Card (+) in Device Grid */
.device-pill-card.add-card {
  border-style: dashed;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-pill);
}

.device-pill-card.add-card:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.add-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

.device-pill-card.add-card:hover .add-icon-circle {
  transform: scale(1.1);
}

.add-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   Left Column: Gauges & Toggle Controls ("Temperature & Statistics")
   ========================================================================== */
.left-widgets-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.widget-header {
  margin-bottom: 12px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Circular Confidence Dial */
.gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dial-container {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 6px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-gauge-bg {
  fill: none;
  stroke: var(--bg-pill);
  stroke-width: 9;
}

.radial-gauge-fill {
  fill: none;
  stroke: url(#gaugeGradient);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 339;
  stroke-dashoffset: 339;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dial-center-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dial-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.dial-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dial-slider-bar {
  width: 100%;
  padding: 0 10px;
}

.dial-slider-track {
  height: 6px;
  background: var(--bg-pill);
  border-radius: var(--radius-pill);
  position: relative;
}

.dial-slider-thumb {
  position: absolute;
  top: -4px;
  left: 85%;
  width: 14px;
  height: 14px;
  background: var(--amber-accent);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
}

/* Donut Statistics Card */
.stats-donut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-container {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 4px auto 12px;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald-accent);
  display: block;
}

.donut-center-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.donut-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  width: 100%;
  font-size: 10px;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

/* Processing Mode Toggle Cards ("Front Door / Back Door") */
.toggle-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.toggle-pill-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-pill-card:hover {
  border-color: var(--cyan-accent);
}

.toggle-pill-card.active {
  background: var(--bg-surface);
  border-color: var(--cyan-accent);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.toggle-card-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.toggle-switch-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.toggle-switch-badge.on {
  background: rgba(2, 132, 199, 0.12);
  color: var(--cyan-accent);
}

.toggle-switch-badge.off {
  background: var(--bg-pill);
  color: var(--text-muted);
}

/* ==========================================================================
   Full Page Window Drag & Drop Overlay
   ========================================================================== */
.window-drag-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: fadeInOverlay 0.2s ease forwards;
}

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

.window-drag-box {
  background: var(--bg-surface);
  border: 3px dashed var(--primary);
  border-radius: 28px;
  padding: 48px 64px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.window-drag-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-pill);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-glow);
}

.window-drag-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.window-drag-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Side-by-Side Split Screen Container (50% Upload / 50% Results)
   ========================================================================== */
.split-screen-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.split-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.split-upload-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border-radius: 28px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.preview-layout-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.preview-frame-large {
  width: 100%;
  max-width: 380px;
  height: 280px;
  background: var(--bg-viewport);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.preview-frame-large img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.preview-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-filename-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-pill);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
}

.preview-filesize-badge {
  font-size: 11px;
  color: var(--text-muted);
}

/* Idle Placeholder in Results Column */
.idle-placeholder-card {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: 28px;
  background: var(--bg-surface);
  border: 2px dashed var(--border-card);
  text-align: center;
}

.idle-placeholder-body {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.idle-icon-ring {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.idle-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.idle-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.idle-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.idle-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-sub);
  border: 1px solid var(--border-card);
}

.idle-feature-item svg {
  color: var(--emerald-accent);
  flex-shrink: 0;
}

.clean-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 1024px) {
  .split-screen-container {
    grid-template-columns: 1fr;
  }
}

.dropzone-box {
  background: var(--bg-subtle);
  border: 2.5px dashed var(--border-card);
  border-radius: 22px;
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dropzone-box:hover, .dropzone-box.dragover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  transform: scale(0.998);
  box-shadow: var(--shadow-card);
}

.upload-icon-bubble {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-pill);
  transition: transform 0.2s ease;
}

.dropzone-box:hover .upload-icon-bubble {
  transform: scale(1.08) translateY(-2px);
}

.dropzone-main-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.dropzone-main-text .action-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.dropzone-sub-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.dropzone-sub-text kbd {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.dropzone-action-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-gradient-pill.primary-cta {
  padding: 13px 30px;
  font-size: 14px;
  box-shadow: var(--shadow-glow);
}

.mode-pill-selector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}

.mode-pill-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.styled-mode-select {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

/* Pill Buttons (Consistent with standard Aesthetic) */
.btn-gradient-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: var(--primary-text);
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-gradient-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-gradient-pill.small {
  padding: 7px 16px;
  font-size: 12px;
}

.btn-gradient-pill.success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--bg-pill);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-pill-secondary:hover {
  background: var(--bg-pill-hover);
  color: var(--text-main);
}

.btn-pill-secondary.small {
  padding: 6px 14px;
  font-size: 12px;
}

/* Dropzone Preview Layout */
.preview-layout {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.preview-frame {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sub);
  background: var(--bg-viewport);
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  flex-shrink: 0;
}

.preview-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preview-controls {
  flex: 1;
}

.preview-filename {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  word-break: break-all;
}

.preview-filesize {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.preview-mode-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.preview-mode-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.styled-mode-select {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.preview-action-row {
  display: flex;
  gap: 12px;
}

/* Sample Signs Row */
.samples-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.samples-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-accent);
  text-transform: uppercase;
}

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

.sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-pill);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sample-chip:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.sample-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Categories + Sensitivity Arc Row ("My Rooms" in standard) */
.categories-arc-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
}

@media (max-width: 768px) {
  .categories-arc-row {
    grid-template-columns: 1fr;
  }
}

.categories-pills-card {
  display: flex;
  flex-direction: column;
}

.room-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Capsule Pill Buttons ("My Rooms" from standard) */
.room-pill {
  border: 1.5px solid var(--border-card);
  background: var(--bg-pill);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.room-pill:hover {
  background: var(--bg-pill-hover);
  color: var(--text-main);
  transform: translateY(-1px);
}

.room-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Semicircular Arc Gauge ("Light Intensity" from standard) */
.sensitivity-arc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.arc-container {
  position: relative;
  width: 120px;
  height: 65px;
  margin: 6px auto;
}

.semicircle-arc-svg {
  width: 100%;
  height: 100%;
}

.arc-value-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--cyan-accent);
}

.arc-footer-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.arc-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.arc-state-pill {
  font-size: 9px;
  font-weight: 800;
  background: rgba(2, 132, 199, 0.12);
  color: var(--cyan-accent);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

/* ==========================================================================
   Loading State Card
   ========================================================================== */
.loading-card {
  position: relative;
  overflow: hidden;
  padding: 32px 24px;
}

.loading-bar-animated {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--progress-gradient);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite linear;
}

@keyframes loadingShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-flex-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.loading-pulse-spinner {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 3.5px solid var(--bg-pill);
  border-top-color: var(--primary);
  animation: spin 0.8s infinite linear;
  flex-shrink: 0;
}

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

.loading-main-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.loading-sub-heading {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Results Presentation Section
   ========================================================================== */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.results-status-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--pulse-dot-bg);
  box-shadow: 0 0 0 4px var(--pulse-dot-shadow);
}

.status-headline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.status-exec-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-pill);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Assembly Alert Card */
.assembly-alert-card {
  border-left: 5px solid var(--amber-accent);
}

.assembly-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.assembly-title-cluster {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assembly-heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.assembly-desc {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 650px;
  margin-top: 2px;
}

.assembly-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.assembly-tile-box {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sub);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.assembly-tile-box:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.tile-img-viewport {
  height: 120px;
  background: var(--bg-viewport);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.tile-img-viewport img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.tile-info-block {
  padding: 12px;
}

.tile-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.tile-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.assembly-footer-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* Unrecognized Card */
.unrecognized-card {
  border-left: 5px solid var(--rose-accent);
}

.unrecognized-layout {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.unrecognized-img-box {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-sub);
  background: var(--bg-viewport);
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.unrecognized-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.unrecognized-info {
  flex: 1;
  min-width: 260px;
}

.unrecognized-badge {
  display: inline-block;
  background: rgba(244, 63, 94, 0.12);
  color: var(--rose-accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.unrecognized-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--rose-accent);
  margin-bottom: 4px;
}

.unrecognized-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.unrecognized-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.unrecognized-tip-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sub);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Top Match Hero Card
   ========================================================================== */
.match-hero-card {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--border-card);
}

.match-hero-header {
  background: var(--bg-subtle);
  border-bottom: 1.5px solid var(--border-card);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.match-score-pill {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  background: var(--score-pill-bg);
  color: var(--score-pill-text);
  border: var(--score-pill-border);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
}

.match-hero-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Left Side: Side-by-Side Comparison */
.comparison-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.comparison-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.viewport-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: center;
}

.matched-label {
  color: var(--primary);
}

.sign-viewport {
  height: 180px;
  border-radius: var(--radius-sub);
  background: var(--bg-viewport);
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.sign-viewport img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-card);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* Right Side: Specification Panel */
.specification-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.code-spotlight-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sub);
  padding: 18px 20px;
}

.code-spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.code-meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.code-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--border-card);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.code-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.code-large-text {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.btn-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* Confidence Progress */
.confidence-progress-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.confidence-flex-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.confidence-val {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
}

.confidence-track-bg {
  height: 8px;
  background: var(--bg-pill);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.confidence-fill-bar {
  height: 100%;
  background: var(--progress-gradient);
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Spec Properties Grid */
.spec-properties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-prop-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sub);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-prop-card.full-width {
  grid-column: 1 / -1;
}

.prop-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.prop-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.prop-value.highlight-green {
  color: var(--emerald-accent);
}

.category-pill-badge {
  display: inline-block;
  background: var(--bg-pill);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.active-params-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.param-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.param-tag.highlight {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.3);
}

/* Feedback & Active Learning Bar */
.feedback-card-bar {
  background: var(--bg-subtle);
  border-top: 1.5px solid var(--border-card);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.feedback-info-cluster {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feedback-pill-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feedback-question {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.feedback-description {
  font-size: 12px;
  color: var(--text-muted);
}

.feedback-btn-cluster {
  display: flex;
  gap: 10px;
}

/* Correction Drawer */
.correction-drawer {
  background: var(--bg-surface);
  border-top: 1.5px solid var(--border-card);
  padding: 20px 28px;
}

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

.drawer-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.drawer-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.quick-candidates-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.quick-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.drawer-search-row {
  display: flex;
  gap: 10px;
}

.drawer-search-row input {
  flex: 1;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-main);
  outline: none;
}

.correction-dropdown {
  margin-top: 8px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sub);
  max-height: 180px;
  overflow-y: auto;
}

/* ==========================================================================
   Alternative Candidates Hub Card
   ========================================================================== */
.alternatives-hub-card {
  padding: 16px 20px;
}

.alternatives-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.alt-pill-card {
  min-width: 135px;
  max-width: 150px;
  flex-shrink: 0;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sub);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.alt-pill-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.alt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.alt-rank-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.alt-score-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-accent);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.alt-viewport {
  height: 80px;
  background: var(--bg-viewport);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.alt-viewport img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.alt-details-block {
  padding: 10px 12px;
}

.alt-code-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.alt-text-desc {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.alt-footer-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Catalog View & Controls
   ========================================================================== */
.catalog-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-controls-card {
  padding: 24px;
}

.catalog-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.catalog-main-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.catalog-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.catalog-search-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-pill);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  width: 100%;
  max-width: 380px;
}

.catalog-search-pill:focus-within {
  background: var(--bg-surface);
  border-color: var(--cyan-accent);
}

.catalog-search-pill svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.catalog-search-pill input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

.btn-clear-search {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
}

.catalog-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: var(--bg-pill);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: var(--bg-pill-hover);
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.catalog-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.catalog-count-info {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-indicator-pill {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.catalog-signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.catalog-sign-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sub);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.catalog-sign-card:hover {
  border-color: var(--cyan-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.catalog-sign-viewport {
  height: 140px;
  background: var(--bg-viewport);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.catalog-sign-viewport img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.catalog-sign-meta {
  padding: 12px;
}

.catalog-sign-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.catalog-sign-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-code-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  line-height: 1.4;
}

.btn-copy-code-mini:hover {
  background: var(--bg-pill-hover);
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.btn-copy-code-mini.copied-active {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #10b981 !important;
  border-color: #10b981 !important;
}

.btn-copy-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-pill);
  border: 1.5px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-code-pill:hover {
  background: var(--bg-pill-hover);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-copy-code-pill.copied-active {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #10b981 !important;
  border-color: #10b981 !important;
}

.catalog-sign-text {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.catalog-sign-category {
  display: inline-block;
  background: var(--bg-pill);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.modal-title-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.modal-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.12);
  color: var(--cyan-accent);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

/* Toast Box */
.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  z-index: 10000;
}

/* ==========================================================================
   App Footer
   ========================================================================== */
.app-footer {
  background: var(--bg-surface);
  border-top: 1.5px solid var(--border-card);
  padding: 16px 28px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
}

.footer-dot {
  color: var(--border-card);
}

/* ==========================================================================
   Dual Text Typography (Official Document Text & Actual Image Text)
   ========================================================================== */
.sign-text-row {
  margin: 3px 0;
}

.sign-text-label-micro {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.official-text-val {
  color: var(--text-main);
  font-weight: 600;
}

.actual-text-val {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   Upload Your Queries & Admin Fine-Tuning Dashboard Design System
   Zero Emojis, Executive Aesthetic, Full Dark/Light Theme Support
   ========================================================================== */
.query-nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.query-badge-pill {
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

.queries-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.queries-header-card {
  padding: 24px 28px;
}

.queries-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.badge-pill-accent {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold-subtle);
  color: var(--primary);
  border: 1px solid var(--border-card);
  margin-bottom: 8px;
}

.queries-main-title {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.queries-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.5;
  margin: 0;
}

.queries-subnav-cluster {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
}

.queries-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.queries-subnav-btn.active {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-pill);
}

.subnav-badge-pill {
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.queries-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .queries-form-grid {
    grid-template-columns: 1fr;
  }
}

.query-upload-card,
.query-details-card {
  padding: 24px;
}

.card-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.query-dropzone-box {
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  padding: 30px 20px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.query-dropzone-box.drag-hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.query-dropzone-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.query-dropzone-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.query-dropzone-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.query-dropzone-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.query-preview-img-frame {
  width: 100%;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sub);
  overflow: hidden;
  background: var(--bg-viewport);
  border: 1px solid var(--border-subtle);
}

.query-preview-img-frame img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.query-preview-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.query-preview-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.query-preview-size {
  font-size: 12px;
  color: var(--text-muted);
}

.query-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.req-star {
  color: #e11d48;
}

.optional-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.form-select,
.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sub);
  border: 1px solid var(--border-card);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.query-consent-wrapper {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sub);
  padding: 12px 14px;
}

.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent-checkbox {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.consent-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.query-status-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sub);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #166534;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #991b1b;
}

[data-theme="dark"] .alert-success {
  color: #4ade80;
}

[data-theme="dark"] .alert-error {
  color: #f87171;
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* --- Admin Dashboard Layout & Components --- */
.admin-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.admin-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.metric-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-main);
}

.admin-metric-card.pending-card .metric-value {
  color: var(--amber-accent, #d97706);
}

.admin-metric-card.approved-card .metric-value {
  color: #16a34a;
}

.admin-metric-card.rejected-card .metric-value {
  color: #dc2626;
}

.admin-controls-card {
  padding: 16px 20px;
}

.admin-filters-grid {
  display: grid;
  grid-template-columns: 180px 220px 1fr auto;
  gap: 14px;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .admin-filters-grid {
    grid-template-columns: 1fr;
  }
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.form-select.small,
.form-input.small {
  padding: 7px 12px;
  font-size: 12px;
}

.admin-queries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.admin-query-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.admin-query-thumb-box {
  width: 100px;
  min-width: 100px;
  height: 100px;
  background: var(--bg-viewport);
  border-radius: var(--radius-sub);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-query-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.zoom-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}

.admin-query-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-query-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.admin-query-id {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.badge-pending {
  background: rgba(217, 119, 6, 0.15);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-approved {
  background: rgba(22, 163, 74, 0.15);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.badge-resolved {
  background: rgba(82, 45, 96, 0.15);
  color: var(--primary);
  border: 1px solid var(--border-card);
}

.badge-rejected {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-trained {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: #16a34a;
  color: #ffffff;
}

.admin-query-classification {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-problem-type {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.badge-consent {
  font-size: 10px;
  color: #16a34a;
  font-weight: 600;
}

.badge-no-consent {
  font-size: 10px;
  color: #dc2626;
  font-weight: 600;
}

.admin-query-desc {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-word;
}

.admin-query-expected {
  font-size: 12px;
  color: var(--text-secondary);
}

.expected-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
}

.admin-query-notes {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.admin-query-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-card);
  background: var(--bg-subtle);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-action-pill:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.btn-action-pill.btn-approve {
  background: var(--primary-gradient);
  color: var(--primary-text);
  border: none;
}

.btn-action-pill.btn-delete:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  border-color: #dc2626;
}

.admin-action-dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-img-preview-box {
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-viewport);
  border-radius: var(--radius-sub);
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.modal-img-preview-box img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.admin-action-prompt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.modal-action-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  gap: 10px;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.empty-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

