html,
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #0d1728;
  color: #9fb1c7;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

input,
textarea,
select,
button {
  max-width: 100%;
}

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  transform: translateY(-150%);
  border: 2px solid #93c5fd;
  border-radius: 0.65rem;
  background: #050914;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.24);
}

button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

a,
.btn-link {
  color: #006bb7;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem white,
    0 0 0 0.25rem #258cfb;
}

.content {
}

h1:focus {
  outline: none;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
  overflow-wrap: anywhere;
}

.turnstile-wrap {
  min-height: 65px;
}

.blazor-error-boundary {
  background:
    url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.authz-status-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(180deg, #08111f 0%, #050914 100%);
}

.authz-status-card {
  width: min(100%, 520px);
  padding: 1.5rem;
  background: #0d1728;
  border: 1px solid #1d3352;
  border-radius: 16px;
  color: #9fb1c7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.authz-status-card p,
.admin-eyebrow {
  margin: 0 0 0.5rem;
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.authz-status-card h1 {
  margin: 0;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 950;
}

.authz-status-card span {
  display: block;
  margin: 0.8rem 0 1.1rem;
  line-height: 1.6;
}

.authz-status-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  padding: 0.7rem 0.95rem;
  font-weight: 900;
  text-decoration: none;
}

.status-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 4rem);
  background: linear-gradient(180deg, #08111f 0%, #050914 100%);
}

.status-page-card {
  width: min(100%, 560px);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  background: #0d1728;
  border: 1px solid #1d3352;
  border-radius: 16px;
  color: #9fb1c7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.status-eyebrow {
  margin: 0 0 0.5rem;
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-page-card h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 950;
}

.status-page-card > span {
  display: block;
  margin: 0.8rem 0 1.25rem;
  line-height: 1.6;
}

.status-reference {
  display: grid;
  gap: 0.3rem;
  margin: 1rem 0;
  padding: 0.85rem;
  border: 1px solid #1d3352;
  border-radius: 10px;
  background: #08111f;
}

.status-reference small {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-reference code {
  color: #e5edf7;
  white-space: normal;
  word-break: break-word;
}

.status-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.status-page-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  padding: 0.7rem 0.95rem;
  font-weight: 900;
  text-decoration: none;
}

.status-page-actions a + a {
  border-color: #1d3352;
  background: #111f35;
  color: #dbeafe;
}

.account-auth-shell,
.account-manage-shell,
.account-status-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 4rem);
  background: linear-gradient(180deg, #08111f 0%, #050914 100%);
  color: #e5edf7;
  padding-bottom: max(clamp(1rem, 5vw, 4rem), env(safe-area-inset-bottom));
}

.account-auth-card,
.account-manage-card,
.account-status-card {
  width: min(100%, 520px);
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #0d1728;
  border: 1px solid #1d3352;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.7rem;
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
}

.account-brand span {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 0.7rem;
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
}

.account-header,
.account-manage-header {
  margin-bottom: 1.35rem;
}

.account-header p,
.account-manage-header p,
.account-status-eyebrow {
  margin: 0;
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-header h1,
.account-manage-header h1,
.account-status-card h1 {
  margin: 0.45rem 0 0;
  color: #ffffff;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.02;
  font-weight: 950;
}

.account-header span,
.account-manage-header span,
.account-status-card > span {
  display: block;
  margin-top: 0.75rem;
  color: #9fb1c7;
  line-height: 1.6;
}

.account-manage-header > a {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.account-manage-header > a:hover {
  color: #93c5fd;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.account-field .input-wrap {
  position: relative;
}

.account-field label,
.account-current-value span {
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-input {
  width: 100%;
  border: 1px solid #1d3352;
  border-radius: 10px;
  background: #08111f;
  color: #e5edf7;
  padding: 0.82rem 0.9rem;
  outline: none;
  font-size: 0.9rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.account-field .input-wrap .account-input {
  padding-right: 3rem;
}

body .account-manage-shell .password-toggle-button {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8aa0b8;
  transform: translateY(-50%);
}

body .account-manage-shell .password-toggle-button:hover,
body .account-manage-shell .password-toggle-button:focus {
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.12);
}

body .account-manage-shell .password-toggle-button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

body .account-manage-shell .password-toggle-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .account-manage-shell .password-toggle-button .password-toggle-hide-icon,
body .account-manage-shell .password-toggle-button.is-password-visible .password-toggle-show-icon {
  display: none;
}

body .account-manage-shell .password-toggle-button.is-password-visible .password-toggle-hide-icon {
  display: block;
}

.account-input:focus {
  border-color: #2563eb;
  background: #0a1424;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.account-input::placeholder {
  color: #64748b;
}

.account-field .validation-message {
  color: #fb7185;
  font-size: 0.78rem;
  font-weight: 800;
}

.account-alert {
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
}

.account-alert.success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
  color: #bbf7d0;
}

.account-alert p {
  margin: 0.25rem 0;
}

.account-primary-button,
.account-primary-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b82f6;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
}

.account-primary-button:hover:not(:disabled),
.account-primary-link:hover {
  color: #ffffff;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.account-primary-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.account-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.account-links a {
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.account-links a:hover {
  color: #ffffff;
}

.account-current-value {
  margin-bottom: 1.1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #1d3352;
  border-radius: 12px;
  background: #08111f;
}

.account-current-value strong {
  display: block;
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.account-status-card {
  text-align: center;
}

.account-status-icon {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: #08111f;
  color: #60a5fa;
  font-size: 1.1rem;
  font-weight: 950;
}

.account-status-icon.success {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.account-status-icon.error {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.account-status-card .account-primary-link {
  margin-top: 1.35rem;
}

body .auth-page.auth-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(220px, 390px) minmax(260px, 520px);
  gap: clamp(3rem, 9vw, 7rem);
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  padding-bottom: max(clamp(2rem, 6vw, 5rem), env(safe-area-inset-bottom));
  background:
    radial-gradient(
      circle at 72% 35%,
      rgba(37, 99, 235, 0.14),
      transparent 28%
    ),
    linear-gradient(90deg, #050914 0%, #050914 50%, #08111f 100%);
  color: #e5edf7;
  overflow-x: hidden;
}

body .auth-page .auth-card {
  width: 100%;
  max-width: 390px;
  align-self: center;
  justify-self: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #0d1728;
  border: 1px solid #1d3352;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body .auth-page .auth-brand-row {
  margin-bottom: 1.7rem;
}

body .auth-page .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 950;
}

body .auth-page .brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.22);
}

body .auth-page .auth-header {
  margin-bottom: 1.5rem;
}

body .auth-page .auth-eyebrow,
body .auth-page .side-pill {
  margin: 0;
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

body .auth-page .auth-header h1 {
  margin: 0.45rem 0 0;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

body .auth-page .auth-header p {
  margin: 0.7rem 0 0;
  color: #9fb1c7;
  font-size: 0.84rem;
  line-height: 1.55;
}

body .auth-page .auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

body .auth-page .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body .auth-page .label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body .auth-page .label-row label,
body .auth-page .form-group > label {
  color: #dbeafe;
  font-size: 0.76rem;
  font-weight: 850;
}

body .auth-page .label-row a {
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

body .auth-page .input-wrap {
  position: relative;
}

body .auth-page .input-icon,
body .auth-page .input-icon-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #71849b;
  font-size: 0.8rem;
  pointer-events: none;
}

body .auth-page .input-icon {
  left: 0.85rem;
}

body .auth-page .input-icon-right {
  right: 0.85rem;
}

body .auth-page .input-icon svg {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .auth-page .password-toggle-button {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8aa0b8;
  transform: translateY(-50%);
}

body .auth-page .password-toggle-button:hover,
body .auth-page .password-toggle-button:focus {
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.12);
}

body .auth-page .password-toggle-button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

body .auth-page .password-toggle-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .auth-page .password-toggle-button .password-toggle-hide-icon,
body .auth-page .password-toggle-button.is-password-visible .password-toggle-show-icon {
  display: none;
}

body .auth-page .password-toggle-button.is-password-visible .password-toggle-hide-icon {
  display: block;
}

body .auth-page .password-toggle-button ~ .input-icon-right {
  display: none;
}

body .auth-page .form-control {
  width: 100%;
  min-width: 0;
  height: auto;
  border: 1px solid #1d3352;
  border-radius: 10px;
  background: #08111f;
  color: #e5edf7;
  padding: 0.78rem 0.9rem;
  outline: none;
  font-size: 0.86rem;
  line-height: 1.35;
  box-shadow: none;
}

body .auth-page .input-wrap .form-control {
  padding-left: 2.3rem;
  padding-right: 2.3rem;
}

body .auth-page .form-control:focus {
  border-color: #2563eb;
  background: #0a1424;
  color: #e5edf7;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

body .auth-page .form-control::placeholder {
  color: #64748b;
}

body .auth-page .validation-message {
  color: #fb7185;
  font-size: 0.78rem;
  font-weight: 700;
}

body .auth-page .auth-help-text {
  margin: -0.1rem 0 0;
  color: #9fb1c7;
  font-size: 0.76rem;
  line-height: 1.45;
}

body .auth-page .auth-alert {
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 750;
}

body .auth-page .auth-alert p {
  margin: 0.25rem 0;
}

body .auth-page .auth-alert a {
  display: inline-flex;
  margin-top: 0.35rem;
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
}

body .auth-page .remember-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #9fb1c7;
  font-size: 0.78rem;
  cursor: pointer;
}

body .auth-page .remember-row input {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: #2563eb;
}

body .auth-page .auth-button {
  width: 100%;
  border: 1px solid #3b82f6;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 0.82rem 1rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

body .auth-page .auth-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.42);
}

body .auth-page .auth-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

body .auth-page .retina-scan-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 10px;
  background: #111f35;
  color: #dbeafe;
  padding: 0.76rem 1rem;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

body .auth-page .retina-scan-button:hover,
body .auth-page .retina-scan-button:focus-visible {
  transform: translateY(-1px);
  border-color: #93c5fd;
  background: #132744;
  box-shadow: 0 14px 30px rgba(8, 17, 31, 0.28);
}

body .retina-modal {
  width: min(100%, 420px);
  border: 1px solid #1d3352;
  border-radius: 16px;
  background: #0d1728;
  color: #e5edf7;
  padding: 1.35rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

body .retina-modal:popover-open {
  position: fixed;
  inset: 0;
  margin: auto;
}

body .retina-modal::backdrop {
  background: rgba(5, 9, 20, 0.72);
}

body .retina-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 999px;
  background: #08111f;
  color: #9fb1c7;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

body .retina-modal-close:hover,
body .retina-modal-close:focus-visible {
  color: #ffffff;
  border-color: #60a5fa;
}

body .retina-modal-title {
  margin: 0 2.25rem 0.75rem 0;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 950;
}

body .retina-modal-message {
  margin: 0;
  color: #9fb1c7;
  font-size: 0.92rem;
  line-height: 1.6;
}

body .retina-modal-dismiss {
  width: 100%;
  margin-top: 1.2rem;
  border: 1px solid #3b82f6;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 0.78rem 1rem;
  font-weight: 950;
  cursor: pointer;
}

body .retina-modal-dismiss:hover,
body .retina-modal-dismiss:focus-visible {
  border-color: #93c5fd;
}

body .auth-page .external-login {
  margin-top: 1.1rem;
}

body .auth-page .auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #71849b;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body .auth-page .auth-divider::before,
body .auth-page .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #1d3352;
}

body .auth-page .external-login-form {
  margin: 0;
}

body .auth-page .google-login-button {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid #2a405f;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  padding: 0.78rem 1rem;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

body .auth-page .google-login-button:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 14px 30px rgba(8, 17, 31, 0.28);
}

body .auth-page .google-mark {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dfeb;
  border-radius: 999px;
  color: #2563eb;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 950;
}

body .auth-page .auth-footer {
  margin-top: 2rem;
  text-align: center;
  color: #71849b;
}

body .auth-page .auth-footer p {
  margin: 0;
  font-size: 0.76rem;
}

body .auth-page .auth-footer a {
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
}

body .auth-page .auth-footer a:hover,
body .auth-page .auth-alert a:hover,
body .auth-page .label-row a:hover {
  color: #60a5fa;
}

body .auth-page .auth-side-panel {
  width: 100%;
  max-width: 520px;
  min-height: 0;
  align-self: center;
  justify-self: start;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body .auth-page .side-content {
  max-width: 520px;
}

body .auth-page .side-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.24);
}

body .auth-page .auth-side-panel h2 {
  margin: 1.2rem 0 0;
  color: #ffffff;
  font-size: clamp(2.65rem, 6vw, 5.3rem);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: 0;
}

body .auth-page .auth-side-panel h2 span {
  color: #60a5fa;
}

body .auth-page .auth-side-panel p {
  max-width: 460px;
  margin: 1.5rem 0 0;
  color: #9fb1c7;
  font-size: 1rem;
  line-height: 1.7;
}

body .auth-page .wave-visual {
  position: relative;
  height: clamp(80px, 16vw, 160px);
  margin-top: 1rem;
  overflow: hidden;
  opacity: 0.55;
}

body .auth-page .wave-visual span {
  position: absolute;
  left: 2rem;
  right: 0;
  height: 120px;
  border: 2px dashed rgba(37, 99, 235, 0.28);
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 50%;
  transform: rotate(8deg);
}

body .auth-page .wave-visual span:last-child {
  top: 35px;
  border-color: rgba(96, 165, 250, 0.16);
  transform: rotate(-8deg);
}

body .auth-page .side-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 540px;
  margin-top: clamp(2rem, 6vw, 3.5rem);
}

body .auth-page .side-stats div {
  min-height: 110px;
  background: #0d1728;
  border: 1px solid #1d3352;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

body .auth-page .stat-icon {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: #60a5fa;
  font-size: 1rem;
}

body .auth-page .side-stats strong {
  display: block;
  color: #ffffff;
  font-size: 0.86rem;
}

body .auth-page .side-stats small {
  display: block;
  color: #71849b;
  font-size: 0.72rem;
  margin-top: 0.25rem;
}

@media (max-width: 700px) {
  body .auth-page.auth-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    padding: 1rem;
  }

  body .auth-page .auth-side-panel {
    display: none;
  }
}

@media (max-width: 480px) {
  body .auth-page.auth-shell {
    padding: 0.85rem;
  }

  body .auth-page .auth-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  body .auth-page .label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

.admin-shell {
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(180deg, #08111f 0%, #050914 100%);
  color: #e5edf7;
  overflow-x: hidden;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.admin-header.compact {
  margin-bottom: 1rem;
}

.admin-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  font-weight: 950;
}

.admin-header span {
  display: block;
  margin-top: 0.7rem;
  color: #9fb1c7;
  line-height: 1.5;
}

.admin-quick-links {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-quick-links a,
.admin-row-link,
.admin-actions a,
.admin-actions button,
.admin-pagination button,
.admin-modal-actions button {
  border: 1px solid #1d3352;
  border-radius: 10px;
  background: #0d1728;
  color: #c7d7ea;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.admin-quick-links a:first-child {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.admin-quick-links a:hover,
.admin-row-link:hover,
.admin-actions a:hover,
.admin-actions button:hover,
.admin-pagination button:hover:not(:disabled),
.admin-modal-actions button:hover {
  color: #ffffff;
  border-color: #2563eb;
  background: #111e32;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-stat-card,
.admin-panel,
.admin-status-card,
.admin-empty,
.admin-modal {
  background: #0d1728;
  border: 1px solid #1d3352;
  border-radius: 16px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.admin-stat-card {
  padding: 1rem;
}

.admin-stat-card span,
.admin-count {
  color: #71849b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-stat-card strong {
  display: block;
  margin-top: 0.45rem;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.admin-stat-card small {
  display: block;
  margin-top: 0.45rem;
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-panel {
  padding: 1rem;
}

.admin-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.admin-panel-title p {
  margin: 0 0 0.25rem;
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-panel-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 950;
}

.admin-panel-title a {
  color: #60a5fa;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-list {
  display: flex;
  flex-direction: column;
}

.admin-list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid #172842;
}

.admin-list-row strong,
.admin-title-cell strong {
  display: block;
  color: #ffffff;
  font-size: 0.94rem;
}

.admin-list-row span,
.admin-title-cell span,
.admin-table-row > span,
.admin-table-row > a {
  color: #9fb1c7;
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-table-row > a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 850;
}

.admin-badge-stack {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.admin-badge.success {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.admin-badge.warning {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.admin-badge.info {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.admin-badge.danger {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.28);
}

.admin-badge.neutral {
  color: #c7d7ea;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-search {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #1d3352;
  border-radius: 999px;
  background: #08111f;
  padding: 0.65rem 0.9rem;
}

.admin-search span {
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-search input,
.admin-toolbar select {
  border: none;
  outline: none;
  background: transparent;
  color: #e5edf7;
  font: inherit;
}

.admin-search input {
  width: 100%;
  min-width: 0;
}

.admin-toolbar select {
  min-height: 2.6rem;
  border: 1px solid #1d3352;
  border-radius: 10px;
  background: #08111f;
  padding: 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 850;
}

.admin-toolbar button.admin-filter-clear {
  min-height: 2.6rem;
  border: 1px solid #1d3352;
  border-radius: 10px;
  background: #0d1728;
  color: #c7d7ea;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-toolbar button.admin-filter-clear:hover {
  color: #ffffff;
  border-color: #2563eb;
  background: #111e32;
}

.admin-table {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: auto;
}

.admin-table-header,
.admin-table-row {
  display: grid;
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
}

.admin-table.posts .admin-table-header,
.admin-table.posts .admin-table-row {
  grid-template-columns: minmax(260px, 1.35fr) 140px 120px 120px 150px 155px minmax(360px, max-content);
}

.admin-posts-table .admin-table-header,
.admin-posts-table .admin-table-row {
  grid-template-columns: minmax(220px, 1.35fr) 115px 110px 110px 125px 120px minmax(360px, 1fr);
}

.admin-table.comments .admin-table-header,
.admin-table.comments .admin-table-row {
  grid-template-columns: minmax(300px, 1.5fr) 180px 150px 120px 90px 190px;
}

.admin-table.users .admin-table-header,
.admin-table.users .admin-table-row {
  grid-template-columns: minmax(220px, 1.15fr) minmax(210px, 1fr) 120px 110px 155px 150px minmax(345px, max-content);
}

.admin-table.reports .admin-table-header,
.admin-table.reports .admin-table-row {
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr) 150px 120px 120px 330px;
}

.admin-table.audit .admin-table-header,
.admin-table.audit .admin-table-row {
  grid-template-columns: 145px 190px 170px minmax(190px, 1fr) minmax(220px, 1.15fr) minmax(160px, 0.8fr);
}

.admin-table-header {
  padding: 0 0 0.75rem;
  border-bottom: 1px solid #172842;
  color: #71849b;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table-row {
  padding: 1rem 0;
  border-bottom: 1px solid #172842;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  min-width: max-content;
  white-space: nowrap;
}

.admin-actions a,
.admin-actions button {
  flex: 0 0 auto;
}

.admin-users-actions,
.admin-users-actions-heading {
  min-width: 345px;
}

.admin-users-actions {
  flex-wrap: wrap;
  row-gap: 0.45rem;
}

.admin-post-actions,
.admin-post-actions-heading {
  min-width: 360px;
}

.admin-post-actions {
  flex-wrap: wrap;
  row-gap: 0.45rem;
}

.admin-actions button.danger,
.admin-modal-actions button.danger {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(251, 113, 133, 0.12);
  color: #fecdd3;
}

.admin-actions button:disabled,
.admin-pagination button:disabled,
.admin-modal-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-status-card,
.admin-empty {
  padding: 1.25rem;
  color: #9fb1c7;
}

.admin-pagination {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.admin-pagination button.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: rgba(5, 9, 20, 0.78);
  backdrop-filter: blur(10px);
}

.admin-modal {
  width: min(100%, 430px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.4rem;
}

.admin-modal h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 950;
}

.admin-modal p {
  margin: 0.8rem 0 1.2rem;
  color: #9fb1c7;
  line-height: 1.6;
}

.admin-textarea {
  width: 100%;
  min-height: 130px;
  border: 1px solid #1d3352;
  border-radius: 12px;
  background: #08111f;
  color: #e5edf7;
  padding: 0.8rem;
  font: inherit;
  resize: vertical;
  outline: none;
}

.admin-textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.admin-form-error {
  color: #fecdd3 !important;
  margin: 0.65rem 0 1rem !important;
  font-size: 0.86rem;
}

.admin-modal strong {
  color: #ffffff;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

@media (max-width: 1300px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-table-header {
    display: none;
  }

  .admin-table.posts .admin-table-row,
  .admin-table.comments .admin-table-row,
  .admin-table.users .admin-table-row,
  .admin-table.reports .admin-table-row,
  .admin-table.audit .admin-table-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1rem;
    margin-bottom: 0.85rem;
    border: 1px solid #172842;
    border-radius: 14px;
    background: #08111f;
  }

  .admin-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .admin-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .admin-toolbar,
  .admin-search {
    align-items: stretch;
  }

  .admin-toolbar {
    flex-direction: column;
  }

  .admin-search,
  .admin-toolbar select {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .admin-shell {
    padding: 1rem;
  }

  .admin-header,
  .admin-grid-two {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
  }

  .admin-quick-links {
    justify-content: flex-start;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-quick-links,
  .admin-actions,
  .admin-pagination {
    width: 100%;
  }

  .admin-quick-links a,
  .admin-actions a,
  .admin-actions button,
  .admin-pagination button {
    min-height: 44px;
  }

  .admin-actions a,
  .admin-actions button {
    flex: 1 1 calc(50% - 0.45rem);
  }
}

@media (max-width: 520px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-modal-actions {
    flex-direction: column;
  }

  .admin-modal-actions button,
  .admin-actions a,
  .admin-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  .account-auth-card,
  .account-manage-card,
  .account-status-card,
  .authz-status-card,
  .status-page-card {
    border-radius: 14px;
  }

  .status-page-actions a {
    width: 100%;
  }
}
/* Community Query feature */
.community-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 2rem;
}

.community-hero,
.community-page-header,
.community-detail-card,
.community-panel,
.community-form,
.community-query-toolbar,
.community-query-card,
.community-comments-block,
.community-answers-block,
.community-answer-form-block {
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.community-hero,
.community-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.community-hero h1,
.community-page-header h1,
.community-detail-header h1 {
    margin: 0.25rem 0;
    color: #111827;
    font-size: 2rem;
    line-height: 1.15;
}

.community-hero p,
.community-page-header p,
.community-query-card p {
    color: #4b5563;
}

.community-eyebrow {
    margin: 0;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.community-hero-actions,
.community-form-actions,
.community-inline-actions,
.community-card-footer,
.community-detail-header,
.community-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.community-primary-link,
.community-secondary-link,
.community-primary-button,
.community-secondary-button,
.community-ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.95rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.community-primary-link,
.community-primary-button {
    border: 1px solid #0f766e;
    background: #0f766e;
    color: #fff;
}

.community-secondary-link,
.community-secondary-button,
.community-ghost-button {
    border: 1px solid rgba(31, 41, 55, 0.18);
    background: #fff;
    color: #1f2937;
}

.community-primary-button,
.community-secondary-button,
.community-ghost-button,
.community-inline-actions button,
.community-suggested-tags button,
.community-comment-form button {
    cursor: pointer;
}

.community-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.community-stats-row article {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 8px;
}

.community-stats-row span,
.community-card-meta,
.community-author,
.community-comment span,
.community-answer-header span {
    color: #64748b;
    font-size: 0.9rem;
}

.community-stats-row strong {
    display: block;
    color: #111827;
    font-size: 1.75rem;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.community-panel,
.community-form,
.community-comments-block,
.community-answers-block,
.community-answer-form-block {
    padding: 1.25rem;
}

.community-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.community-panel-header p,
.community-panel-header h2,
.community-section-title h2,
.community-answer-form-block h2 {
    margin: 0;
}

.community-list,
.community-query-list,
.community-answer-list,
.community-comment-list {
    display: grid;
    gap: 0.85rem;
}

.community-list-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    color: inherit;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 8px;
}

.community-filter-links,
.community-tags,
.community-suggested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.community-filter-links a,
.community-tags a,
.community-suggested-tags button {
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.query-form {
    display: grid;
    gap: 1rem;
}

.query-form .form-group {
    margin: 0;
}

.query-form .form-group > small {
    display: block;
    margin-top: 0.4rem;
    line-height: 1.45;
}

.tag-selector {
    display: grid;
    gap: 0.7rem;
    margin: 0.25rem 0 0.5rem;
    padding: 0.85rem;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 8px;
    background: #f8fafc;
}

.tag-selector-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.tag-selector-header span {
    color: #374151;
    font-size: 0.86rem;
    font-weight: 800;
}

.tag-selector-header small {
    color: #64748b;
    font-size: 0.82rem;
}

.tag-container,
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.selected-tags {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.1);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-decoration: none;
    cursor: pointer;
}

.tag-pill.selected {
    gap: 0.4rem;
    border-color: rgba(15, 118, 110, 0.34);
    background: #ccfbf1;
    color: #115e59;
}

.tag-pill.is-selected {
    border-color: rgba(15, 118, 110, 0.38);
    background: #dbeafe;
    color: #075985;
}

.tag-pill.selected span {
    display: grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.14);
    font-size: 0.75rem;
    line-height: 1;
}

.query-form .community-form-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(31, 41, 55, 0.18);
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-weight: 700;
    text-decoration: none;
}

.community-query-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 0.45fr)) auto auto;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem;
    margin-bottom: 1rem;
}

.community-query-toolbar label,
.community-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: #374151;
    font-weight: 700;
}

.community-query-toolbar input,
.community-query-toolbar select,
.community-form .form-control,
.community-comment-form .form-control,
.community-answer textarea,
.community-comment textarea {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid rgba(31, 41, 55, 0.18);
    border-radius: 6px;
}

.community-textarea {
    min-height: 12rem;
}

.community-query-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.community-query-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(5.5rem, 1fr));
    align-content: start;
    gap: 0.5rem;
}

.community-query-counts span {
    padding: 0.65rem;
    background: #f1f5f9;
    border-radius: 6px;
    color: #475569;
    text-align: center;
}

.community-query-card h2 {
    margin: 0.35rem 0;
    font-size: 1.25rem;
}

.community-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.community-status-pill,
.accepted-answer-banner,
.admin-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.community-status-pill.open,
.community-status-pill.answered {
    background: #e0f2fe;
    color: #075985;
}

.community-status-pill.unanswered {
    background: #fff7ed;
    color: #9a3412;
}

.community-status-pill.solved,
.accepted-answer-banner {
    background: #dcfce7;
    color: #166534;
}

.community-status-pill.hidden,
.community-status-pill.archived {
    background: #fee2e2;
    color: #991b1b;
}

.community-detail-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.community-detail-body {
    margin: 1rem 0;
    color: #1f2937;
    line-height: 1.7;
    white-space: pre-wrap;
}

.community-answer-rich {
    white-space: normal;
}

.community-answer-rich p {
    margin: 0 0 0.85rem;
}

.community-answer-rich p:last-child,
.community-answer-rich ul:last-child,
.community-answer-rich ol:last-child,
.community-answer-rich blockquote:last-child,
.community-answer-rich pre:last-child {
    margin-bottom: 0;
}

.community-answer-rich ul,
.community-answer-rich ol {
    margin: 0 0 0.85rem 1.25rem;
    padding-left: 1rem;
}

.community-answer-rich li + li {
    margin-top: 0.35rem;
}

.community-answer-rich a {
    color: #0f766e;
    font-weight: 700;
}

.community-answer-rich blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid rgba(15, 118, 110, 0.45);
    background: rgba(15, 118, 110, 0.08);
    border-radius: 6px;
}

.community-answer-rich pre {
    margin: 1rem 0;
    padding: 0.9rem;
    overflow-x: auto;
    border: 1px solid rgba(31, 41, 55, 0.14);
    border-radius: 8px;
    background: #0f172a;
    color: #e5edf7;
}

.community-answer-rich code {
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.1);
}

.community-answer-rich pre code {
    padding: 0;
    background: transparent;
}

.community-comments-block,
.community-answers-block {
    margin-top: 1rem;
}

.community-answer {
    padding: 1rem;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 8px;
    background: #fff;
}

.community-answer.accepted {
    border-color: rgba(22, 101, 52, 0.45);
    background: #f7fef9;
}

.community-answer-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.community-comment {
    padding: 0.75rem;
    border-left: 3px solid rgba(15, 118, 110, 0.28);
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
    font-size: 0.94rem;
}

.community-comment.answer-comment {
    background: #ffffff;
}

.community-comment p {
    margin: 0.4rem 0 0;
    color: #475569;
}

.community-comment-form {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.community-comment-form.inline {
    margin: 0.85rem 0;
}

.community-comment-form button,
.community-inline-actions button {
    width: fit-content;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(31, 41, 55, 0.16);
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-weight: 700;
}

.community-inline-actions .danger,
.admin-actions .danger {
    border-color: rgba(185, 28, 28, 0.25);
    color: #b91c1c;
}

.community-signin-card,
.community-empty,
.community-status-card {
    padding: 1rem;
    background: #f8fafc;
    border: 1px dashed rgba(31, 41, 55, 0.18);
    border-radius: 8px;
    color: #475569;
}

.community-empty.large {
    padding: 2rem;
    text-align: center;
}

.community-empty.small {
    padding: 0.65rem;
}

.community-inline-error {
    color: #b91c1c;
    font-weight: 700;
}

.community-answer-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 41, 55, 0.1);
}

.community-answer-comments h3 {
    margin: 0;
    font-size: 1rem;
}

.answer-replies {
    display: grid;
    gap: 0.8rem;
    margin-left: clamp(0.35rem, 2vw, 1rem);
    padding-left: clamp(0.75rem, 2vw, 1rem);
    border-left: 2px solid rgba(15, 118, 110, 0.22);
}

.answer-replies-header,
.answer-reply-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    align-items: center;
}

.answer-replies-header {
    justify-content: space-between;
}

.answer-replies-header span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.answer-reply-form {
    padding: 0.75rem;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 8px;
    background: #f8fafc;
}

.answer-reply-form textarea {
    min-height: 5.75rem;
    resize: vertical;
}

.answer-reply-list {
    gap: 0.7rem;
}

.community-comment.answer-reply-card {
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-left: 3px solid rgba(15, 118, 110, 0.42);
    border-radius: 8px;
    background: #f8fafc;
}

.answer-reply-author-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: 0.12rem 0.45rem;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
}

.community-admin-table .admin-table-header,
.community-admin-table .admin-table-row {
    grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 0.7fr) minmax(120px, 0.6fr) minmax(100px, 0.5fr) minmax(190px, 1fr);
}

@media (max-width: 900px) {
    .community-shell {
        padding: 1rem;
    }

    .community-hero,
    .community-page-header,
    .community-detail-header,
    .community-card-footer,
    .community-answer-header {
        flex-direction: column;
        align-items: stretch;
    }

    .community-grid,
    .community-stats-row,
    .community-query-card,
    .community-query-toolbar {
        grid-template-columns: 1fr;
    }

    .community-query-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .answer-replies {
        margin-left: 0;
        padding-left: 0.75rem;
    }

    .answer-reply-form .form-control,
    .answer-reply-form button,
    .answer-reply-card .community-inline-actions button {
        width: 100%;
    }

    .tag-selector {
        padding: 0.75rem;
    }

    .tag-container,
    .selected-tags {
        gap: 0.45rem;
    }

    .tag-pill {
        white-space: normal;
    }

    .query-form .community-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .query-form .community-form-actions button,
    .query-form .community-form-actions a {
        width: 100%;
    }
}

/* Dark AV Knowledge community dashboard polish */
.community-shell {
    --community-bg: #08111f;
    --community-surface: #0d1728;
    --community-surface-2: #111f35;
    --community-surface-3: #07101d;
    --community-border: #1d3352;
    --community-border-soft: rgba(96, 165, 250, 0.18);
    --community-text: #e5edf7;
    --community-muted: #9fb1c7;
    --community-faint: #6f87a5;
    --community-accent: #258cfb;
    --community-accent-2: #60a5fa;
    --community-good: #22c55e;
    --community-warn: #f59e0b;
    --community-danger: #ef4444;
    --community-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    width: min(1320px, 100%);
    color: var(--community-muted);
}

.community-dashboard-shell {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.community-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1.3fr) minmax(230px, 0.55fr);
    gap: 1rem;
    align-items: start;
}

.community-side-rail,
.community-right-rail {
    display: grid;
    gap: 1rem;
}

.community-side-rail {
    position: sticky;
    top: 1rem;
}

.community-main-column {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.community-hero,
.community-page-header,
.community-detail-card,
.community-panel,
.community-form,
.community-query-toolbar,
.community-query-card,
.community-comments-block,
.community-answers-block,
.community-answer-form-block,
.community-side-rail,
.community-status-card,
.community-empty,
.community-signin-card {
    background:
        linear-gradient(180deg, rgba(17, 31, 53, 0.94), rgba(13, 23, 40, 0.98)),
        var(--community-surface);
    border: 1px solid var(--community-border);
    border-radius: 12px;
    box-shadow: var(--community-shadow);
    color: var(--community-muted);
}

.community-hero,
.community-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: clamp(1.15rem, 2vw, 1.55rem);
    margin-bottom: 0;
}

.community-hero,
.community-page-header {
    overflow: hidden;
    position: relative;
}

.community-hero::before,
.community-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(37, 140, 251, 0.18), transparent 34%),
        linear-gradient(90deg, rgba(96, 165, 250, 0.08), transparent 44%);
}

.community-hero > *,
.community-page-header > * {
    position: relative;
    z-index: 1;
}

.community-hero h1,
.community-page-header h1,
.community-detail-header h1,
.community-detail-card h1 {
    color: var(--community-text);
    font-weight: 950;
    letter-spacing: 0;
}

.community-hero p,
.community-page-header p,
.community-query-card p,
.community-detail-body,
.community-comment p {
    color: var(--community-muted);
}

.community-eyebrow,
.community-panel-header p,
.community-rail-title {
    color: var(--community-accent-2);
    letter-spacing: 0.08em;
}

.community-rail-title {
    margin: 0.25rem 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.community-rail-nav {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
}

.community-rail-nav a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--community-muted);
    font-weight: 800;
    text-decoration: none;
}

.community-rail-nav a:hover,
.community-rail-nav a:focus-visible,
.community-rail-nav a.active {
    border-color: var(--community-border-soft);
    background: rgba(37, 140, 251, 0.09);
    color: var(--community-text);
}

.community-rail-nav.compact a {
    font-size: 0.9rem;
}

.community-rail-nav strong {
    padding: 0.12rem 0.4rem;
    border: 1px solid var(--community-border);
    border-radius: 999px;
    color: #bfdbfe;
    font-size: 0.72rem;
}

.community-filter-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
}

.community-filter-dot.solved {
    background: var(--community-good);
}

.community-filter-dot.open {
    background: var(--community-warn);
}

.community-filter-dot.unanswered {
    background: var(--community-danger);
}

.community-primary-link,
.community-primary-button,
.community-secondary-link,
.community-secondary-button,
.community-ghost-button,
.community-hero-search button,
.community-comment-form button,
.community-inline-actions button {
    border-radius: 9px;
    font-weight: 900;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.community-primary-link,
.community-primary-button,
.community-hero-search button {
    border-color: #2563eb;
    background: linear-gradient(180deg, #258cfb, #1d4ed8);
    color: #fff;
}

.community-secondary-button.is-active,
.community-primary-button.is-active {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.community-secondary-link,
.community-secondary-button,
.community-ghost-button,
.community-comment-form button,
.community-inline-actions button {
    border-color: var(--community-border);
    background: #111f35;
    color: #dbeafe;
}

.community-primary-link:hover,
.community-secondary-link:hover,
.community-filter-links a:hover,
.community-tags a:hover,
.community-list-item:hover,
.community-query-card h2 a:hover {
    color: #ffffff;
}

.community-primary-link:hover,
.community-secondary-link:hover,
.community-primary-button:hover,
.community-secondary-button:hover,
.community-ghost-button:hover,
.community-hero-search button:hover {
    transform: translateY(-1px);
}

.community-hero-search {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    margin-top: 1rem;
}

.community-hero-search input,
.community-query-toolbar input,
.community-query-toolbar select,
.community-form .form-control,
.community-comment-form .form-control,
.community-answer textarea,
.community-comment textarea {
    min-height: 2.65rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--community-border);
    background: var(--community-surface-3);
    color: var(--community-text);
    border-radius: 9px;
}

.community-hero-search input::placeholder,
.community-query-toolbar input::placeholder,
.community-form .form-control::placeholder,
.community-comment-form .form-control::placeholder {
    color: #6f87a5;
}

.community-hero-search input:focus,
.community-query-toolbar input:focus,
.community-query-toolbar select:focus,
.community-form .form-control:focus,
.community-comment-form .form-control:focus,
.community-answer textarea:focus,
.community-comment textarea:focus {
    border-color: var(--community-accent);
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(37, 140, 251, 0.22);
}

.community-stats-row {
    margin-bottom: 0;
}

.community-stats-row article,
.community-pulse-grid > div {
    background: linear-gradient(180deg, #111f35, #0b1627);
    border: 1px solid var(--community-border);
    border-radius: 12px;
    box-shadow: none;
}

.community-stats-row.compact-dashboard {
    gap: 0.75rem;
}

.community-stats-row span,
.community-pulse-grid span {
    color: var(--community-faint);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.community-stats-row strong,
.community-pulse-grid strong {
    color: var(--community-text);
    font-size: 1.85rem;
    line-height: 1.1;
}

.community-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--community-border);
}

.community-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -0.35rem 0 1rem;
}

.community-active-filters span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(96, 165, 250, 0.36);
    border-radius: 999px;
    background: rgba(37, 140, 251, 0.1);
    color: #dbeafe;
    font-size: 0.82rem;
    font-weight: 850;
}

.community-tab-row a {
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--community-muted);
    font-weight: 900;
    text-decoration: none;
}

.community-tab-row a.active,
.community-tab-row a:hover,
.community-tab-row a:focus-visible {
    border-color: var(--community-border);
    background: #111f35;
    color: var(--community-text);
}

.community-query-card {
    background: linear-gradient(180deg, rgba(17, 31, 53, 0.96), rgba(8, 17, 31, 0.96));
    border-color: var(--community-border);
    box-shadow: none;
}

.community-query-card.compact {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.9rem;
}

.community-query-card:hover {
    border-color: rgba(96, 165, 250, 0.48);
}

.community-query-counts {
    gap: 0.45rem;
}

.community-query-counts span {
    background: #08111f;
    border: 1px solid var(--community-border);
    color: var(--community-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
}

.community-query-counts strong {
    display: block;
    color: #7dd3fc;
    font-size: 1rem;
}

.community-query-card h2 {
    margin: 0.35rem 0 0.3rem;
    color: var(--community-text);
    font-size: 1rem;
    line-height: 1.3;
}

.community-query-card h2 a {
    color: inherit;
    text-decoration: none;
}

.community-query-card p {
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.community-card-meta {
    color: var(--community-faint);
    font-size: 0.8rem;
}

.community-status-pill {
    border: 1px solid currentColor;
    background: transparent;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.community-status-pill.open,
.community-status-pill.answered {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.1);
}

.community-status-pill.unanswered {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
}

.community-status-pill.solved,
.accepted-answer-banner {
    color: #86efac;
    background: rgba(34, 197, 94, 0.11);
}

.community-tags {
    margin-top: 0.45rem;
}

.community-tags a,
.community-filter-links a {
    border-color: var(--community-border);
    background: rgba(96, 165, 250, 0.08);
    color: #bfdbfe;
    border-radius: 7px;
}

.community-tags.dense a {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.community-tags.dense span {
    color: var(--community-faint);
}

.community-author {
    color: #cbd5e1;
}

.community-author a,
.community-answer-header a {
    color: #dbeafe;
    font-weight: 950;
    text-decoration: none;
}

.community-author a:hover,
.community-answer-header a:hover {
    color: #ffffff;
}

.community-reputation-chip,
.community-badge-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-left: 0.35rem;
    padding: 0.18rem 0.45rem;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    background: rgba(37, 140, 251, 0.08);
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 900;
}

.community-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.community-action-message,
.community-status-card.compact {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 9px;
}

.community-panel {
    box-shadow: none;
}

.community-panel-header h2,
.community-section-title h2,
.community-answer-form-block h2,
.community-answer-comments h3 {
    color: var(--community-text);
    font-weight: 950;
}

.community-panel-header a,
.community-list-item {
    color: #bfdbfe;
}

.community-list-item {
    background: rgba(8, 17, 31, 0.72);
    border-color: var(--community-border);
    box-shadow: none;
}

.community-list-item strong {
    color: var(--community-text);
    font-size: 0.92rem;
    line-height: 1.35;
}

.community-list-item small {
    color: var(--community-faint);
}

.community-pulse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.community-pulse-grid > div {
    padding: 0.8rem;
}

.community-pulse-grid .wide {
    grid-column: 1 / -1;
}

.community-profile-header {
    align-items: center;
}

.community-profile-identity {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.community-profile-avatar {
    display: grid;
    place-items: center;
    width: 4.6rem;
    height: 4.6rem;
    border: 1px solid rgba(96, 165, 250, 0.34);
    border-radius: 18px;
    overflow: hidden;
    background: #08111f;
    color: #dbeafe;
    font-size: 1.6rem;
    font-weight: 950;
}

.community-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.community-badge-chip {
    margin-left: 0;
    min-height: 2rem;
    padding: 0.38rem 0.65rem;
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
}

.profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-wide-panel {
    grid-column: 1 / -1;
}

.community-query-toolbar {
    background: linear-gradient(180deg, #111f35, #0d1728);
    box-shadow: none;
}

.community-query-toolbar label,
.community-form label {
    color: var(--community-text);
}

.query-form {
    gap: 1.1rem;
}

.tag-selector {
    border-color: var(--community-border);
    background: rgba(8, 17, 31, 0.58);
}

.tag-selector-header span {
    color: var(--community-text);
}

.tag-selector-header small {
    color: var(--community-faint);
}

.selected-tags {
    border-bottom-color: var(--community-border);
}

.tag-pill {
    border-color: var(--community-border);
    background: rgba(96, 165, 250, 0.08);
    color: #bfdbfe;
}

.tag-pill.selected {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(37, 140, 251, 0.14);
    color: #dbeafe;
}

.tag-pill.is-selected {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.tag-pill.selected span {
    background: rgba(96, 165, 250, 0.16);
    color: #bfdbfe;
}

.query-form .community-form-actions a {
    border-color: var(--community-border);
    background: #111f35;
    color: #dbeafe;
    border-radius: 9px;
    font-weight: 900;
}

.community-form small,
.community-empty,
.community-status-card,
.community-signin-card {
    color: var(--community-muted);
}

.community-empty,
.community-status-card,
.community-signin-card {
    background: rgba(8, 17, 31, 0.72);
    border-style: dashed;
    box-shadow: none;
}

.community-detail-card,
.community-comments-block,
.community-answers-block,
.community-answer-form-block {
    box-shadow: none;
}

.community-answer {
    background: rgba(8, 17, 31, 0.72);
    border-color: var(--community-border);
}

.community-answer.accepted {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(134, 239, 172, 0.52);
}

.community-comment {
    background: rgba(17, 31, 53, 0.76);
    border-left-color: var(--community-accent);
}

.answer-replies {
    border-top-color: var(--community-border);
    border-left-color: rgba(96, 165, 250, 0.28);
}

.answer-replies-header span {
    color: var(--community-faint);
}

.answer-reply-form {
    border-color: var(--community-border);
    background: rgba(8, 17, 31, 0.58);
}

.community-comment.answer-reply-card {
    border-color: var(--community-border);
    border-left-color: var(--community-accent-2);
    background:
        linear-gradient(180deg, rgba(17, 31, 53, 0.86), rgba(8, 17, 31, 0.84)),
        var(--community-surface-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.community-answer-rich a {
    color: #93c5fd;
}

.community-answer-rich blockquote {
    border-left-color: rgba(96, 165, 250, 0.5);
    background: rgba(96, 165, 250, 0.1);
}

.community-answer-rich pre {
    border-color: var(--community-border);
    background: rgba(5, 9, 20, 0.92);
}

.community-answer-rich code {
    background: rgba(96, 165, 250, 0.12);
    color: #bfdbfe;
}

.answer-reply-author-badge {
    border-color: rgba(96, 165, 250, 0.32);
    background: rgba(37, 140, 251, 0.1);
    color: #bfdbfe;
}

.community-comment strong,
.community-answer-header strong {
    color: var(--community-text);
}

.community-comment span,
.community-answer-header span {
    color: var(--community-faint);
}

.community-inline-error,
.community-shell .validation-message {
    color: #fca5a5;
}

@media (max-width: 1180px) {
    .community-dashboard-layout {
        grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
    }

    .community-right-rail {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .community-dashboard-layout,
    .community-right-rail {
        grid-template-columns: 1fr;
    }

    .community-side-rail {
        position: static;
    }

    .community-hero,
    .community-page-header,
    .community-hero-search {
        grid-template-columns: 1fr;
    }

    .community-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .community-query-card.compact {
        grid-template-columns: 1fr;
    }

    .community-query-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-profile-identity,
    .community-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.community-knowledge-cta,
.article-community-cta,
.community-knowledge-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--community-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.11), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 53, 0.96), rgba(8, 17, 31, 0.96));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.community-knowledge-cta,
.article-community-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.community-panel-kicker,
.article-community-cta span {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--community-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.community-knowledge-cta h2,
.article-community-cta h2,
.community-knowledge-panel h2 {
    margin: 0;
    color: var(--community-text);
}

.community-knowledge-cta p,
.article-community-cta p {
    margin: 0.35rem 0 0;
    color: var(--community-muted);
}

.article-community-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(147, 197, 253, 0.78);
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    color: #07101d;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.article-community-cta a:hover,
.article-community-cta a:focus-visible {
    border-color: #dbeafe;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #050914;
    box-shadow: 0 16px 34px rgba(96, 165, 250, 0.28);
}

.article-community-cta a:hover {
    transform: translateY(-1px);
}

.article-community-cta a:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.42);
    outline-offset: 3px;
}

.article-community-cta a:active {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    border-color: #93c5fd;
    color: #050914;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
    transform: translateY(0);
}

.article-community-cta a[aria-disabled="true"],
.article-community-cta a.disabled {
    cursor: not-allowed;
    opacity: 0.68;
    pointer-events: none;
    box-shadow: none;
}

@media (max-width: 840px) {
    .article-community-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .article-community-cta a {
        width: 100%;
        min-width: 0;
    }
}

.community-fix-list,
.community-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.community-fix-card,
.community-related-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(3, 10, 22, 0.52);
    color: var(--community-text);
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.community-fix-card:hover,
.community-related-card:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.46);
    background: rgba(9, 20, 38, 0.78);
    color: #ffffff;
}

.community-fix-card p,
.community-related-card p {
    margin: 0;
    color: var(--community-muted);
    font-size: 0.92rem;
}

.community-fix-card span,
.community-related-card h3 {
    margin: 0;
}

.community-fix-card span {
    color: var(--community-accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.community-related-card .community-tags span,
.community-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: var(--community-accent);
    font-size: 0.76rem;
    font-weight: 700;
}

.article-community-related {
    margin-top: 1.25rem;
}

.admin-helper-text {
    color: #94a3b8;
}

@media (max-width: 760px) {
    .community-knowledge-cta,
    .article-community-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .article-community-cta a,
    .community-knowledge-cta a {
        width: 100%;
    }
}

/* Site-wide responsive hardening for AV Knowledge v2 */
.admin-shell,
.community-shell,
.account-auth-shell,
.account-manage-shell,
.account-status-shell,
.status-page-shell,
.authz-status-shell {
    min-width: 0;
}

.admin-panel,
.admin-table,
.admin-table-row,
.admin-title-cell,
.community-main-column,
.community-query-card,
.community-detail-card,
.community-answer,
.community-comment,
.community-comments-block,
.community-answers-block,
.community-answer-form-block,
.community-form,
.community-query-toolbar {
    min-width: 0;
}

.admin-title-cell,
.community-query-card-body,
.community-detail-body,
.community-answer-rich,
.community-comment p {
    overflow-wrap: anywhere;
}

.admin-table {
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.admin-actions {
    row-gap: 0.45rem;
}

.admin-actions a,
.admin-actions button,
.admin-quick-links a,
.community-primary-link,
.community-secondary-link,
.community-primary-button,
.community-secondary-button,
.community-ghost-button,
.community-hero-search button {
    min-height: 44px;
}

.community-answer-rich table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.community-answer-rich img,
.community-detail-body img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1536px) {
    .admin-table.posts .admin-table-header,
    .admin-table.posts .admin-table-row,
    .admin-posts-table .admin-table-header,
    .admin-posts-table .admin-table-row,
    .admin-table.users .admin-table-header,
    .admin-table.users .admin-table-row {
        grid-template-columns: minmax(220px, 1.3fr) minmax(105px, 0.55fr) minmax(100px, 0.5fr) minmax(105px, 0.55fr) minmax(105px, 0.55fr) minmax(120px, 0.6fr) minmax(260px, 0.9fr);
    }

    .admin-post-actions,
    .admin-users-actions,
    .admin-post-actions-heading,
    .admin-users-actions-heading {
        min-width: 0;
    }

    .admin-post-actions,
    .admin-users-actions {
        justify-content: flex-start;
        white-space: normal;
    }
}

@media (max-width: 1500px) {
    .community-dashboard-layout {
        grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
    }

    .community-right-rail {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .community-shell {
        padding: 1rem;
    }

    .community-query-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-query-toolbar .community-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .community-dashboard-layout,
    .community-right-rail {
        grid-template-columns: 1fr;
    }

    .community-side-rail {
        position: static;
    }

    .community-hero,
    .community-page-header,
    .community-hero-search {
        grid-template-columns: 1fr;
    }

    .community-hero-actions,
    .community-card-footer,
    .community-detail-header,
    .community-answer-header,
    .community-section-title {
        align-items: stretch;
        flex-direction: column;
    }

    .community-primary-link,
    .community-secondary-link,
    .community-primary-button,
    .community-secondary-button,
    .community-ghost-button {
        white-space: normal;
    }
}

@media (max-width: 900px) {
    body .auth-page.auth-shell {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    body .auth-page .auth-side-panel {
        order: -1;
        max-width: 520px;
        justify-self: center;
    }

    body .auth-page .auth-card {
        max-width: 520px;
    }

    .community-query-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-list-row,
    .admin-panel-title {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-quick-links a {
        flex: 1 1 calc(50% - 0.65rem);
        justify-content: center;
        text-align: center;
    }

    .community-stats-row,
    .community-pulse-grid {
        grid-template-columns: 1fr;
    }

    .community-hero-search button,
    .community-form-actions > *,
    .community-inline-actions button,
    .community-comment-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-shell,
    .community-shell,
    .account-auth-shell,
    .account-manage-shell,
    .account-status-shell {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .admin-panel,
    .community-hero,
    .community-page-header,
    .community-detail-card,
    .community-panel,
    .community-form,
    .community-query-toolbar,
    .community-query-card,
    .community-comments-block,
    .community-answers-block,
    .community-answer-form-block {
        border-radius: 14px;
        padding: 0.9rem;
    }

    .admin-quick-links a,
    .community-primary-link,
    .community-secondary-link,
    .community-primary-button,
    .community-secondary-button,
    .community-ghost-button {
        width: 100%;
    }

    .community-query-counts {
        grid-template-columns: 1fr;
    }

    .community-reputation-chip,
    .community-badge-chip {
        margin-left: 0;
        margin-top: 0.3rem;
    }
}
