:root {
  font-family: system-ui, sans-serif;
  color: #17212b;
  background: #fcfcfd;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none;
}
body {
  margin: 0;
}
main {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 28px 20px;
}
header,
nav,
.catalog-controls,
#boardSearchForm,
.login-controls,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
header {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
nav {
  flex-wrap: wrap;
}
h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 650;
}
h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  color: #596773;
}
p {
  line-height: 1.5;
}
.hint {
  font-size: 12px;
  color: #596773;
}
#adminStatus:empty {
  display: none;
}
#adminStatus {
  overflow-wrap: anywhere;
}
button,
input,
select,
a {
  font: inherit;
}
button,
.open-board {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #b8c0cc;
  border-radius: 2px;
  padding: 8px 12px;
  background: #fff;
  color: #17212b;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}
button:hover,
.open-board:hover {
  background: #f3f4f6;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: #295d5d;
}
input {
  min-width: 0;
  border: 1px solid #b8c0cc;
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 16px;
  background: #fff;
  color: #17212b;
}
.language-control {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
}
.language-control select {
  border: 1px solid #b8c0cc;
  border-radius: 2px;
  padding: 6px 8px;
  background: #fff;
  color: #17212b;
  font-size: 16px;
}
:focus-visible {
  outline: 2px solid #abc6c6;
  outline-offset: 2px;
}
#adminLogin {
  max-width: 440px;
  border: 1px solid #d9dde3;
  border-radius: 4px;
  padding: 20px;
  background: #fff;
}
#adminLogin label {
  display: block;
  margin-bottom: 6px;
}
.login-controls input {
  flex: 1;
  flex-basis: 160px;
}
.login-controls,
.dialog-actions {
  flex-wrap: wrap;
}
#boardSearchForm {
  flex: 1;
}
#boardSearch {
  flex: 1;
}
.board-table-wrap {
  border: 1px solid #d9dde3;
  border-radius: 4px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
th {
  padding: 10px 14px;
  text-align: start;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 600;
}
td {
  padding: 12px 14px;
  border-top: 1px solid #d9dde3;
  vertical-align: middle;
}
.actions-heading {
  width: 190px;
}
.board-name {
  overflow-wrap: anywhere;
  font-weight: 550;
}
.protected-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #596773;
}
.board-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.danger {
  color: #9e3030;
  border-color: #d8a4a4;
}
.danger:hover {
  background: #fcf3f3;
}
#loadMoreBoards {
  margin-top: 16px;
}
dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #b8c0cc;
  border-radius: 4px;
  background: #fff;
  color: #17212b;
}
dialog::backdrop {
  background: rgb(23 33 43 / 30%);
}
.dialog-actions {
  justify-content: flex-end;
  margin-top: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 500px) {
  main {
    padding: 20px 12px;
  }
  header {
    align-items: flex-start;
  }
  h1 {
    font-size: 23px;
  }
  .catalog-controls {
    align-items: stretch;
    flex-wrap: wrap;
  }
  #boardSearchForm {
    flex-basis: 100%;
  }
  .actions-heading {
    width: 146px;
  }
  th,
  td {
    padding: 10px 8px;
  }
  .board-actions {
    gap: 5px;
  }
  .board-actions button,
  .board-actions a {
    padding: 8px;
    font-size: 12px;
  }
}
