[hidden] {
  display: none !important;
}
#login {
  width: min(420px, 90vw);
  margin: 14vh auto;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
#login h1 {
  margin-bottom: 20px;
}
.box {
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  margin: 14px 0;
}
.line,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.box button,
details button,
.line button {
  color: var(--blue);
  padding: 8px 10px;
}
.box img {
  width: 31%;
  object-fit: contain;
}
.box textarea {
  width: 100%;
  min-height: 115px;
}
.box pre,
dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
}
.box summary {
  cursor: pointer;
}
.panel + .panel,
.columns + .panel {
  margin-top: 22px;
}
.columns > .panel + .panel {
  margin-top: 0;
}
.row-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-title small {
  display: block;
}
.row-title .thumb {
  margin: 0;
}
.narrow {
  grid-template-columns: 340px minmax(0, 1fr);
}
.panel h2 + label,
.panel h2 + .form-grid,
.panel h2 + .filters {
  margin-top: 18px;
}
.filters input {
  flex: 1;
}
.filters select {
  width: auto;
}
.table-wrap .empty {
  font-size: 13px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 10px;
}
.bar-col {
  min-height: 1px;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.admin-main .compare img {
  max-height: 300px;
  object-fit: contain;
}
.admin-main .panel label input[type='checkbox'] {
  width: 16px;
}
.admin-main .panel .code {
  white-space: pre-wrap;
}
.panel .notes {
  margin-top: 16px;
}
@media (max-width: 850px) {
  .narrow {
    grid-template-columns: 1fr;
  }
}

.trial-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.panel .primary.wide {
  margin-top: 22px;
}
.compare p {
  margin: 12px 0;
}
.panel .checkline {
  margin: 12px 0;
}
.panel textarea {
  min-height: 100px;
  width: 100%;
}
.panel .nutrition {
  margin-top: 20px;
}

.field-label {
  margin: 16px 0 6px;
}
.role-picker {
  position: relative;
  max-width: 440px;
}
.role-picker > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 38px 11px 12px;
  border: 1px solid #dce1eb;
  border-radius: 7px;
  background: white;
  min-height: 43px;
}
.role-picker > summary::-webkit-details-marker {
  display: none;
}
.role-picker > summary::after {
  content: '⌄';
  position: absolute;
  right: 14px;
  top: 9px;
}
.role-picker[open] > summary {
  border-color: #2448d8;
}
.role-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  padding: 8px;
  background: white;
  border: 1px solid #dce1eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px #1721421a;
}
.role-options .checkline {
  padding: 8px;
  margin: 0;
  cursor: pointer;
}
.role-options .checkline:hover {
  background: #edf0ff;
}
.role-picker + button {
  margin-top: 16px;
}
