/* Tiber Lake Mail as an app (plugin tiberlake_app): the Settings entry, the bar above the message list on phones,
   the Settings > This device page and the sign-in switch. Colours are the Tiber Lake skin's. */

/* Settings list: a phone icon (Font Awesome mobile-alt, Elastic's icon font) */
.listing.iconized li.tiberlake-app > a:before {
  content: "\f3cd";
}

/* Sign-in: "Keep me signed in on this device", between the fields and the button */
#login-form .tl-keep {
  margin: -.1rem 0 1.1rem;
  text-align: left;
}
#login-form .tl-keep .custom-control-label {
  font-size: .9rem;
  line-height: 1.5rem;
  color: #4E5B57;
  cursor: pointer;
}
html.dark-mode #login-form .tl-keep .custom-control-label {
  color: rgba(247, 245, 239, .8);
}

/* The bar above the message list */
#tl-app-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  padding: .7rem 1rem;
  background: #F3EFE4;
  border-bottom: 1px solid rgba(30, 42, 39, .12);
  border-left: 3px solid #C9A24B;
}
#tl-app-bar p {
  flex: 1 1 14rem;
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
  color: #1E2A27;
}
#tl-app-bar .tl-app-bar-buttons {
  display: flex;
  gap: .5rem;
}
/* The app's buttons: emerald for the main action, outlined otherwise (the skin's colours, not Elastic's greys) */
.tl-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  margin: 0;
  padding: .35rem .95rem;
  border: 1px solid #0E3B2E;
  border-radius: 2px;
  background: #FBFAF6;
  color: #0E3B2E;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.tl-app-btn:hover,
.tl-app-btn:focus {
  background: #EDF4EF;
}
.tl-app-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(201, 162, 75, .45);
}
.tl-app-btn-primary {
  background: #0E3B2E;
  color: #F7F5EF;
}
.tl-app-btn-primary:hover,
.tl-app-btn-primary:focus {
  background: #0A2D23;
}
.tl-app-btn[disabled] {
  opacity: .55;
  cursor: default;
}
html.dark-mode .tl-app-btn {
  border-color: #DCC07E;
  background: transparent;
  color: #F7F5EF;
}
html.dark-mode .tl-app-btn-primary {
  background: #C9A24B;
  border-color: #C9A24B;
  color: #072019;
}
html.dark-mode #tl-app-bar {
  background: #123b30;
  border-bottom-color: rgba(247, 245, 239, .12);
}
html.dark-mode #tl-app-bar p {
  color: #F7F5EF;
}

/* Settings > This device */
.tl-app-settings {
  max-width: 44rem;
  padding: 1rem 1.25rem 2rem;
}
.tl-app-block + .tl-app-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 42, 39, .12);
}
.tl-app-block h2 {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.tl-app-hint {
  margin: 0 0 .75rem;
  color: #4E5B57;
}
.tl-app-status {
  margin: 0 0 .75rem;
  font-weight: 600;
}
.tl-app-status-on {
  color: #1D7A6E;
}
.tl-app-status-blocked,
.tl-app-status-paused {
  color: #8a4b1e;
}
.tl-app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
}

.tl-app-device-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tl-app-device {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .15rem 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(30, 42, 39, .08);
}
.tl-app-device-name {
  font-weight: 600;
}
.tl-app-this {
  margin-left: .35rem;
  padding: .05rem .45rem;
  border-radius: 1rem;
  background: rgba(29, 122, 110, .12);
  color: #1D7A6E;
  font-size: .75rem;
  font-weight: 600;
}
.tl-app-device-meta {
  grid-column: 1;
  color: #4E5B57;
  font-size: .85rem;
}
.tl-app-device .tl-app-signout {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}
.tl-app-empty {
  color: #4E5B57;
}
html.dark-mode .tl-app-hint,
html.dark-mode .tl-app-device-meta,
html.dark-mode .tl-app-empty {
  color: rgba(247, 245, 239, .7);
}
