* {
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  color: #111111;
  font-family: "Open Sans", system-ui, sans-serif;
}

body {
  min-width: 220px;
  overflow: hidden;
}

.app {
  display: grid;
  height: 100vh;
  min-height: 0;
  grid-template-rows: 2.8rem calc(100vh - 5.8rem);
  overflow: hidden;
}

.kai-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-bottom: 0.1rem solid #d7d7d7;
  background: #f4f4f4;
}

h1 {
  margin: 0;
  max-width: 20rem;
  overflow: hidden;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 2.8rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kai-content {
  min-height: 0;
  overflow-y: auto;
  background: #ffffff;
}

.kai-separator {
  margin: 0;
  min-height: 2.2rem;
  padding: 0.4rem 1rem 0.3rem;
  border-top: 0.1rem solid #ededed;
  border-bottom: 0.1rem solid #ededed;
  background: #f5f5f5;
  color: #5a5a5a;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4rem;
}

.kai-list {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.kai-tl {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 4.4rem;
  padding: 0.4rem 1rem;
  border-bottom: 0.1rem solid #e7e7e7;
  background: #ffffff;
  color: #111111;
}

.kai-tl:focus {
  outline: none;
}

.kai-tl[nav-selected="true"],
.kai-tl:focus {
  background: #0072bc;
  color: #ffffff;
}

.kai-tl[nav-selected="true"] .kai-tl-secondary,
.kai-tl:focus .kai-tl-secondary {
  color: #e8f3ff;
}

.kai-tl[nav-selected="true"] .chevron,
.kai-tl:focus .chevron {
  color: #ffffff;
}

.item-main {
  min-width: 0;
}

.kai-tl-primary,
.kai-tl-secondary {
  margin: 0;
}

.kai-tl-primary {
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kai-tl-secondary {
  display: -webkit-box;
  max-height: 3.2rem;
  overflow: hidden;
  color: #5f5f5f;
  font-size: 1.2rem;
  line-height: 1.6rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.status-item {
  min-height: 4.6rem;
}

.code-item {
  min-height: 5.8rem;
}

.code {
  margin: 0.2rem 0 0;
  overflow: hidden;
  font-family: monospace;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 2.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono {
  overflow-wrap: anywhere;
}

.chevron {
  padding-left: 0.8rem;
  color: #7a7a7a;
  font-size: 2.4rem;
  line-height: 1;
}

.hidden {
  display: none;
}

.kai-softkey {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.5rem;
  border-top: 0.1rem solid #b7b7b7;
  background: #f4f4f4;
  color: #111111;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 3rem;
}

.kai-softkey span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kai-softkey span:nth-child(2) {
  font-size: 1.3rem;
  text-align: center;
  text-transform: uppercase;
}

.kai-softkey span:nth-child(3) {
  text-align: right;
}

@media (min-width: 420px) {
  body {
    background: #d8d8d8;
  }

  .app,
  .kai-softkey {
    width: 24rem;
    margin: 0 auto;
  }

  .app {
    height: 32rem;
    grid-template-rows: 2.8rem 26.2rem;
    box-shadow: 0 0 0 0.1rem #c0c0c0;
  }

  .kai-softkey {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}
