/**
 * Alpha Engine / Gallery shell for pkm.engine.cleaner
 * Derived from 02-pkm-alpha-engine/app/globals.css (LFIQ gallery surfaces).
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600&display=swap");

:root {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", ui-serif, Georgia, serif;
  --lfiq-surface-high: #1e2338;
  --lfiq-ink-strong: #e4e8f7;
  --lfiq-radius-panel: 18px;
  --lfiq-radius-card: 14px;
  --lfiq-shadow-elevated:
    0 1px 0 rgba(173, 198, 255, 0.04) inset,
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 20px 48px -12px rgba(0, 0, 0, 0.5);
  --lfiq-shadow-card:
    0 1px 0 rgba(173, 198, 255, 0.03) inset,
    0 1px 3px rgba(0, 0, 0, 0.25),
    0 10px 28px -8px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--lfiq-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(77, 124, 255, 0.08), transparent 52%),
    linear-gradient(175deg, var(--surface) 0%, var(--surface-container-low) 38%, var(--surface-container-lowest) 100%);
  color: var(--lfiq-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.ae-font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--lfiq-ink-strong);
}

a {
  color: var(--lfiq-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--lfiq-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  font-size: 0.9em;
  color: var(--lfiq-text);
}

.ae-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.ae-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 1.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(173, 198, 255, 0.1);
}

.ae-topnav-brand {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--lfiq-ink-strong);
}

.ae-topnav-title {
  line-height: 1.2;
}

.ae-topnav-by {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lfiq-text-secondary);
}

a.ae-topnav-brand {
  text-decoration: none;
  color: inherit;
}

a.ae-topnav-brand:hover {
  color: var(--lfiq-primary);
  text-decoration: none;
}

.ae-topnav-current {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lfiq-text-secondary);
}

.ae-hero-panel {
  position: relative;
  padding: 2rem 2rem 2.15rem;
  margin-bottom: 2.75rem;
  background: linear-gradient(180deg, var(--surface-container-lowest) 0%, var(--surface-container-low) 100%);
  border: 1px solid rgba(173, 198, 255, 0.1);
  border-radius: var(--lfiq-radius-panel);
  box-shadow: var(--lfiq-shadow-elevated);
  overflow: hidden;
}

.ae-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--lfiq-primary) 0%,
    #6b93ff 42%,
    rgba(77, 124, 255, 0.2) 100%
  );
}

.ae-hero-panel .ae-header {
  margin-bottom: 0;
}

.ae-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
}

.ae-gallery-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lfiq-primary);
}

.ae-gallery-lede {
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--lfiq-text);
}

#pml-status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  color: var(--lfiq-text-secondary);
  border: 1px solid color-mix(in srgb, var(--lfiq-border) 100%, transparent);
  border-radius: var(--lfiq-radius);
  background: var(--surface-container);
}

.ae-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.85rem;
  margin: 1.65rem 0 0;
}

.ae-hero-stat {
  padding: 1rem 1.15rem;
  background: var(--lfiq-surface-muted);
  border: 1px solid var(--lfiq-border);
  border-radius: 12px;
}

.ae-hero-stat dt {
  margin: 0 0 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lfiq-text-secondary);
}

.ae-hero-stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--lfiq-primary);
  line-height: 1.2;
  word-break: break-word;
}

.ae-gallery-section {
  margin-bottom: 2rem;
  padding: 1.75rem 1.85rem 2rem;
  background: var(--lfiq-surface);
  border: 1px solid var(--lfiq-border);
  border-radius: var(--lfiq-radius-panel);
  box-shadow: var(--lfiq-shadow-card);
}

.ae-section-head {
  margin-bottom: 1.35rem;
}

.ae-section-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
}

.ae-section-lede {
  margin: 0 0 0.5rem;
  color: var(--lfiq-text-secondary);
  max-width: 70ch;
  font-size: 0.95rem;
}

.ae-topnav-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(173, 198, 255, 0.12);
}

.ae-topnav-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  color: var(--lfiq-text-secondary);
  background: none;
  border: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.ae-topnav-tabs button:hover {
  color: var(--lfiq-text);
  background: rgba(173, 198, 255, 0.06);
}

.ae-topnav-tabs button[aria-selected="true"] {
  color: var(--lfiq-primary);
  background: rgba(173, 198, 255, 0.08);
}

.ae-topnav-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--lfiq-primary);
  border-radius: 2px 2px 0 0;
}

.pec-panel[hidden] {
  display: none !important;
}

.ae-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, var(--surface-container-lowest) 0%, var(--surface-container-low) 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--lfiq-radius-card);
  box-shadow: var(--lfiq-shadow-card);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ae-card:hover {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow:
    0 1px 0 rgba(148, 163, 184, 0.07) inset,
    0 4px 16px rgba(20, 184, 166, 0.1),
    0 16px 40px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.ae-card h3,
.ae-card h4 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.pec-grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pec-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pec-muted {
  color: var(--lfiq-text-secondary);
  font-size: 0.875rem;
}

.pec-text-warn {
  color: var(--lfiq-warning);
}

.pec-field {
  margin-bottom: 1rem;
}

.pec-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lfiq-text-secondary);
  margin-bottom: 0.35rem;
}

.pec-input,
.pec-select {
  width: 100%;
  max-width: 36rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--lfiq-border);
  border-radius: var(--lfiq-radius);
  background: var(--lfiq-surface-muted);
  font: inherit;
  color: var(--lfiq-text);
}

.pec-input::placeholder,
.pec-select::placeholder {
  color: var(--pkm-text-secondary);
  opacity: 0.7;
}

.pec-input:focus,
.pec-select:focus {
  outline: 2px solid var(--lfiq-primary-muted);
  border-color: var(--lfiq-primary);
}

.pec-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.pec-btn-primary,
.pec-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pec-btn-primary {
  background: linear-gradient(135deg, var(--pkm-primary-container) 0%, var(--pkm-primary) 100%);
  color: #fff !important;
  border: 1px solid rgba(77, 124, 255, 0.45);
}

.pec-btn-primary:hover {
  box-shadow: 0 2px 12px rgba(77, 124, 255, 0.3);
}

.pec-btn-secondary {
  background: var(--lfiq-surface-high);
  color: var(--lfiq-text);
  border: 1px solid var(--lfiq-border);
}

.pec-btn-secondary:hover {
  border-color: rgba(173, 198, 255, 0.35);
  background: var(--surface-container);
}

.pec-file-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(173, 198, 255, 0.35);
  border-radius: var(--lfiq-radius);
  background: var(--surface-container-low);
  cursor: pointer;
  font-size: 0.875rem;
}

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

.pec-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 18rem;
  overflow-y: auto;
}

.pec-activity-list li {
  border-bottom: 1px solid rgba(173, 198, 255, 0.12);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
}

/* Flow node path labels */

/* Live status indicator dot */

@keyframes pec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Workflow diagram: shape language — circles = sources, rounded rects = steps, chamfered = outputs */

@media (min-width: 1024px) {
}

@media (min-width: 1024px) {
}

/* Brand pill on every node */

/* Connection ports (node graph sockets) */

/* Source = circle */

/* Step = rounded rectangle (processing) */

/* Output = chamfered “bucket” (distinct from steps) */

/* Horizontal connectors between main stages */

@media (min-width: 1024px) {

}

@media (min-width: 1024px) {
}

/* Fork: classifier → two outputs */

@media (min-width: 768px) {
}

.pec-grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pec-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.pec-border-risk {
  border-color: rgba(255, 107, 107, 0.35) !important;
}

/* Workflow legend */

/* Health check rows */
.pec-health-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(173, 198, 255, 0.08);
}

.pec-health-row:last-child {
  border-bottom: none;
}

.pec-health-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 3px;
}

.pec-health-dot--ok {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.pec-health-dot--fail {
  background: #f87171;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
}

.pec-health-info {
  flex: 1;
  min-width: 0;
}

.pec-health-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lfiq-ink-strong);
}

.pec-health-location {
  display: block;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.6875rem;
  color: rgba(173, 198, 255, 0.7);
  word-break: break-all;
  margin-top: 0.15rem;
}

.pec-health-fix {
  display: block;
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: 8px;
  word-break: break-word;
}

.pec-health-fix code {
  font-size: 0.6875rem;
  color: #fca5a5;
}

/* Detailed fix block — copy-runnable commands. */
.pec-health-fix-detail {
  margin-top: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(173, 198, 255, 0.14);
  background: var(--surface-container);
}

.pec-health-fix-summary {
  font-size: 0.75rem;
  color: var(--pkm-text);
  margin-bottom: 0.45rem;
}

.pec-health-cmd-row {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.pec-health-cmd-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--pkm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pec-health-cmd-code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 0.7rem;
  line-height: 1.45;
  padding: 0.35rem 0.5rem;
  background: var(--surface-container-high);
  border: 1px solid rgba(173, 198, 255, 0.08);
  border-radius: 6px;
  color: #cbd5ff;
  user-select: all;
  white-space: pre-wrap;
  word-break: break-all;
}

.pec-health-cmd-copy {
  appearance: none;
  border: 1px solid rgba(173, 198, 255, 0.18);
  background: rgba(173, 198, 255, 0.06);
  color: var(--pkm-text);
  font: inherit;
  font-size: 0.7rem;
  padding: 0.32rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.pec-health-cmd-copy:hover {
  background: rgba(173, 198, 255, 0.12);
  border-color: rgba(173, 198, 255, 0.32);
}

.pec-health-cmd-copy.pec-health-cmd-copied {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.5);
  color: #6ffbbe;
}

/* Clickable hero stat — "3 problems — fix" jumps to the Health panel. */
.pec-health-stat-clickable {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 999px;
  color: #fca5a5;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pec-health-stat-clickable:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.55);
}

/* Environment switcher (Production / Local) — Settings tab. */
.pec-env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pec-env-card {
  border: 1px solid var(--pkm-border);
  border-radius: 10px;
  background: var(--surface-container);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pec-env-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.pec-env-current {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  background: rgba(77, 124, 255, 0.18);
  color: #adc6ff;
  border-radius: 999px;
}

.pec-env-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pkm-text-muted);
  display: inline-block;
}

.pec-env-dot--ok { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.5); }
.pec-env-dot--fail { background: #f87171; box-shadow: 0 0 6px rgba(248, 113, 113, 0.5); }
.pec-env-dot--wait {
  background: var(--pkm-text-muted);
  animation: pec-env-pulse 1.1s ease-in-out infinite;
}

@keyframes pec-env-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.pec-env-url {
  font-size: 0.75rem;
  color: var(--pkm-text-secondary);
  user-select: all;
  word-break: break-all;
}

.pec-env-status {
  font-size: 0.8125rem;
  color: var(--pkm-text);
}

.pec-env-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.pec-env-launch {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(173, 198, 255, 0.18);
}

/* Quarantine restore button */
.pec-cloud-thumb-restore {
  display: block;
  width: 100%;
  padding: 0.3rem 0;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: none;
  border-top: 1px solid rgba(173, 198, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s;
}

.pec-cloud-thumb {
  position: relative;
}

.pec-score-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--surface-container-low);
  border: 1px solid rgba(173, 198, 255, 0.18);
  backdrop-filter: blur(2px);
}

.pec-score-badge--safe { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); }
.pec-score-badge--mid { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }
.pec-score-badge--high { color: #f87171; border-color: rgba(248, 113, 113, 0.4); }
.pec-score-badge--unknown { color: var(--pkm-text-secondary); border-style: dashed; }

/* Histogram */
.pec-histogram {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 110px;
  padding: 0.5rem 0.25rem 0;
  margin-top: 0.5rem;
  border-bottom: 1px solid rgba(173, 198, 255, 0.18);
  position: relative;
}

.pec-histogram-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--lfiq-primary) 0%, rgba(77, 124, 255, 0.4) 100%);
  border-radius: 3px 3px 0 0;
  min-height: 1px;
  position: relative;
  transition: opacity 0.15s;
}

.pec-histogram-bar:hover { opacity: 0.7; }

.pec-histogram-bar--right-of-threshold {
  background: linear-gradient(180deg, #f87171 0%, rgba(248, 113, 113, 0.4) 100%);
}

.pec-histogram-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--pkm-text-secondary);
  margin-top: 0.25rem;
  padding: 0 0.25rem;
}

.pec-histogram-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--pkm-text-secondary);
}

.pec-histogram-summary strong { color: var(--lfiq-ink-strong); }

.pec-cloud-thumb-restore:hover {
  background: rgba(74, 222, 128, 0.18);
}

.ae-gallery-footer {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--lfiq-radius-card);
  border: 1px dashed rgba(173, 198, 255, 0.12);
  background: var(--surface-container);
  font-size: 0.8125rem;
  color: var(--lfiq-text-secondary);
}

.ae-gallery-footer p {
  margin: 0;
  max-width: 75ch;
}

/* Cloud storage tab */
.pec-cloud-card h3,
.pec-cloud-card h4 {
  margin-top: 0;
}

.pec-cloud-config {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(173, 198, 255, 0.12);
  background: var(--surface-container-low);
  font-size: 0.75rem;
  line-height: 1.45;
  overflow: auto;
  max-height: 220px;
  color: var(--lfiq-text-secondary);
}

.pec-cloud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  align-items: center;
}

.pec-cloud-actions .pec-btn-primary,
.pec-cloud-actions .pec-btn-secondary {
  margin-top: 0;
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
  height: 2.5rem;
}

.pec-cloud-live {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  font-size: 0.8125rem;
}

.pec-cloud-live li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(173, 198, 255, 0.06);
}

.pec-cloud-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.pec-cloud-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(173, 198, 255, 0.1);
  background: var(--surface-container-low);
}

.pec-cloud-thumb img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.pec-cloud-thumb-caption {
  font-size: 0.625rem;
  padding: 0.35rem 0.4rem;
  color: var(--lfiq-text-secondary);
  word-break: break-all;
  max-height: 3.2em;
  overflow: hidden;
}
