/* Small, accessible transitions. No external fonts, scripts or animation library. */
.mobile-menu {
  display: none;
}
.activity-entry {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.activity-entry strong {
  font-size: 0.91rem;
}
.activity-entry p {
  margin: 4px 0 0;
  font-size: 0.8rem;
}
.activity-entry time {
  color: var(--muted);
  font-size: 0.75rem;
}
.activity-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #725328;
  background: #efe4d3;
  font-size: 0.75rem;
}
.check-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 99px;
  background: #eee9e1;
  color: #5b5349;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
}
.check-status[data-status="passed"] {
  background: #e2eee5;
  color: #26583b;
}
.check-status[data-status="failed"] {
  background: #fae5e0;
  color: #963c2c;
}
.check-status[data-status="inconclusive"] {
  background: #f4ead1;
  color: #775820;
}
.warm .check-summary p {
  font-size: 0.82rem;
  margin: 6px 0 0;
}
.warm .resource-row:has(.check-summary) {
  padding: 20px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fcf9f4;
}
.check-issue {
  max-width: 68ch;
}
.check-step {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.check-step > strong {
  display: block;
  margin-bottom: 8px;
}
.check-step > p {
  line-height: 1.6;
  margin: 8px 0;
}
.log-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.log-list {
  max-height: 440px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.log-check {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.log-check summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  cursor: pointer;
  min-height: 44px;
}
.log-check summary strong {
  font-size: 0.9rem;
}
.log-check time {
  color: var(--muted);
  font-size: 0.8rem;
}
@media (max-width: 760px) {
  .activity-entry {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }
  .activity-entry time {
    grid-column: 2;
  }
  .log-controls,
  .log-controls .field-row {
    width: 100%;
  }
  .log-list {
    max-height: 55dvh;
  }
}
.app-body,
.main-content,
#content {
  min-width: 0;
}
.embedded-page .public-form-container {
  margin: 20px auto;
}
.public-form-container {
  overflow-wrap: anywhere;
}
.public-form-container input:not([type="checkbox"]),
.public-form-container select,
.public-form-container textarea {
  width: 100%;
  min-width: 0;
}
.public-form-container .field-row {
  display: block;
}
.public-form-container .field-row:has(input[type="checkbox"]) {
  display: flex;
}
.public-form-container #message {
  line-height: 1.7;
}
.new-organisation {
  margin: 0.45rem 0 1rem;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
}
.invite-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.invite-actions .button {
  width: auto;
}
.field-row:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 0.4rem 0;
}
.field-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #d58b38;
}
.nav-item {
  transition:
    background-color 0.18s,
    color 0.18s,
    transform 0.18s;
}
.nav-item:hover {
  transform: translateX(3px);
}
.nav-item[hidden] {
  display: none;
}
.button,
input,
select,
textarea {
  transition:
    border-color 0.18s,
    background-color 0.18s,
    box-shadow 0.18s;
}
.button:focus-visible,
.nav-item:focus-visible,
a:focus-visible {
  outline: 3px solid #a65d19;
  outline-offset: 4px;
}
.button:disabled {
  cursor: wait;
}
#content > *,
.notice:not([hidden]),
dialog[open] {
  animation: gentle-enter 0.24s ease-out both;
}
#content > :nth-child(2) {
  animation-delay: 0.035s;
}
#content > :nth-child(3) {
  animation-delay: 0.07s;
}
dialog::backdrop {
  background: rgba(31, 25, 20, 0.3);
  backdrop-filter: blur(3px);
}
.resource-row {
  gap: 1rem;
}
.resource-row > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.secret-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#content[aria-busy="true"] {
  opacity: 0.7;
}
.sidebar {
  overflow-y: auto;
}
@keyframes gentle-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 700px) {
  .resource-row {
    flex-direction: column;
    align-items: stretch;
  }
  .resource-actions {
    flex-wrap: wrap;
  }
  .invite-actions .button {
    width: 100%;
  }
  .wide-dialog {
    width: calc(100% - 1.5rem);
    padding: 1.2rem;
  }
}
@media (max-width: 760px) {
  .warm .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 18px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .warm .sidebar > .brand {
    margin: 0;
  }
  .warm .sidebar > .brand img {
    width: 145px;
    height: auto;
  }
  .warm .mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  .warm .sidebar label[for="workspace"],
  .warm .sidebar #workspace,
  .warm .sidebar .new-organisation,
  .warm .sidebar #navigation,
  .warm .sidebar .sidebar-bottom {
    display: none;
  }
  .warm.menu-open .sidebar label[for="workspace"],
  .warm.menu-open .sidebar #workspace,
  .warm.menu-open .sidebar .new-organisation,
  .warm.menu-open .sidebar .sidebar-bottom {
    display: block;
    grid-column: 1 / -1;
    order: initial;
    margin: 0;
    width: 100%;
  }
  .warm.menu-open .sidebar #navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / -1;
    order: initial;
    gap: 6px;
    margin: 0;
    width: 100%;
    overflow: visible;
  }
  .warm.menu-open .sidebar #navigation .nav-item {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    margin: 0;
    padding: 12px;
    font-size: 0.9rem;
  }
  .warm.menu-open .sidebar #identity {
    display: block;
    margin: 0 0 8px;
  }
  .warm .app-body {
    margin: 0;
  }
  .warm .topbar {
    height: auto;
    min-height: 60px;
    padding: 12px 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .warm .main-content {
    padding: 24px 18px;
  }
  .warm .page-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .warm .page-heading h1 {
    font-size: 2rem;
    max-width: none;
  }
  .warm .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .warm .stat {
    min-width: 0;
    padding: 16px;
  }
  .warm .stat strong {
    font-size: 2rem;
  }
  .warm .resource-row {
    flex-direction: column;
    align-items: stretch;
  }
  .warm .resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .warm .resource-actions .button {
    flex: 1 1 auto;
    white-space: normal;
  }
  .warm .button,
  .warm .small-button,
  .warm .close-button {
    min-height: 44px;
  }
  .warm input,
  .warm select,
  .warm textarea {
    font-size: 16px !important;
    max-width: 100%;
  }
  .warm .surface {
    padding: 18px;
  }
  .warm .split-fields {
    grid-template-columns: 1fr;
  }
  .warm .wide-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px;
    overflow: auto;
  }
  .warm .dialog-heading {
    gap: 12px;
  }
  .warm .dialog-heading h2 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .warm .data-table {
    min-width: 560px;
  }
  .warm .public-form-container {
    margin: 28px auto;
    padding: 0 16px;
  }
  .warm .public-form-container h1 {
    font-size: 2rem;
  }
  .warm .embedded-page,
  .warm .field-row .field-top {
    flex-wrap: wrap;
  }
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 20px;
}
.warm .settings-grid .resource-row {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.settings-identity .resource-row:last-child {
  margin-bottom: 0;
}
.url-preview {
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .nav-item:hover {
    transform: none;
  }
}
