body {
  margin: 0;
  background: #f5f7fb;
  color: #172033;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e7eaf0;
}

.brand-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: #687386;
  font-size: 13px;
}

.app-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
}

.toolbar-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.panel {
  background: #ffffff;
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
}

.panel-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.image-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef1f5;
}

.image-preview-popover {
  width: 360px;
  max-height: 520px;
  object-fit: contain;
  background: #f1f4f8;
  border-radius: 6px;
}

.search-input {
  min-height: 96px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.result-card-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f1f4f8;
  border-radius: 6px;
}

.result-card-body {
  display: grid;
  gap: 10px;
}

.link-box {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid #dce3ec;
  border-radius: 6px;
}

.muted-text {
  color: #687386;
}

@media (max-width: 720px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .app-main {
    padding: 14px;
  }
}
