:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f7f3;
  color: #1f2723;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.auth-panel {
  width: min(420px, 100%);
  margin: 12vh auto 0;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #d8ded6;
  border-radius: 8px;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-weight: 700;
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

input,
select {
  min-height: 46px;
  border: 1px solid #b9c2bc;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #1f2723;
}

button,
.open-link {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #16614a;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.secondary,
.link-button,
.examples button {
  background: #e6ebe6;
  color: #1f2723;
}

.link-button {
  width: 100%;
}

.message,
.empty,
#indexStatus {
  color: #5c6961;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.searchbar {
  display: grid;
  grid-template-columns: 1fr 180px 120px;
  gap: 10px;
  margin-bottom: 12px;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.results {
  display: grid;
  gap: 12px;
}

.result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid #d8ded6;
  border-radius: 8px;
}

.kind {
  display: inline-flex;
  margin-bottom: 8px;
  color: #16614a;
  font-size: 12px;
  font-weight: 800;
}

.result h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.path {
  margin: 0 0 10px;
  color: #5c6961;
  overflow-wrap: anywhere;
}

.snippet {
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .topbar,
  .result {
    grid-template-columns: 1fr;
  }

  .searchbar {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }
}

