/* "About" dialog of about.js (the same file in every application). Colors are the shared tokens of appearance.css;
   the company logo keeps a white plate in dark mode because the logo itself is drawn for white backgrounds. */
#about-open {
  margin: 0 8px 8px 0;
}
.about-dialog {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 40px var(--shadow);
}
.about-dialog::backdrop {
  background: var(--overlay);
}
.about-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 10px 20px;
  border-bottom: 1px solid var(--border);
}
.about-head h2 {
  margin: 0;
  font-size: 18px;
}
.about-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.about-close:hover {
  background: var(--surface-2);
  color: var(--text);
}
.about-close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.about-body {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
}
.about-logo {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}
.about-logo img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}
.about-product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.about-product img {
  flex: none;
  border-radius: 11px;
}
.about-product strong {
  display: block;
  overflow-wrap: anywhere;
}
.about-version {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.about-legal {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.about-legal a {
  color: var(--accent);
}

/* Loading bar for data the user asked for (about.js): fixed at the top edge of the window. */
.activity-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background-image: linear-gradient(90deg, transparent, var(--accent, #2f6fde), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
}
.activity-bar.active {
  opacity: 1;
  animation: activity-bar 1.1s linear infinite;
}
@keyframes activity-bar {
  from {
    background-position: -40% 0;
  }
  to {
    background-position: 140% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .activity-bar.active {
    animation: none;
    background-size: 100% 100%;
    opacity: 0.6;
  }
}

/* Skeleton placeholders while data loads (all applications): the layout shows at once with grey bars that shimmer
   from left to right; the content replaces them. Theme-independent (derived from the text color). */
.skeleton-line {
  display: block;
  width: 100%;
  height: 0.8em;
  border-radius: 4px;
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, currentColor 7%, transparent) 30%,
    color-mix(in srgb, currentColor 16%, transparent) 50%,
    color-mix(in srgb, currentColor 7%, transparent) 70%
  );
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-line + .skeleton-line {
  margin-top: 0.7em;
}
.skeleton-lines {
  max-width: 640px;
  padding: 12px 0;
}
.skeleton-lines .skeleton-line:nth-child(3n + 1) {
  width: 92%;
}
.skeleton-lines .skeleton-line:nth-child(3n + 2) {
  width: 74%;
}
.skeleton-lines .skeleton-line:nth-child(3n) {
  width: 58%;
}
.skeleton-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@keyframes skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-line {
    animation: none;
  }
}
