
/* Homepage exposes these wrappers and card classes in v2.8. */
#page_wrapper {
  --ran-bg: #0e1519;
  --ran-panel: #172226;
  --ran-line: #304248;
  --ran-accent: #80dfc1;
  --ran-ink: #eaf3f0;
  --ran-muted: #aebfbe;
  background: var(--ran-bg);
  color: var(--ran-ink);
}

#information-widgets, #layout-groups, #footer {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

#information-widgets {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 3px solid var(--ran-accent);
  border-bottom: 1px solid var(--ran-line);
}

#widgets-wrap { gap: 14px 18px; align-items: center; }
#information-widgets-right { gap: 12px; align-items: center; }
#layout-groups { margin-top: 20px; }
#layout-groups [role='heading'], #layout-groups h2 { color: var(--ran-accent); }

#page_wrapper :is(.service-card, .bookmark > a) {
  background: var(--ran-panel);
  border: 1px solid var(--ran-line);
  border-radius: 8px;
  box-shadow: none;
  color: var(--ran-ink);
}

#page_wrapper .service-card { min-height: 72px; padding: 7px; }
#page_wrapper .service-card :is(.service-description, .service-name) { text-wrap: pretty; }
#page_wrapper .service-card .service-description { color: var(--ran-muted); }

#page_wrapper :is(.service-card, .bookmark > a):is(:hover, :focus-within) {
  border-color: var(--ran-accent);
  background: #1d2d31;
}

#page_wrapper :is(a, button, input):focus-visible {
  outline: 2px solid var(--ran-accent);
  outline-offset: -2px;
}

.ran-dify-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  padding: 6px 4px 2px;
  border-top: 1px solid var(--ran-line);
  font-size: .75rem;
}

.ran-dify-controls button {
  padding: 4px 8px;
  min-height: 30px;
  border: 1px solid var(--ran-line);
  border-radius: 5px;
  cursor: pointer;
}

.ran-dify-controls button:hover:not(:disabled) { border-color: var(--ran-accent); }
.ran-dify-controls button:disabled { opacity: .5; cursor: default; }
.ran-dify-controls [role='status'] { color: var(--ran-muted); }

@media (max-width: 640px) {
  #information-widgets, #layout-groups, #footer { width: calc(100% - 24px); }
  #information-widgets { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #page_wrapper :is(.service-card, .bookmark > a) { transition: none; }
}
