
/* PFWS About dialog */
.pfws-about-button {
  height: 32px;
  min-width: 72px;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--panel, #ffffff);
  color: var(--ink, #0f172a);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}

.pfws-about-button:hover {
  background: var(--panel-2, #f8fafc);
}

.pfws-about-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2, 6, 23, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pfws-about-backdrop[hidden] {
  display: none !important;
}

.pfws-about-dialog {
  width: min(920px, calc(100vw - 36px));
  max-height: min(86vh, 920px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--panel, #ffffff);
  color: var(--ink, #0f172a);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.pfws-about-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--panel-2, #f8fafc);
}

.pfws-about-title {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pfws-about-subtitle {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted, #64748b);
  font-weight: 750;
}

.pfws-about-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border, #cbd5e1);
  background: var(--panel, #ffffff);
  color: var(--ink, #0f172a);
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
  flex: 0 0 34px;
}

.pfws-about-body {
  overflow: auto;
  padding: 18px 20px 20px 20px;
}

.pfws-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pfws-about-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  background: var(--panel, #ffffff);
  padding: 12px;
  min-width: 0;
}

.pfws-about-card.warn {
  border-color: #fca5a5;
  background: #fef2f2;
}

.pfws-about-card-title {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 950;
  color: var(--muted, #64748b);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pfws-about-card-value {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.pfws-about-section {
  margin-top: 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 14px;
  background: var(--panel, #ffffff);
}

.pfws-about-section-title {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .065em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pfws-about-section p {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink, #0f172a);
}

.pfws-about-section ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.pfws-about-section li {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.45;
}

.pfws-about-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--panel-2, #f8fafc);
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 1.35;
}

html[data-theme="dark"] .pfws-about-card.warn {
  background: rgba(239, 68, 68, .13);
  border-color: rgba(248, 113, 113, .48);
}

html[data-theme="dark"] .pfws-about-close,
html[data-theme="dark"] .pfws-about-button {
  background: #0f172a;
  color: #e5eefc;
  border-color: rgba(148, 163, 184, .34);
}

@media (max-width: 720px) {
  .pfws-about-backdrop {
    padding: 12px;
  }

  .pfws-about-head,
  .pfws-about-body,
  .pfws-about-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
}
