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

.person-picker {
  position: relative;
}

.person-picker [hidden],
.person-picker .is-filtered-out {
  display: none !important;
}

.person-picker-trigger,
.person-picker-done {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bdc8c0;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}

.person-picker-trigger {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  text-align: left;
}

.person-picker-trigger svg {
  width: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 150ms ease;
}

.person-picker-trigger[aria-expanded="true"] {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.person-picker-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.person-picker-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.person-picker-panel-heading {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.person-picker-panel-heading strong {
  font-size: 0.92rem;
}

.person-picker-panel-heading button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: #eef1ed;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.person-picker[data-enhanced="true"] .person-picker-trigger {
  display: flex;
}

.person-picker[data-enhanced="true"] .person-picker-panel {
  position: absolute;
  z-index: 25;
  top: calc(100% + 0.4rem);
  right: 0;
  left: 0;
}

.person-picker-search {
  position: relative;
}

.person-picker-search svg {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  width: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.7;
  pointer-events: none;
}

.field .person-picker-search input {
  min-height: 44px;
  padding-left: 2.35rem;
  background: #f8faf8;
}

.person-picker-selected {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.person-picker-selected > span,
.person-picker-group-heading > span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.person-picker-selected > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.person-picker-chip {
  min-height: 34px;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 999px;
  color: var(--forest);
  background: var(--mint);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.person-picker-groups {
  max-height: 310px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.person-picker-group + .person-picker-group {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.person-picker-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.35rem 0.35rem;
}

.person-picker-group-heading button {
  padding: 0.2rem 0.3rem;
  border: 0;
  color: var(--forest-2);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.person-picker-options {
  display: flex;
  flex-direction: column;
}

.field .person-picker-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  gap: 0.65rem;
  align-items: center;
  min-height: 50px;
  padding: 0.48rem 0.55rem;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}

.person-picker-option:hover,
.person-picker-option:focus-within {
  background: #f1f6f2;
}

.field .person-picker-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--forest-2);
}

.person-picker-option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.08rem;
}

.person-picker-option-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.person-picker-option-copy small {
  font-size: 0.75rem;
}

.person-picker-check {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest-2);
  font-size: 0.75rem;
  opacity: 0;
}

.person-picker-option:has(input:checked) {
  background: #edf7ef;
}

.person-picker-option:has(input:checked) .person-picker-check {
  opacity: 1;
}

.person-picker-empty {
  margin: 0;
  padding: 1rem 0.5rem;
  color: var(--muted);
  text-align: center;
}

.person-picker-done {
  display: none;
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
  font-weight: 750;
}

.person-picker[data-enhanced="true"] .person-picker-done {
  display: block;
}

@media (max-width: 620px) {
  .person-picker[data-enhanced="true"] .person-picker-panel {
    position: fixed;
    z-index: 100;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(78dvh, 620px);
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -18px 48px rgba(11, 28, 21, 0.24);
  }

  .person-picker-groups {
    min-height: 0;
    flex: 1 1 auto;
    max-height: none;
  }

  .person-picker-done {
    flex: 0 0 auto;
  }
}

.topbar-primary,
.brand {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.6rem;
}

.brand > span {
  margin-right: 0;
}

.brand strong {
  font-size: 1.05rem;
}

.brand-short,
.mobile-menu-button,
.mobile-profile-link,
.mobile-drawer,
.menu-backdrop {
  display: none;
}

/* Persistent access to the "How it works" guide from the topbar. On desktop it
   reads as a "Help" text link beside the account; on mobile (account text
   hidden) it collapses to a "?" icon button — see the 720px breakpoint. */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 750;
  font-size: 0.9rem;
  white-space: nowrap;
}

.help-link:hover {
  text-decoration: underline;
}

.help-icon {
  display: none;
}

.app-footer {
  display: flex;
  justify-content: center;
  padding: 0 1rem 2rem;
  font-size: 0.8rem;
}

.app-footer a {
  color: var(--muted);
}

.view-as-banner {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  color: #fff;
  background: #7f321f;
  box-shadow: 0 8px 24px rgba(49, 16, 8, 0.2);
}

.view-as-banner form {
  margin: 0;
}

.view-as-banner button {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  cursor: pointer;
}

.view-as-panel {
  max-width: 760px;
}

.view-as-blocked h1 {
  margin-bottom: 0.6rem;
}

.feedback-notice {
  background: #fff2cc;
  border-color: #e7cb75;
}

.feedback-notice p {
  margin: 0.45rem 0;
}

.feedback-notice small,
.history-entry small {
  color: var(--muted);
}

.task-history {
  display: flex;
  flex-direction: column;
}

.history-entry {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.75rem;
  padding: 0 0 1.15rem;
}

.history-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 0;
  border-left: 2px solid var(--line);
}

.history-marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: #8da097;
}

.history-entry.failed .history-marker {
  background: var(--red);
}

.history-entry.passed .history-marker {
  background: var(--forest-2);
}

.history-entry p {
  margin: 0.35rem 0;
}

.report-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.view-tabs {
  display: flex;
  gap: 0.6rem;
  margin: -0.45rem 0 1.2rem;
}

.view-tabs .button {
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
}

.view-tabs .button span {
  min-width: 1.5rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: #eef1ed;
  font-size: 0.75rem;
  text-align: center;
}

.view-tabs .button.active {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.view-tabs .button.active span {
  color: var(--forest);
  background: var(--paper);
}

.list-context {
  margin: -0.55rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.task-list-row > span:first-child {
  gap: 0.3rem;
}

.completion-notice p {
  margin: 0.4rem 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.notification-count {
  display: inline-grid;
  min-width: 1.45rem;
  min-height: 1.45rem;
  place-items: center;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 0.72rem;
  line-height: 1;
}

.notification-list {
  padding-top: 0;
  padding-bottom: 0;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.unread {
  margin: 0 -1.35rem;
  padding-right: 1.55rem;
  padding-left: 1.15rem;
  border-left: 0.3rem solid var(--forest-2);
  background: rgba(216, 243, 220, 0.34);
}

.notification-copy {
  min-width: 0;
}

.notification-meta,
.notification-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.notification-meta {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.notification-unread-label,
.notification-read-label {
  color: var(--forest);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notification-read-label {
  color: var(--muted);
}

.notification-message {
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.notification-record-preview {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}

.notification-preview-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.65rem;
  object-fit: cover;
  background: var(--ink);
}

.notification-preview-copy p {
  margin: 0.45rem 0 0.7rem;
  line-height: 1.45;
}

.notification-preview-copy dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  margin: 0;
  font-size: 0.85rem;
}

.notification-preview-copy dt {
  color: var(--muted);
}

.notification-preview-copy dd {
  margin: 0;
}

.notification-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.notification-actions form {
  margin: 0;
}

@media (max-width: 620px) {
  .notification-item {
    flex-direction: column;
  }

  .notification-item.unread {
    margin: 0 -1rem;
    padding-right: 1rem;
    padding-left: 0.7rem;
  }

  .notification-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .notification-record-preview {
    grid-template-columns: 1fr;
  }

  .notification-preview-image {
    max-width: 14rem;
  }
}

.report-list-row {
  border-bottom: 1px solid var(--line);
}

.report-list-row:last-child {
  border-bottom: 0;
}

.report-list-row.urgent {
  padding-left: 0.7rem;
  border-left: 4px solid var(--red);
}

.report-list-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.2rem 0.65rem;
  color: var(--ink);
}

.report-list-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.25rem;
}

.report-list-copy small {
  color: var(--muted);
}

.report-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.2rem 0.8rem;
}

.report-list-actions form {
  margin: 0;
}

.small-action {
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 0.75rem;
  cursor: pointer;
}

.small-action:disabled {
  opacity: 0.4;
  cursor: default;
}

.status.community {
  color: var(--forest);
  background: var(--mint);
}

.status.private {
  color: #7f321f;
  background: #f2e2d7;
}

.status.urgent-status {
  color: var(--red);
  background: #f8ddd8;
  font-weight: 800;
}

.status.archived {
  color: #525d57;
  background: #e5e7e4;
}

.occupant-profile-link {
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: #eef1ed;
  font-size: 0.85rem;
  font-weight: 700;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(96px, 150px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.profile-avatar {
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--forest);
  color: #fff;
  font-size: 3rem;
  font-weight: 850;
}

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

.profile-content > :first-child {
  margin-top: 0;
}

.profile-contact {
  margin-top: 1.5rem;
}

.name-request-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.name-request-card:last-child {
  border-bottom: 0;
}

.name-request-card > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.name-request-card small {
  color: var(--muted);
}

.release-timeline {
  max-width: 900px;
}

.release-entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
}

.release-entry h2 {
  margin-bottom: 0.35rem;
}

.release-entry ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.release-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.mobile-audit-list {
  display: none;
}

.audit-filter-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.audit-filter-form .field {
  flex: 1 1 18rem;
  margin: 0;
}

.audit-filter-form .form-actions {
  margin: 0;
}

.analytics-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}

.analytics-period-tabs .active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.analytics-section {
  margin-bottom: 1.35rem;
}

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

.analytics-grid .stat-card small {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: .45rem;
}

.analytics-usage-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.35rem;
}

.analytics-usage-layout .panel {
  margin-bottom: 0;
}

.analytics-trend-panel,
.analytics-transition-panel {
  grid-column: 1 / -1;
}

.usage-trend {
  display: grid;
  gap: .7rem;
}

.usage-trend-row {
  align-items: center;
  display: grid;
  gap: .25rem .7rem;
  grid-template-columns: 7rem minmax(5rem, 1fr) 2.5rem;
}

.usage-trend-row > span {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.usage-trend-row > strong {
  text-align: right;
}

.usage-trend-row > small {
  color: var(--muted);
  grid-column: 2 / -1;
}

.usage-bar {
  background: #eef1ed;
  border-radius: 999px;
  height: .7rem;
  overflow: hidden;
}

.usage-bar i {
  background: var(--forest-2);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 2px;
}

.analytics-ranked-list {
  margin: 0;
}

.analytics-ranked-list > div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .65rem 0;
}

.analytics-ranked-list dt {
  min-width: 0;
}

.analytics-ranked-list dt small {
  color: var(--muted);
  display: block;
  font-weight: 400;
  margin-top: .2rem;
}

.analytics-ranked-list dd {
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0;
  white-space: nowrap;
}

.analytics-ranked-list dd small {
  color: var(--muted);
  font-weight: 500;
}

.usage-privacy-note {
  margin-bottom: 2.5rem;
}

.analytics-breakdowns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.35rem;
}

.analytics-breakdowns h2 {
  font-size: 1.08rem;
}

.analytics-list {
  margin: 0;
}

.analytics-list div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: .65rem 0;
}

.analytics-list dt {
  color: var(--muted);
}

.analytics-list dd {
  font-size: 1.1rem;
  font-weight: 750;
  margin: 0;
}

.analytics-note p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.audit-card .section-heading {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.audit-card time {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.audit-card details {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.audit-card summary {
  color: var(--forest-2);
  cursor: pointer;
  font-weight: 700;
}

.audit-card code {
  display: block;
  margin-top: 0.8rem;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  body.menu-open {
    overflow: hidden;
  }

  .topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    min-height: 62px;
    padding: 0 1rem;
  }

  .view-as-active .topbar {
    top: 52px;
  }

  .topbar-primary {
    gap: 0.55rem;
  }

  .mobile-menu-button,
  .drawer-close {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
  }

  .mobile-menu-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-menu-button svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .topbar-actions {
    gap: 0.5rem;
  }

  .help-text {
    display: none;
  }

  .help-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    gap: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .help-icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .brand span {
    width: 38px;
    height: 38px;
    margin-right: 0;
    font-size: 0.8rem;
  }

  .brand-name {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .account,
  .main-nav {
    display: none;
  }

  .mobile-profile-link {
    display: grid;
    width: 40px;
    height: 40px;
    overflow: hidden;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--forest);
    background: var(--paper);
    font-weight: 850;
  }

  .mobile-profile-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .menu-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    visibility: hidden;
    border: 0;
    opacity: 0;
    background: rgba(11, 28, 21, 0.55);
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .menu-backdrop.open {
    visibility: visible;
    opacity: 1;
  }

  .mobile-drawer {
    position: fixed;
    z-index: 60;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    width: min(88vw, 380px);
    flex-direction: column;
    overflow-y: auto;
    padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateX(-102%);
    border-right: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 18px 0 48px rgba(11, 28, 21, 0.22);
    transition: transform 200ms ease, visibility 200ms ease;
  }

  .mobile-drawer.open {
    visibility: visible;
    transform: translateX(0);
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0 1rem;
    border-bottom: 1px solid var(--line);
  }

  .drawer-header strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.35rem;
  }

  .drawer-close {
    color: var(--ink);
    background: #eef1ed;
    font-size: 1.8rem;
    font-weight: 400;
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
  }

  .drawer-group {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .drawer-group:last-child {
    border-bottom: 0;
  }

  .drawer-label {
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .drawer-group a {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.72rem 0.65rem;
    border-radius: 12px;
    color: var(--ink);
  }

  .drawer-group a:active,
  .drawer-group a:focus-visible {
    background: var(--mint);
  }

  .drawer-group a span {
    font-weight: 780;
  }

  .drawer-group a small {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .drawer-group form {
    margin: 0;
  }

  .drawer-signout {
    width: 100%;
    padding: 0.72rem 0.65rem;
    border: 0;
    color: var(--red);
    background: transparent;
    text-align: left;
    font-weight: 780;
    cursor: pointer;
  }

  .drawer-about a {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .page-shell {
    padding-bottom: 3rem;
  }

  .app-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 620px) {
  .view-as-banner {
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
  }

  .view-as-banner span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .view-as-banner button {
    white-space: nowrap;
  }

  .profile-card,
  .name-request-card,
  .release-entry {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    width: 112px;
  }

  .report-list-main {
    align-items: flex-start;
  }

  .report-list-main > .status {
    flex: 0 0 auto;
  }

  .report-list-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .small-action {
    width: 100%;
    min-height: 38px;
  }

  .task-view-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .mobile-audit-list {
    display: block;
  }

  .audit-filter-form .form-actions,
  .audit-filter-form .button {
    width: 100%;
  }

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

  .analytics-usage-layout {
    grid-template-columns: 1fr;
  }

  .analytics-trend-panel,
  .analytics-transition-panel {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .analytics-grid,
  .analytics-breakdowns {
    grid-template-columns: 1fr;
  }

  .analytics-period-tabs .button {
    width: 100%;
  }

  .usage-trend-row {
    grid-template-columns: 5.5rem minmax(3rem, 1fr) 2rem;
  }
}
.topbar-primary{display:flex;align-items:center;gap:.8rem;min-width:0}.site-switcher{margin:0}.site-switcher select{max-width:220px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;padding:.42rem 1.8rem .42rem .7rem}.site-switcher option{color:#183026;background:#fffdfa}@media(max-width:520px){.site-switcher select{max-width:140px;font-size:.78rem}.brand-name{display:none}}

.house-rules-panel {
  margin-top: 1.35rem;
}

.house-rules-grid,
.house-rules-layout {
  columns: 3 300px;
  column-gap: 1rem;
}

.house-rule-card {
  break-inside: avoid;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.house-rule-card .rule-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.house-rule-card .rule-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.house-rule-card h3 {
  font-size: 0.98rem;
  margin: 0;
  color: var(--ink);
}

.house-rule-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.house-rule-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.house-rule-card li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.house-rule-card li strong {
  color: var(--ink);
}

@media (max-width: 640px) {
  .house-rules-grid,
  .house-rules-layout {
    columns: 1;
  }
}



