.home-community-link { margin: 10px 0 0; }
.home-community-link a { color: var(--purple); text-underline-offset: 3px; }

.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; }
.community-actions { justify-content: center; margin: 0 0 24px; }

.tool-button,
.landing-card a.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #4b21d6;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.tool-button[hidden], #brief-builder[hidden] { display: none; }
.tool-button:disabled { opacity: .62; cursor: default; }
.tool-button:focus-visible, .tool-link:focus-visible, .tool-field:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.tool-link { color: var(--purple); text-underline-offset: 4px; }

.landing-card label { display: block; margin-bottom: 5px; font-weight: 700; }
.tool-field {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--page);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}
textarea.tool-field { resize: vertical; overflow-wrap: anywhere; }
.landing-card .tool-hint { margin: 0 0 6px; font-size: .91rem; }
.tool-optional { color: var(--muted); font-size: .9rem; font-weight: 500; }
.landing-card .tool-status { margin: 8px 0 0; font-size: .92rem; }
.tool-status:empty { margin: 0; }
.community-qr img {
  display: block;
  width: min(154px, 100%);
  height: auto;
  margin: 12px 0;
  border-radius: 8px;
}
.community-qr a.tool-button + p { margin-top: 10px; }
.brief-output { min-height: 174px; }

#requirements-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--panel-border);
}
#requirements-detail h3 { margin: 0 0 8px; font-size: 1.2rem; }
#requirements-detail h4 { margin: 16px 0 7px; font-size: 1rem; }
#requirements-tasks { margin: 0; }
#requirements-tasks dt { font-weight: 700; }
#requirements-tasks dd { margin: 3px 0 10px; color: var(--muted); line-height: 1.55; }
#requirements-evidence { margin: 0 0 12px; }
#requirements-detail p:empty, #requirements-status:empty { display: none; }
