.commonboard-wrap {
  padding-bottom: 34px;
}

.commonboard-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.flash-stack {
  display: grid;
  gap: 10px;
}

.flash {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px var(--shadow);
  padding: 14px 16px;
  background: var(--card);
}

.flash-success {
  border-color: #5d8b66;
  background: #edf8ee;
}

.flash-warning {
  border-color: #b68536;
  background: #fff7e7;
}

.flash-error {
  border-color: #a54f62;
  background: #fff0f3;
}

.board-hero {
  margin-top: 0;
}

.board-hero-card {
  max-width: 980px;
  margin: 0 auto;
}

.board-hero-card.hero {
  padding: 20px;
}

.panel {
  background: var(--card);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px var(--shadow);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: #51305a;
}

::selection {
  background: #d9c2e3;
  color: #2f1735;
}

.btn,
.btn-consistent {
  font-family: "Sylexiad", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.filter-actions .btn-consistent,
.form-actions .btn-consistent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  line-height: 1.2;
}

.filter-form,
.stack-form {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.listing-form-shell {
  width: 100%;
  min-width: 0;
}

.listing-form-shell > *,
.commonboard-main > *,
.form-panel > * {
  min-width: 0;
}

.conditional-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-self: stretch;
  justify-self: stretch;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}

.mode-links,
.choice-grid {
  display: grid;
  gap: 12px;
}

.mode-links,
.choice-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.mode-link,
.choice-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  min-height: 100%;
}

.mode-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  font-weight: 700;
}

.mode-link.is-active {
  border-color: #51305a;
  background: #f6eef8;
  box-shadow: 0 0 0 2px #e6d9eb inset;
}

.choice-card {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 600 !important;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: #51305a;
  background: #f6eef8;
  box-shadow: 0 0 0 2px #e6d9eb inset;
}

.choice-card input {
  width: auto;
}

.filter-grid,
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.filter-actions,
.form-actions,
.section-head,
.manage-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-actions,
.form-actions {
  justify-content: center;
}

.section-head {
  justify-content: space-between;
}

.filter-form label,
.stack-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  width: 100%;
  min-width: 0;
}

.filter-form span,
.stack-form span {
  font-size: 0.95rem;
}

.context-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.inline-note summary {
  cursor: pointer;
  font-weight: 700;
}

.inline-note[open] {
  margin-top: 10px;
}

.hint-wrap .field-hint {
  display: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hint-wrap:focus-within .field-hint {
  display: block;
}

.filter-shell {
  display: grid;
  gap: 18px;
}

.filter-shell > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.filter-shell > summary::-webkit-details-marker {
  display: none;
}

.filter-summary-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.15s ease;
}

.filter-shell[open] .filter-arrow {
  transform: rotate(180deg);
}

.filter-day-box {
  margin: 0;
}

.listing-form-shell .category-other-field,
.listing-form-shell .region-field,
.listing-form-shell .region-other-field,
.listing-form-shell .dynamic-prompt,
.listing-form-shell .dynamic-return {
  display: none !important;
}

.listing-form-shell .category-other-row,
.listing-form-shell .region-row,
.listing-form-shell .region-other-row,
.listing-form-shell .category-other-field,
.listing-form-shell .region-field,
.listing-form-shell .region-other-field {
  width: 100%;
  min-width: 0;
  align-self: stretch;
  justify-self: stretch;
}

.listing-form-shell:has(select[name="category"] option[value="other"]:checked) .category-other-row {
  max-height: 180px;
  overflow: visible;
  visibility: visible;
  opacity: 1;
}

.listing-form-shell:has(input[name="format"][value="in-person"]:checked) .region-row {
  max-height: 180px;
  overflow: visible;
  visibility: visible;
  opacity: 1;
}

.listing-form-shell:has(input[name="format"][value="in-person"]:checked):has(option[value="Other North Florida"]:checked) .region-other-row {
  max-height: 180px;
  overflow: visible;
  visibility: visible;
  opacity: 1;
}

.listing-form-shell .category-other-field,
.listing-form-shell .region-field,
.listing-form-shell .region-other-field {
  display: grid !important;
}

.listing-form-shell .prompt-default {
  display: inline !important;
}

.listing-form-shell .return-default {
  display: inline !important;
}

.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="skills"]:checked) .prompt-offering-skills,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="chores"]:checked) .prompt-offering-chores,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="body doubling"]:checked) .prompt-offering-body-doubling,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="accountability"]:checked) .prompt-offering-accountability,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="other"]:checked) .prompt-offering-other,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="skills"]:checked) .prompt-seeking-skills,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="chores"]:checked) .prompt-seeking-chores,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="body doubling"]:checked) .prompt-seeking-body-doubling,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="accountability"]:checked) .prompt-seeking-accountability,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="other"]:checked) .prompt-seeking-other {
  display: inline !important;
}

.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="skills"]:checked) .return-offering-skills,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="chores"]:checked) .return-offering-chores,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="body doubling"]:checked) .return-offering-body-doubling,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="accountability"]:checked) .return-offering-accountability,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(select[name="category"] option[value="other"]:checked) .return-offering-other,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="skills"]:checked) .return-seeking-skills,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="chores"]:checked) .return-seeking-chores,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="body doubling"]:checked) .return-seeking-body-doubling,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="accountability"]:checked) .return-seeking-accountability,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(select[name="category"] option[value="other"]:checked) .return-seeking-other {
  display: inline !important;
}

.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="skills"]:checked) .prompt-default,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="chores"]:checked) .prompt-default,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="body doubling"]:checked) .prompt-default,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="accountability"]:checked) .prompt-default,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="other"]:checked) .prompt-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="skills"]:checked) .prompt-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="chores"]:checked) .prompt-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="body doubling"]:checked) .prompt-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="accountability"]:checked) .prompt-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="other"]:checked) .prompt-default {
  display: none !important;
}

.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="skills"]:checked) .return-default,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="chores"]:checked) .return-default,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="body doubling"]:checked) .return-default,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="accountability"]:checked) .return-default,
.listing-form-shell:has(input[name="direction"][value="offering"]:checked):has(input[name="category"][value="other"]:checked) .return-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="skills"]:checked) .return-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="chores"]:checked) .return-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="body doubling"]:checked) .return-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="accountability"]:checked) .return-default,
.listing-form-shell:has(input[name="direction"][value="seeking"]:checked):has(input[name="category"][value="other"]:checked) .return-default {
  display: none !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

select,
option {
  color: var(--text);
}

option:checked {
  background: #f6eef8;
  color: #51305a;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid #d9c2e3;
  outline-offset: 1px;
  border-color: #51305a;
  box-shadow: 0 0 0 3px #efe4f4;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.notice-grid,
.detail-grid,
.detail-grid-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.notice-card,
.info-block {
  border-radius: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.notice-card p,
.info-block p,
.board-summary,
.detail-body,
.lede,
.board-created,
.detail-created,
.request-count,
.auth-links {
  color: var(--muted);
}

.fieldset-box {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fieldset-box legend {
  padding: 0 8px;
  font-weight: 700;
}

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

.stacked-options {
  display: grid;
  gap: 10px;
}

.option-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
}

.option-row input {
  width: auto;
}

.extra-top {
  margin-top: 14px;
}

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

.board-card {
  background: var(--card);
  border-radius: 24px;
  padding: 18px;
  border: 1px solid #d8c9cf;
  box-shadow: 0 10px 20px var(--shadow), 0 0 0 1px #ffffffcc inset;
  position: relative;
}

.board-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px dashed #51305a29;
  pointer-events: none;
}

.board-card > * {
  position: relative;
  z-index: 1;
}

.board-card-head,
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.board-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.pill,
.verified-badge,
.guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill {
  border: 1px solid #9e7d7133;
  background: #f2e6e1;
}

.pill-direction {
  background: #f4e9fc;
  border-color: #d6c2e8;
}

.verified-badge {
  background: #f6eef8;
  color: #51305a;
  border: 1px solid #cbaed6;
}

.verified-badge img {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.guest-badge {
  background: #fff6e6;
  color: #8e5b0e;
  border: 1px solid #e5c37d;
}

.board-details {
  display: grid;
  gap: 10px;
}

.board-details div {
  display: grid;
  gap: 4px;
}

.board-details dt {
  font-weight: 700;
}

.board-details dd {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  text-align: center;
}

.detail-panel h2 {
  margin-bottom: 8px;
}

.detail-grid-split {
  align-items: start;
}

.auth-panel,
.account-panel,
.form-panel {
  max-width: 940px;
  margin: 0 auto;
}

.auth-form {
  max-width: 520px;
}

.verified-line {
  color: #51305a;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.warning-line {
  color: #8e5b0e;
}

.token-box {
  width: 100%;
  min-height: 90px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.notification-panel {
  display: grid;
  gap: 12px;
}

.admin-panel {
  max-width: 940px;
  margin: 0 auto;
}

.admin-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-card {
  border: 1px solid #d9c4bd;
  border-radius: 18px;
  padding: 18px;
  background: #fffaf7;
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.admin-card h4 {
  margin: 0;
}

.admin-card > * {
  min-width: 0;
}

.admin-card p,
.admin-card a,
.admin-card strong,
.admin-card h4,
.admin-card span,
.admin-card label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-card textarea,
.admin-card input,
.admin-card button,
.admin-card form {
  min-width: 0;
  max-width: 100%;
}

.admin-delete-form {
  margin-top: 4px;
}

.danger-btn {
  background: #8b2c3d;
  border-color: #8b2c3d;
  color: #fffaf7;
}

.danger-btn:hover,
.danger-btn:focus-visible {
  background: #6e2030;
  border-color: #6e2030;
}

@media (max-width: 900px) {
  .filter-shell > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-links,
  .choice-grid,
  .choice-grid.two-up,
  .filter-grid,
  .field-grid,
  .board-grid,
  .notice-grid,
  .detail-grid,
  .detail-grid-split,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}
